Searched refs:needle (Results 1 - 3 of 3) sorted by relevance

/lxc/src/lxc/
H A Dutils.h256 extern char *lxc_string_replace(const char *needle, const char *replacement, const char *haystack);
257 extern bool lxc_string_in_array(const char *needle, const char **haystack);
277 extern bool lxc_string_in_list(const char *needle, const char *haystack, char sep);
H A Dutils.c601 char *lxc_string_replace(const char *needle, const char *replacement, const char *haystack) argument
606 size_t needle_len = strlen(needle);
623 for (last_p = (char *)haystack, p = strstr(last_p, needle); p; last_p = p, p = strstr(last_p, needle)) {
656 bool lxc_string_in_array(const char *needle, const char **haystack) argument
659 if (!strcmp(needle, *haystack))
787 bool lxc_string_in_list(const char *needle, const char *haystack, char _sep) argument
792 if (!haystack || !needle)
798 if (strcmp(needle, token) == 0)
/lxc/templates/
H A Dlxc-cirros.in70 local needle="$1" x=""
73 [ "$needle" = "$x" ] && return 0

Completed in 15 milliseconds