Home
last modified time | relevance | path

Searched refs:string_contains_word_strv (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-string-util.c753 TEST(string_contains_word_strv) { in TEST() argument
756 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("a", "b"), NULL)); in TEST()
758 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("a", "b"), &w)); in TEST()
761 assert_se(!string_contains_word_strv("a b cc", NULL, STRV_MAKE("d"), &w)); in TEST()
764 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("b", "a"), &w)); in TEST()
767 assert_se(string_contains_word_strv("b a b cc", NULL, STRV_MAKE("b", "a", "b"), &w)); in TEST()
770 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("b", ""), &w)); in TEST()
773 assert_se(!string_contains_word_strv("a b cc", NULL, STRV_MAKE(""), &w)); in TEST()
776 assert_se(string_contains_word_strv("a b cc", " ", STRV_MAKE(""), &w)); in TEST()
/systemd-251/src/basic/
Dstring-util.h230 int string_contains_word_strv(const char *string, const char *separators, char **words, const char …
232 return string_contains_word_strv(string, separators, STRV_MAKE(word), NULL); in string_contains_word()
Dstring-util.c1123 int string_contains_word_strv(const char *string, const char *separators, char **words, const char … in string_contains_word_strv() function
/systemd-251/src/shared/
Dsleep-config.c125 r = string_contains_word_strv(text, NULL, types, &found); in can_sleep_state()