Lines Matching refs:expr

49 static int test_expr (const char *expr, int expected, int expectedicase);
50 static int run_test (const char *expr, const char *mem, size_t memlen,
52 static int run_test_backwards (const char *expr, const char *mem,
145 test_expr (const char *expr, int expected, int expectedicase) in test_expr() argument
158 printf ("\nTest \"%s\" with multi-byte locale\n", expr); in test_expr()
159 result |= run_test (expr, mem, memlen, 0, expected); in test_expr()
160 printf ("\nTest \"%s\" with multi-byte locale, case insensitive\n", expr); in test_expr()
161 result |= run_test (expr, mem, memlen, 1, expectedicase); in test_expr()
162 printf ("\nTest \"%s\" backwards with multi-byte locale\n", expr); in test_expr()
163 result |= run_test_backwards (expr, mem, memlen, 0, expected); in test_expr()
165 expr); in test_expr()
166 result |= run_test_backwards (expr, mem, memlen, 1, expectedicase); in test_expr()
172 printf ("\nTest \"%s\" with multi-byte locale\n", expr); in test_expr()
173 result |= run_test (expr, mem, memlen, 0, expected); in test_expr()
174 printf ("\nTest \"%s\" with multi-byte locale, case insensitive\n", expr); in test_expr()
175 result |= run_test (expr, mem, memlen, 1, expectedicase); in test_expr()
176 printf ("\nTest \"%s\" backwards with multi-byte locale\n", expr); in test_expr()
177 result |= run_test_backwards (expr, mem, memlen, 0, expected); in test_expr()
179 expr); in test_expr()
180 result |= run_test_backwards (expr, mem, memlen, 1, expectedicase); in test_expr()
186 inmem = (char *) expr; in test_expr()
187 inlen = strlen (expr); in test_expr()
196 printf ("\nTest \"%s\" with 8-bit locale\n", expr); in test_expr()
198 printf ("\nTest \"%s\" with 8-bit locale, case insensitive\n", expr); in test_expr()
200 printf ("\nTest \"%s\" backwards with 8-bit locale\n", expr); in test_expr()
203 expr); in test_expr()
211 run_test (const char *expr, const char *mem, size_t memlen, int icase, in run_test() argument
228 err = regcomp (&re, expr, REG_NEWLINE | (icase ? REG_ICASE : 0)); in run_test()
306 err = regcomp (&re, expr, REG_NEWLINE | (icase ? REG_ICASE : 0)); in run_test()
354 run_test_backwards (const char *expr, const char *mem, size_t memlen, in run_test_backwards() argument
380 err = re_compile_pattern (expr, strlen (expr), &re); in run_test_backwards()
457 err = re_compile_pattern (expr, strlen (expr), &re); in run_test_backwards()