Lines Matching refs:current
1097 struct regression_test_case *current = regression_test_cases; in regression_tests() local
1192 while (current->pattern) { in regression_tests()
1196 if (!(current->start_offset & F_PROPERTY)) in regression_tests()
1197 is_ascii = check_ascii(current->pattern) && check_ascii(current->input); in regression_tests()
1199 if (current->match_options & PCRE2_PARTIAL_SOFT) in regression_tests()
1201 else if (current->match_options & PCRE2_PARTIAL_HARD) in regression_tests()
1210 if (GET_NEWLINE(current->newline)) in regression_tests()
1211 pcre2_set_newline_8(ccontext8, GET_NEWLINE(current->newline)); in regression_tests()
1212 if (GET_BSR(current->newline)) in regression_tests()
1213 pcre2_set_bsr_8(ccontext8, GET_BSR(current->newline)); in regression_tests()
1215 if (!(current->start_offset & F_NO8)) { in regression_tests()
1216 re8 = pcre2_compile_8((PCRE2_SPTR8)current->pattern, PCRE2_ZERO_TERMINATED, in regression_tests()
1217 current->compile_options & ~disabled_options, in regression_tests()
1221 printf("\n8 bit: Cannot compile pattern \"%s\": %d\n", current->pattern, error); in regression_tests()
1229 if ((current->compile_options & PCRE2_UTF) || (current->start_offset & F_FORCECONV)) in regression_tests()
1230 convert_utf8_to_utf16((PCRE2_SPTR8)current->pattern, regtest_buf16, NULL, REGTEST_MAX_LENGTH16); in regression_tests()
1232 copy_char8_to_char16((PCRE2_SPTR8)current->pattern, regtest_buf16, REGTEST_MAX_LENGTH16); in regression_tests()
1237 if (GET_NEWLINE(current->newline)) in regression_tests()
1238 pcre2_set_newline_16(ccontext16, GET_NEWLINE(current->newline)); in regression_tests()
1239 if (GET_BSR(current->newline)) in regression_tests()
1240 pcre2_set_bsr_16(ccontext16, GET_BSR(current->newline)); in regression_tests()
1242 if (!(current->start_offset & F_NO16)) { in regression_tests()
1244 current->compile_options & ~disabled_options, in regression_tests()
1248 printf("\n16 bit: Cannot compile pattern \"%s\": %d\n", current->pattern, error); in regression_tests()
1256 if ((current->compile_options & PCRE2_UTF) || (current->start_offset & F_FORCECONV)) in regression_tests()
1257 convert_utf8_to_utf32((PCRE2_SPTR8)current->pattern, regtest_buf32, NULL, REGTEST_MAX_LENGTH32); in regression_tests()
1259 copy_char8_to_char32((PCRE2_SPTR8)current->pattern, regtest_buf32, REGTEST_MAX_LENGTH32); in regression_tests()
1264 if (GET_NEWLINE(current->newline)) in regression_tests()
1265 pcre2_set_newline_32(ccontext32, GET_NEWLINE(current->newline)); in regression_tests()
1266 if (GET_BSR(current->newline)) in regression_tests()
1267 pcre2_set_bsr_32(ccontext32, GET_BSR(current->newline)); in regression_tests()
1269 if (!(current->start_offset & F_NO32)) { in regression_tests()
1271 current->compile_options & ~disabled_options, in regression_tests()
1275 printf("\n32 bit: Cannot compile pattern \"%s\": %d\n", current->pattern, error); in regression_tests()
1318 return_value8[1] = pcre2_match_8(re8, (PCRE2_SPTR8)current->input, strlen(current->input), in regression_tests()
1319 current->start_offset & OFFSET_MASK, current->match_options, mdata8_2, NULL); in regression_tests()
1322 printf("\n8 bit: JIT compiler does not support \"%s\"\n", current->pattern); in regression_tests()
1325 return_value8[0] = pcre2_match_8(re8, (PCRE2_SPTR8)current->input, strlen(current->input), in regression_tests()
1326 current->start_offset & OFFSET_MASK, current->match_options, mdata8_1, mcontext8); in regression_tests()
1329 return_value8[0] = pcre2_jit_match_8(re8, (PCRE2_SPTR8)current->input, strlen(current->input), in regression_tests()
1330 current->start_offset & OFFSET_MASK, current->match_options, mdata8_1, mcontext8); in regression_tests()
1357 if ((current->compile_options & PCRE2_UTF) || (current->start_offset & F_FORCECONV)) in regression_tests()
1358 …length16 = convert_utf8_to_utf16((PCRE2_SPTR8)current->input, regtest_buf16, regtest_offsetmap16, … in regression_tests()
1360 … length16 = copy_char8_to_char16((PCRE2_SPTR8)current->input, regtest_buf16, REGTEST_MAX_LENGTH16); in regression_tests()
1363 current->start_offset & OFFSET_MASK, current->match_options, mdata16_2, NULL); in regression_tests()
1366 printf("\n16 bit: JIT compiler does not support \"%s\"\n", current->pattern); in regression_tests()
1370 current->start_offset & OFFSET_MASK, current->match_options, mdata16_1, mcontext16); in regression_tests()
1374 current->start_offset & OFFSET_MASK, current->match_options, mdata16_1, mcontext16); in regression_tests()
1401 if ((current->compile_options & PCRE2_UTF) || (current->start_offset & F_FORCECONV)) in regression_tests()
1402 …length32 = convert_utf8_to_utf32((PCRE2_SPTR8)current->input, regtest_buf32, regtest_offsetmap32, … in regression_tests()
1404 … length32 = copy_char8_to_char32((PCRE2_SPTR8)current->input, regtest_buf32, REGTEST_MAX_LENGTH32); in regression_tests()
1407 current->start_offset & OFFSET_MASK, current->match_options, mdata32_2, NULL); in regression_tests()
1410 printf("\n32 bit: JIT compiler does not support \"%s\"\n", current->pattern); in regression_tests()
1414 current->start_offset & OFFSET_MASK, current->match_options, mdata32_1, mcontext32); in regression_tests()
1418 current->start_offset & OFFSET_MASK, current->match_options, mdata32_1, mcontext32); in regression_tests()
1434 if (!(current->start_offset & F_DIFF)) { in regression_tests()
1436 if (!(current->start_offset & F_FORCECONV)) { in regression_tests()
1442 return_value8[0], return_value8[1], total, current->pattern, current->input); in regression_tests()
1449 return_value16[0], return_value16[1], total, current->pattern, current->input); in regression_tests()
1456 return_value32[0], return_value32[1], total, current->pattern, current->input); in regression_tests()
1464 total, current->pattern, current->input); in regression_tests()
1472 total, current->pattern, current->input); in regression_tests()
1480 total, current->pattern, current->input); in regression_tests()
1500 if (current->flags & PCRE_UTF8) { in regression_tests()
1524 total, current->pattern, current->input); in regression_tests()
1532 total, current->pattern, current->input); in regression_tests()
1540 total, current->pattern, current->input); in regression_tests()
1552 return_value8[0], return_value8[1], total, current->pattern, current->input); in regression_tests()
1563 i, (int)ovector8_1[i], (int)ovector8_2[i], total, current->pattern, current->input); in regression_tests()
1572 return_value16[0], return_value16[1], total, current->pattern, current->input); in regression_tests()
1583 i, (int)ovector16_1[i], (int)ovector16_2[i], total, current->pattern, current->input); in regression_tests()
1592 return_value32[0], return_value32[1], total, current->pattern, current->input); in regression_tests()
1603 i, (int)ovector32_1[i], (int)ovector32_2[i], total, current->pattern, current->input); in regression_tests()
1613 if (!(current->start_offset & F_NO8) && (utf || is_ascii)) { in regression_tests()
1614 if (return_value8[0] < 0 && !(current->start_offset & F_NOMATCH)) { in regression_tests()
1616 total, current->pattern, current->input); in regression_tests()
1620 if (return_value8[0] >= 0 && (current->start_offset & F_NOMATCH)) { in regression_tests()
1622 total, current->pattern, current->input); in regression_tests()
1628 if (!(current->start_offset & F_NO16) && (utf || is_ascii)) { in regression_tests()
1629 if (return_value16[0] < 0 && !(current->start_offset & F_NOMATCH)) { in regression_tests()
1631 total, current->pattern, current->input); in regression_tests()
1635 if (return_value16[0] >= 0 && (current->start_offset & F_NOMATCH)) { in regression_tests()
1637 total, current->pattern, current->input); in regression_tests()
1643 if (!(current->start_offset & F_NO32) && (utf || is_ascii)) { in regression_tests()
1644 if (return_value32[0] < 0 && !(current->start_offset & F_NOMATCH)) { in regression_tests()
1646 total, current->pattern, current->input); in regression_tests()
1650 if (return_value32[0] >= 0 && (current->start_offset & F_NOMATCH)) { in regression_tests()
1652 total, current->pattern, current->input); in regression_tests()
1661 …if (re8 && !(current->start_offset & F_NO8) && pcre2_get_mark_8(mdata8_1) != pcre2_get_mark_8(mdat… in regression_tests()
1663 total, current->pattern, current->input); in regression_tests()
1668 …if (re16 && !(current->start_offset & F_NO16) && pcre2_get_mark_16(mdata16_1) != pcre2_get_mark_16… in regression_tests()
1670 total, current->pattern, current->input); in regression_tests()
1675 …if (re32 && !(current->start_offset & F_NO32) && pcre2_get_mark_32(mdata32_1) != pcre2_get_mark_32… in regression_tests()
1677 total, current->pattern, current->input); in regression_tests()
1714 current++; in regression_tests()