Re: [libvirt] [PATCH v2 1/3] util: introduce virStringMatch

2017-05-12 Thread Pavel Hrdina
On Fri, May 12, 2017 at 04:26:43PM +0200, Martin Kletzander wrote: > On Fri, May 12, 2017 at 02:57:54PM +0200, Pavel Hrdina wrote: > >Simply tries to match the provided regex on a string and returns > >the result. Useful if caller don't care about the matched substring > >and want to just test if

Re: [libvirt] [PATCH v2 1/3] util: introduce virStringMatch

2017-05-12 Thread Martin Kletzander
On Fri, May 12, 2017 at 02:57:54PM +0200, Pavel Hrdina wrote: Simply tries to match the provided regex on a string and returns the result. Useful if caller don't care about the matched substring and want to just test if some pattern patches a string. Signed-off-by: Pavel Hrdina --- changes in

[libvirt] [PATCH v2 1/3] util: introduce virStringMatch

2017-05-12 Thread Pavel Hrdina
Simply tries to match the provided regex on a string and returns the result. Useful if caller don't care about the matched substring and want to just test if some pattern patches a string. Signed-off-by: Pavel Hrdina --- changes in v2: - virStringMatch returns bool instead of int src/libv