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