]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add functions dealing with control characters in strings
authorJán Tomko <jtomko@redhat.com>
Tue, 14 Apr 2015 10:30:16 +0000 (12:30 +0200)
committerCole Robinson <crobinso@redhat.com>
Mon, 27 Apr 2015 23:14:32 +0000 (19:14 -0400)
commit20674276cff0ab8ac0db6e35be0e38fa5cefb379
tree78e2a248a79055606e5478fc0d070354fb296c01
parent0a09130d345a0ae08538a2d702b0a5d48d7d0663
Add functions dealing with control characters in strings

Add virStringHasControlChars that checks if the string has
any control characters other than \t\r\n,
and virStringStripControlChars that removes them in-place.

(cherry picked from commit 2a530a3e50d9314950cff0a5790c81910b0750a9)
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h
tests/virstringtest.c