]> xenbits.xensource.com Git - libvirt.git/commit
util: introduce virStringMatch
authorPavel Hrdina <phrdina@redhat.com>
Thu, 11 May 2017 15:16:13 +0000 (17:16 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 12 May 2017 14:51:18 +0000 (16:51 +0200)
commitf15f155403e36a66e3568676105fdca725ad2c52
tree04864fd20497dbe013185155eec25a82c5d81286
parentbb9055b87edb727f7d6d42263166b1e2e938fa39
util: introduce virStringMatch

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 <phrdina@redhat.com>
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h
tests/virstringtest.c