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 one of my branches.
src/util/virstring.c | 23 +++++++++++++++++++----
src/util/virstring.h | 2 ++
2 files changed, 21 insertions(+), 4 deletions(-)
Please add an entry to src/libvirt_private.sym, this helper can be used
to replace all occurrences of strspn() and strcspn().
Reviewed-by: Pavel Hrdina <phrdina(a)redhat.com>