Lines Matching defs:pattern
52 void verbose_test(regex_char_t *pattern, regex_char_t *string)
60 ptr = pattern;
64 printf("Start test '%s' matches to '%s'\n", pattern, string);
65 machine = regex_compile(pattern, ptr - pattern, REGEX_MATCH_VERBOSE | REGEX_NEWLINE, &error);
103 const regex_char_t *pattern; /* NULL : use the previous pattern. */
121 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
124 if (test->pattern) {
128 ptr = test->pattern;
132 machine = regex_compile(test->pattern, ptr - test->pattern, test->flags, &error);
136 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
142 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
149 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
150 printf("ABORT: flag must be 0 if no pattern\n");
162 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
173 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
179 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
193 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
199 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);