[libvirt] [PATCH 0/2] Add two string helper methods

Daniel P. Berrange berrange at redhat.com
Wed Feb 19 20:36:02 UTC 2014


As mentioned in my review, I took the first two patches from
this series and polished them up ready for merge

   https://www.redhat.com/archives/libvir-list/2014-January/msg01067.html

Hopefully this should be good enough for the vbox snapshot
work to use.

Changes since that posting

 - Added unit tests
 - Changed virStringSearch API to return all matches in one
   go, rather than need repeated calls
 - Rewrote virStringReplace to use virBuffer APIs

Daniel P. Berrange (1):
  Add virStringReplace method for substring replacement

Manuel VIVES (1):
  Add virStringSearch method for regex matching

 po/POTFILES.in           |   1 +
 src/libvirt_private.syms |   2 +
 src/util/virstring.c     | 146 ++++++++++++++++++++++++++++++++++++++++++-
 src/util/virstring.h     |  12 ++++
 tests/virstringtest.c    | 159 +++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 319 insertions(+), 1 deletion(-)

-- 
1.8.5.3




More information about the libvir-list mailing list