Home
last modified time | relevance | path

Searched refs:separators (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/basic/
Dextract-word.c20 int extract_first_word(const char **p, char **ret, const char *separators, ExtractFlags flags) { in extract_first_word() argument
37 if (!separators) in extract_first_word()
38 separators = WHITESPACE; in extract_first_word()
52 else if (strchr(separators, c)) { in extract_first_word()
107 (strchr(separators, **p) || **p == '\\')) in extract_first_word()
155 } else if (strchr(separators, c)) { in extract_first_word()
166 if (!strchr(separators, c)) in extract_first_word()
203 const char *separators, in extract_first_word_and_warn() argument
218 r = extract_first_word(p, ret, separators, flags); in extract_first_word_and_warn()
226 r = extract_first_word(p, ret, separators, flags|EXTRACT_UNESCAPE_RELAX); in extract_first_word_and_warn()
[all …]
Dextract-word.h20 int extract_first_word(const char **p, char **ret, const char *separators, ExtractFlags flags);
21 int extract_first_word_and_warn(const char **p, char **ret, const char *separators, ExtractFlags fl…
22 int extract_many_words(const char **p, const char *separators, unsigned flags, ...) _sentinel_;
Dstrv.h76 int strv_split_full(char ***t, const char *s, const char *separators, ExtractFlags flags);
77 static inline char** strv_split(const char *s, const char *separators) { in strv_split() argument
80 if (strv_split_full(&ret, s, separators, EXTRACT_RETAIN_ESCAPE) < 0) in strv_split()
86 int strv_split_and_extend_full(char ***t, const char *s, const char *separators, bool filter_duplic…
Dstring-util.h230 int string_contains_word_strv(const char *string, const char *separators, char **words, const char …
231 static inline int string_contains_word(const char *string, const char *separators, const char *word… in string_contains_word() argument
232 return string_contains_word_strv(string, separators, STRV_MAKE(word), NULL); in string_contains_word()
Dstrv.c249 int strv_split_full(char ***t, const char *s, const char *separators, ExtractFlags flags) { in strv_split_full() argument
260 r = extract_first_word(&s, &word, separators, flags); in strv_split_full()
284 int strv_split_and_extend_full(char ***t, const char *s, const char *separators, bool filter_duplic… in strv_split_and_extend_full() argument
291 r = strv_split_full(&l, s, separators, flags); in strv_split_and_extend_full()
Dstring-util.c1123 int string_contains_word_strv(const char *string, const char *separators, char **words, const char … in string_contains_word_strv() argument
1126 const ExtractFlags flags = separators ? EXTRACT_DONT_COALESCE_SEPARATORS : 0; in string_contains_word_strv()
1134 r = extract_first_word(&p, &w, separators, flags); in string_contains_word_strv()
Dset.h137 int set_put_strsplit(Set *s, const char *v, const char *separators, ExtractFlags flags);
Dhashmap.c1882 int set_put_strsplit(Set *s, const char *v, const char *separators, ExtractFlags flags) { in set_put_strsplit() argument
1892 r = extract_first_word(&p, &word, separators, flags); in set_put_strsplit()
/systemd-251/docs/
DDISCOVERABLE_PARTITIONS.md279 separators or such).
DUSER_RECORD.md240 as record separators in classic `/etc/passwd` files and similar formats.