Home
last modified time | relevance | path

Searched refs:str (Results 1 – 14 of 14) sorted by relevance

/posix/
A Dtst-fnmatch.c252 && (str[8] == '|' || str[8] == '\0')) in convert_flags()
258 && (str[8] == '|' || str[8] == '\0')) in convert_flags()
264 && (str[6] == '|' || str[6] == '\0')) in convert_flags()
270 && (str[11] == '|' || str[11] == '\0')) in convert_flags()
276 && (str[8] == '|' || str[8] == '\0')) in convert_flags()
282 && (str[8] == '|' || str[8] == '\0')) in convert_flags()
292 ++str; in convert_flags()
377 ++str; in escape()
383 ++str; in escape()
389 ++str; in escape()
[all …]
A Dtst-rxspencer.c29 replace_special_chars (char *str) in replace_special_chars() argument
31 for (; (str = strpbrk (str, "NTSZ")) != NULL; ++str) in replace_special_chars()
32 switch (*str) in replace_special_chars()
34 case 'N': *str = '\n'; break; in replace_special_chars()
35 case 'T': *str = '\t'; break; in replace_special_chars()
36 case 'S': *str = ' '; break; in replace_special_chars()
37 case 'Z': *str = '\0'; break; in replace_special_chars()
42 glibc_re_syntax (char *str) in glibc_re_syntax() argument
111 if (str == NULL) in mb_frob_string()
114 ret = malloc (2 * strlen (str) + 1); in mb_frob_string()
[all …]
A Dbug-regex24.c5 #define str "civic" macro
10 str, "c", "i", "", "", "", "", "", "", ""
30 err = regexec (&rbuf, str, N, m, 0); in do_test()
48 printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so); in do_test()
51 || memcmp (expected[i], str + m[i].rm_so, len) != 0) in do_test()
A Drunptests.c30 const char *str; member
45 if (tests[cnt].str == NULL) in main()
52 printf ("!!! %s\n", tests[cnt].str); in main()
60 tests[cnt].str); in main()
86 err = regexec (&re, tests[cnt].str, 20, match, 0); in main()
A Dtst-gnuglob-skeleton.c347 test_result (const char *fmt, int flags, GLOB_TYPE *gl, const char *str[]) in test_result() argument
353 for (cnt = 0; cnt < gl->gl_pathc && str[cnt] != NULL; ++cnt) in test_result()
355 int ok = strcmp (gl->gl_pathv[cnt], str[cnt]) == 0; in test_result()
362 for (inner = 0; str[inner] != NULL; ++inner) in test_result()
363 if (strcmp (gl->gl_pathv[cnt], str[inner]) == 0) in test_result()
366 if (str[inner] == NULL) in test_result()
378 if (str[cnt] != NULL || cnt < gl->gl_pathc) in test_result()
A Dtst-truncate-common.c45 #define FAIL(str) \ argument
46 do { printf ("error: %s (line %d)\n", str, __LINE__); return 1; } while (0)
A Dfnmatch.c217 fnmatch_convert_to_wide (const char *str, struct scratch_buffer *buf, in fnmatch_convert_to_wide() argument
224 *n = strnlen (str, nw - 1); in fnmatch_convert_to_wide()
227 const char *p = str; in fnmatch_convert_to_wide()
239 *n = mbsrtowcs (NULL, &str, 0, &ps); in fnmatch_convert_to_wide()
248 mbsrtowcs (buf->data, &str, *n + 1, &ps); in fnmatch_convert_to_wide()
A Dtst-spawn5.c51 parse_fd (const char *str) in parse_fd() argument
54 long unsigned int fd = strtoul (str, &endptr, 10); in parse_fd()
56 FAIL_EXIT1 ("invalid file descriptor value: %s", str); in parse_fd()
A Dfnmatch_loop.c268 CHAR str[CHAR_CLASS_MAX_LENGTH + 1]; in FCT() local
294 str[c1++] = c; in FCT()
296 str[c1] = L_('\0'); in FCT()
298 wt = IS_CHAR_CLASS (str); in FCT()
323 UCHAR str; in FCT() local
335 str = c; in FCT()
348 if ((UCHAR) *n == str) in FCT()
363 const UCHAR *cp = (const UCHAR *) &str; in FCT()
A Dwordexp.c101 w_addmem (char *buffer, size_t *actlen, size_t *maxlen, const char *str, in w_addmem() argument
119 *((char *) __mempcpy (&buffer[*actlen], str, len)) = '\0'; in w_addmem()
127 w_addstr (char *buffer, size_t *actlen, size_t *maxlen, const char *str) in w_addstr() argument
134 assert (str != NULL); /* w_addstr only called from this file */ in w_addstr()
135 len = strlen (str); in w_addstr()
137 return w_addmem (buffer, actlen, maxlen, str, len); in w_addstr()
1791 const char *str = pattern; in parse_param() local
1793 if (str[0] == '\0') in parse_param()
1794 str = _("parameter null or not set"); in parse_param()
1796 __fxprintf (NULL, "%s: %s\n", env, str); in parse_param()
A Dregex_internal.c20 static void re_string_construct_common (const char *str, Idx len,
49 re_string_allocate (re_string_t *pstr, const char *str, Idx len, Idx init_len, in re_string_allocate() argument
59 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_allocate()
67 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_allocate()
77 re_string_construct (re_string_t *pstr, const char *str, Idx len, in re_string_construct() argument
82 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_construct()
90 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_construct()
180 re_string_construct_common (const char *str, Idx len, re_string_t *pstr, in re_string_construct_common() argument
184 pstr->raw_mbs = (const unsigned char *) str; in re_string_construct_common()
A Dglob.c55 # define strdup(str) __strdup (str) argument
59 # define readdir(str) __readdir64 (str) argument
A Dregexec.c327 const char *str; in weak_alias() local
350 str = s; in weak_alias()
353 str = string2; in weak_alias()
355 str = string1; in weak_alias()
357 rval = re_search_stub (bufp, str, len, start, range, stop, regs, in weak_alias()
A Dtst-regex.input11262 * sysdeps/wordsize-32/inttypes.h: Rewrite {str,wcs}to{i,u}max

Completed in 46 milliseconds