Lines Matching refs:sep
42 const char *sep,
57 if (!sep)
58 sep = " \t\n\r";
60 /* find the first non sep char, if left-trimming is requested */
62 while (*s && strchr_m(sep,*s))
72 for (quoted = False; len < bufsize && *s && (quoted || !strchr_m(sep,*s)); s++) {
92 BOOL next_token(const char **ptr, char *buff, const char *sep, size_t bufsize)
94 return next_token_internal(ptr, buff, sep, bufsize, True);
104 const char *sep,
107 return next_token_internal(ptr, buff, sep, bufsize, False);
118 BOOL next_token_nr(const char **ptr,char *buff, const char *sep, size_t bufsize)
124 ret = next_token(ptr, buff, sep, bufsize);
141 char **toktocliplist(int *ctok, const char *sep)
147 if (!sep)
148 sep = " \t\n\r";
150 while(*s && strchr_m(sep,*s))
159 while(*s && (!strchr_m(sep,*s)))
161 while(*s && strchr_m(sep,*s))
1303 static void split_at_last_component(char *path, char *front, char sep, char *back)
1305 char *p = strrchr_m(path, sep);
1767 static char **str_list_make_internal(TALLOC_CTX *mem_ctx, const char *string, const char *sep)
1786 if (!sep) sep = LIST_SEP;
1792 while (next_token(&str, tok, sep, sizeof(tok))) {
1846 char **str_list_make_talloc(TALLOC_CTX *mem_ctx, const char *string, const char *sep)
1848 return str_list_make_internal(mem_ctx, string, sep);
1851 char **str_list_make(const char *string, const char *sep)
1853 return str_list_make_internal(NULL, string, sep);