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

2017-08-18 Thread Pavel Hrdina
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 on

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

2017-08-18 Thread Peter Krempa
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