Home | History | Annotate | Download | only in testsuite

Lines Matching defs:string

32 #include <string.h>
168 check_match (regmatch_t *rm, int idx, const char *string,
193 if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1)
203 || strncmp (string + rm[idx].rm_so, match,
214 test (const char *pattern, int cflags, const char *string, int eflags,
238 if (strcmp (string, codes[i].name))
241 fail, codes[i].name, string);
264 if (strcmp (string, "EMPTY") == 0)
271 if (regexec (&re, string, 10, rm, eflags))
291 ret = check_match (rm, 0, string, expect, fail);
305 ret = check_match (rm, n, string, matches ? matches : "-", fail);
319 mb_test (const char *pattern, int cflags, const char *string, int eflags,
325 = eflags == -1 ? string : mb_frob_string (string, letters);
342 if (string_mb != string)
349 mb_tests (const char *pattern, int cflags, const char *string, int eflags,
370 if (!strchr (pattern, 'a') && !strchr (string, 'a')
371 && !strchr (pattern, 'A') && !strchr (string, 'A'))
377 if (!strchr (pattern, 'b') && !strchr (string, 'b')
378 && !strchr (pattern, 'B') && !strchr (string, 'B'))
384 if (!strchr (pattern, 'c') && !strchr (string, 'c')
385 && !strchr (pattern, 'C') && !strchr (string, 'C'))
391 if (!strchr (pattern, 'd') && !strchr (string, 'd')
392 && !strchr (pattern, 'D') && !strchr (string, 'D'))
398 ret |= mb_test (pattern, cflags, string, eflags, expect, matches,
440 char *pattern, *flagstr, *string, *expect, *matches, *p;
464 string = strtok (NULL, "\t");
465 if (string == NULL)
468 if (strcmp (string, "\"\"") == 0)
469 string += 2;
514 replace_special_chars (string);
531 if (test (pattern, cflags, string, eflags, expect, matches, "FAIL")
533 && test (pattern, cflags & ~REG_EXTENDED, string, eflags,
543 else if (test (pattern, cflags, string, eflags, expect, matches,
546 && test (pattern, cflags & ~REG_EXTENDED, string,
549 else if (mb_tests (pattern, cflags, string, eflags, expect, matches)
551 && mb_tests (pattern, cflags & ~REG_EXTENDED, string,