[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 redhat com>

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]