Searched refs:separator (Results 1 - 7 of 7) sorted by relevance

/systemd/src/basic/
H A Dfileio.h47 int parse_env_file(const char *fname, const char *separator, ...) _sentinel_;
48 int load_env_file(FILE *f, const char *fname, const char *separator, char ***l);
49 int load_env_file_pairs(FILE *f, const char *fname, const char *separator, char ***l);
84 int fputs_with_space(FILE *f, const char *s, const char *separator, bool *space);
H A Dstring-util.h93 const char* split(const char **state, size_t *l, const char *separator, bool quoted);
98 #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state) \
99 _FOREACH_WORD(word, length, s, separator, false, state)
104 #define _FOREACH_WORD(word, length, s, separator, quoted, state) \
105 for ((state) = (s), (word) = split(&(state), &(length), (separator), (quoted)); (word); (word) = split(&(state), &(length), (separator), (quoted)))
H A Dstrv.h79 char **strv_split(const char *s, const char *separator);
84 char *strv_join(char **l, const char *separator);
171 int fputstrv(FILE *f, char **l, const char *separator, bool *space);
H A Dstrv.c270 char **strv_split(const char *s, const char *separator) { argument
279 FOREACH_WORD_SEPARATOR(word, l, s, separator, state)
287 FOREACH_WORD_SEPARATOR(word, l, s, separator, state) {
362 char *strv_join(char **l, const char *separator) { argument
367 if (!separator)
368 separator = " ";
370 k = strlen(separator);
386 e = stpcpy(e, separator);
404 * separator and quotes.
874 int fputstrv(FILE *f, char **l, const char *separator, boo argument
[all...]
H A Dstring-util.c142 const char* split(const char **state, size_t *l, const char *separator, bool quoted) { argument
152 current += strspn(current, separator);
163 (current[*l + 2] && !strchr(separator, current[*l + 2]))) {
170 *l = strcspn_escaped(current, separator);
171 if (current[*l] && !strchr(separator, current[*l])) {
178 *l = strcspn(current, separator);
/systemd/src/libsystemd/sd-bus/
H A Dbus-internal.c225 * separator.
228 bool separator = false; local
238 return (separator && (*a == 0 || *b == 0));
243 separator = *a == c;
260 * consist of labels with @c as separator. This function returns true, if:
268 bool separator = false; local
278 return *a == 0 && (*b == c || separator);
283 separator = *a == c;
/systemd/src/shared/
H A Dlogs-show.c650 bool done, separator; local
739 separator = true;
759 if (separator) {
778 separator = false;
793 separator = true;
827 separator = true;

Completed in 20 milliseconds