[libvirt] [PATCH] util: string: Introduce virStringHasChars

Pavel Hrdina phrdina at redhat.com
Fri Aug 18 12:16:46 UTC 2017


On Fri, Aug 18, 2017 at 02:09:57PM +0200, Peter Krempa wrote:
> The helper returns true if a string contains any of the given chars.
> virStringHasControlChars can be reimplemented using that helper.
> ---
> 
> Pavel was loudly thinking about such function. It turns out that I have
> it ready on one of my branches.
> 
>  src/util/virstring.c | 23 +++++++++++++++++++----
>  src/util/virstring.h |  2 ++
>  2 files changed, 21 insertions(+), 4 deletions(-)

Please add an entry to src/libvirt_private.sym, this helper can be used
to replace all occurrences of strspn() and strcspn().

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170818/75e0651a/attachment-0001.sig>


More information about the libvir-list mailing list