All callers were converted to the glib alternative. Providing our own
just to have NULL tolerance doesn't make sense.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
virStringIsEmpty;
virStringIsPrintable;
virStringListFreeCount;
-virStringListHasString;
virStringListJoin;
virStringListLength;
virStringListMerge;
}
-bool
-virStringListHasString(const char **strings,
- const char *needle)
-{
- size_t i = 0;
-
- if (!strings)
- return false;
-
- while (strings[i]) {
- if (STREQ(strings[i++], needle))
- return true;
- }
-
- return false;
-}
-
/* Like strtol, but produce an "int" result, and check more carefully.
Return 0 upon success; return -1 to indicate failure.
When END_PTR is NULL, the byte after the final valid digit must be NUL.
void virStringListFreeCount(char **strings,
size_t count);
-bool virStringListHasString(const char **strings,
- const char *needle);
-
int virStrToLong_i(char const *s,
char **end_ptr,
int base,