Lines Matching refs:current
1126 struct regression_test_case *current = regression_test_cases; in regression_tests() local
1208 while (current->pattern) { in regression_tests()
1212 if (!(current->start_offset & F_PROPERTY)) in regression_tests()
1213 is_ascii = check_ascii(current->pattern) && check_ascii(current->input); in regression_tests()
1215 if (current->flags & PCRE_PARTIAL_SOFT) in regression_tests()
1217 else if (current->flags & PCRE_PARTIAL_HARD) in regression_tests()
1224 if (!(current->start_offset & F_NO8)) in regression_tests()
1225 re8 = pcre_compile(current->pattern, in regression_tests()
1226 …current->flags & ~(PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIA… in regression_tests()
1234 printf("\n8 bit: Cannot study pattern: %s\n", current->pattern); in regression_tests()
1239 printf("\n8 bit: JIT compiler does not support: %s\n", current->pattern); in regression_tests()
1245 } else if (((utf && ucp) || is_ascii) && !(current->start_offset & F_NO8)) in regression_tests()
1246 printf("\n8 bit: Cannot compile pattern \"%s\": %s\n", current->pattern, error); in regression_tests()
1249 if ((current->flags & PCRE_UTF16) || (current->start_offset & F_FORCECONV)) in regression_tests()
1250 convert_utf8_to_utf16(current->pattern, regtest_buf16, NULL, REGTEST_MAX_LENGTH16); in regression_tests()
1252 copy_char8_to_char16(current->pattern, regtest_buf16, REGTEST_MAX_LENGTH16); in regression_tests()
1255 if (!(current->start_offset & F_NO16)) in regression_tests()
1257 …current->flags & ~(PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIA… in regression_tests()
1265 printf("\n16 bit: Cannot study pattern: %s\n", current->pattern); in regression_tests()
1270 printf("\n16 bit: JIT compiler does not support: %s\n", current->pattern); in regression_tests()
1276 } else if (((utf && ucp) || is_ascii) && !(current->start_offset & F_NO16)) in regression_tests()
1277 printf("\n16 bit: Cannot compile pattern \"%s\": %s\n", current->pattern, error); in regression_tests()
1280 if ((current->flags & PCRE_UTF32) || (current->start_offset & F_FORCECONV)) in regression_tests()
1281 convert_utf8_to_utf32(current->pattern, regtest_buf32, NULL, REGTEST_MAX_LENGTH32); in regression_tests()
1283 copy_char8_to_char32(current->pattern, regtest_buf32, REGTEST_MAX_LENGTH32); in regression_tests()
1286 if (!(current->start_offset & F_NO32)) in regression_tests()
1288 …current->flags & ~(PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIA… in regression_tests()
1296 printf("\n32 bit: Cannot study pattern: %s\n", current->pattern); in regression_tests()
1301 printf("\n32 bit: JIT compiler does not support: %s\n", current->pattern); in regression_tests()
1307 } else if (((utf && ucp) || is_ascii) && !(current->start_offset & F_NO32)) in regression_tests()
1308 printf("\n32 bit: Cannot compile pattern \"%s\": %s\n", current->pattern, error); in regression_tests()
1338 …return_value8[0] = pcre_exec(re8, extra8, current->input, strlen(current->input), current->start_o… in regression_tests()
1339 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1341 …return_value8[0] = pcre_jit_exec(re8, extra8, current->input, strlen(current->input), current->sta… in regression_tests()
1342 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1345 if (current->start_offset & F_STUDY) { in regression_tests()
1350 …return_value8[1] = pcre_exec(re8, &dummy_extra8, current->input, strlen(current->input), current->… in regression_tests()
1351 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1365 if ((current->flags & PCRE_UTF16) || (current->start_offset & F_FORCECONV)) in regression_tests()
1366 …length16 = convert_utf8_to_utf16(current->input, regtest_buf16, regtest_offsetmap16, REGTEST_MAX_L… in regression_tests()
1368 length16 = copy_char8_to_char16(current->input, regtest_buf16, REGTEST_MAX_LENGTH16); in regression_tests()
1372 …return_value16[0] = pcre16_exec(re16, extra16, regtest_buf16, length16, current->start_offset & OF… in regression_tests()
1373 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1375 …return_value16[0] = pcre16_jit_exec(re16, extra16, regtest_buf16, length16, current->start_offset … in regression_tests()
1376 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1379 if (current->start_offset & F_STUDY) { in regression_tests()
1384 …return_value16[1] = pcre16_exec(re16, &dummy_extra16, regtest_buf16, length16, current->start_offs… in regression_tests()
1385 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1399 if ((current->flags & PCRE_UTF32) || (current->start_offset & F_FORCECONV)) in regression_tests()
1400 …length32 = convert_utf8_to_utf32(current->input, regtest_buf32, regtest_offsetmap32, REGTEST_MAX_L… in regression_tests()
1402 length32 = copy_char8_to_char32(current->input, regtest_buf32, REGTEST_MAX_LENGTH32); in regression_tests()
1406 …return_value32[0] = pcre32_exec(re32, extra32, regtest_buf32, length32, current->start_offset & OF… in regression_tests()
1407 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1409 …return_value32[0] = pcre32_jit_exec(re32, extra32, regtest_buf32, length32, current->start_offset … in regression_tests()
1410 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1413 if (current->start_offset & F_STUDY) { in regression_tests()
1418 …return_value32[1] = pcre32_exec(re32, &dummy_extra32, regtest_buf32, length32, current->start_offs… in regression_tests()
1419 …current->flags & (PCRE_NOTBOL | PCRE_NOTEOL | PCRE_NOTEMPTY | PCRE_NOTEMPTY_ATSTART | PCRE_PARTIAL… in regression_tests()
1434 if (!(current->start_offset & F_DIFF)) { in regression_tests()
1436 if (!(current->start_offset & F_FORCECONV)) { in regression_tests()
1443 return_value8[0], return_value8[1], total, current->pattern, current->input); in regression_tests()
1450 return_value16[0], return_value16[1], total, current->pattern, current->input); in regression_tests()
1457 return_value32[0], return_value32[1], total, current->pattern, current->input); in regression_tests()
1465 total, current->pattern, current->input); in regression_tests()
1473 total, current->pattern, current->input); in regression_tests()
1481 total, current->pattern, current->input); in regression_tests()
1501 if (current->flags & PCRE_UTF8) { in regression_tests()
1525 total, current->pattern, current->input); in regression_tests()
1533 total, current->pattern, current->input); in regression_tests()
1541 total, current->pattern, current->input); in regression_tests()
1554 return_value8[0], return_value8[1], total, current->pattern, current->input); in regression_tests()
1565 i, ovector8_1[i], ovector8_2[i], total, current->pattern, current->input); in regression_tests()
1574 return_value16[0], return_value16[1], total, current->pattern, current->input); in regression_tests()
1585 i, ovector16_1[i], ovector16_2[i], total, current->pattern, current->input); in regression_tests()
1594 return_value32[0], return_value32[1], total, current->pattern, current->input); in regression_tests()
1605 i, ovector32_1[i], ovector32_2[i], total, current->pattern, current->input); in regression_tests()
1615 if (!(current->start_offset & F_NO8) && ((utf && ucp) || is_ascii)) { in regression_tests()
1616 if (return_value8[0] < 0 && !(current->start_offset & F_NOMATCH)) { in regression_tests()
1618 total, current->pattern, current->input); in regression_tests()
1622 if (return_value8[0] >= 0 && (current->start_offset & F_NOMATCH)) { in regression_tests()
1624 total, current->pattern, current->input); in regression_tests()
1630 if (!(current->start_offset & F_NO16) && ((utf && ucp) || is_ascii)) { in regression_tests()
1631 if (return_value16[0] < 0 && !(current->start_offset & F_NOMATCH)) { in regression_tests()
1633 total, current->pattern, current->input); in regression_tests()
1637 if (return_value16[0] >= 0 && (current->start_offset & F_NOMATCH)) { in regression_tests()
1639 total, current->pattern, current->input); in regression_tests()
1645 if (!(current->start_offset & F_NO32) && ((utf && ucp) || is_ascii)) { in regression_tests()
1646 if (return_value32[0] < 0 && !(current->start_offset & F_NOMATCH)) { in regression_tests()
1648 total, current->pattern, current->input); in regression_tests()
1652 if (return_value32[0] >= 0 && (current->start_offset & F_NOMATCH)) { in regression_tests()
1654 total, current->pattern, current->input); in regression_tests()
1665 total, current->pattern, current->input); in regression_tests()
1672 total, current->pattern, current->input); in regression_tests()
1679 total, current->pattern, current->input); in regression_tests()
1716 current++; in regression_tests()