Lines Matching refs:fields
1411 UnicodeString fields[10]; in API_Pattern() local
1414 n = pat1->split("Now is the time", fields, 10, status); in API_Pattern()
1417 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1418 REGEX_ASSERT(fields[1]=="is"); in API_Pattern()
1419 REGEX_ASSERT(fields[2]=="the"); in API_Pattern()
1420 REGEX_ASSERT(fields[3]=="time"); in API_Pattern()
1421 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1423 n = pat1->split("Now is the time", fields, 2, status); in API_Pattern()
1426 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1427 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern()
1428 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern()
1430 fields[1] = "*"; in API_Pattern()
1432 n = pat1->split("Now is the time", fields, 1, status); in API_Pattern()
1435 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern()
1436 REGEX_ASSERT(fields[1]=="*"); in API_Pattern()
1439 n = pat1->split(" Now is the time ", fields, 10, status); in API_Pattern()
1442 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1443 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern()
1444 REGEX_ASSERT(fields[2]=="is"); in API_Pattern()
1445 REGEX_ASSERT(fields[3]=="the"); in API_Pattern()
1446 REGEX_ASSERT(fields[4]=="time"); in API_Pattern()
1447 REGEX_ASSERT(fields[5]==""); in API_Pattern()
1449 n = pat1->split(" ", fields, 10, status); in API_Pattern()
1452 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1454 fields[0] = "foo"; in API_Pattern()
1455 n = pat1->split("", fields, 10, status); in API_Pattern()
1458 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern()
1467 n = pat1->split("<a>Now is <b>the time<c>", fields, 10, status); in API_Pattern()
1470 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1471 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1472 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1473 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1474 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1475 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1476 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1479 n = pat1->split(" <a>Now is <b>the time<c>", fields, 10, status); in API_Pattern()
1482 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1483 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1484 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1485 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1486 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1487 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1488 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1491 fields[6] = "foo"; in API_Pattern()
1492 n = pat1->split(" <a>Now is <b>the time<c>", fields, 6, status); in API_Pattern()
1495 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1496 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1497 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1498 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1499 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1500 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1501 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern()
1504 fields[5] = "foo"; in API_Pattern()
1505 n = pat1->split(" <a>Now is <b>the time<c>", fields, 5, status); in API_Pattern()
1508 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1509 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1510 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1511 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1512 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern()
1513 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1516 fields[5] = "foo"; in API_Pattern()
1517 n = pat1->split(" <a>Now is <b>the time", fields, 5, status); in API_Pattern()
1520 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1521 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1522 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1523 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1524 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1525 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1528 n = pat1->split(" <a>Now is <b>the time<c>", fields, 4, status); in API_Pattern()
1531 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1532 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1533 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1534 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern()
1540 n = pat1->split("1-10,20", fields, 10, status); in API_Pattern()
1543 REGEX_ASSERT(fields[0]=="1"); in API_Pattern()
1544 REGEX_ASSERT(fields[1]=="-"); in API_Pattern()
1545 REGEX_ASSERT(fields[2]=="10"); in API_Pattern()
1546 REGEX_ASSERT(fields[3]==","); in API_Pattern()
1547 REGEX_ASSERT(fields[4]=="20"); in API_Pattern()
2603 UnicodeString fields[10]; in API_Pattern_UTF8() local
2606 n = pat1->split("Now is the time", fields, 10, status); in API_Pattern_UTF8()
2609 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2610 REGEX_ASSERT(fields[1]=="is"); in API_Pattern_UTF8()
2611 REGEX_ASSERT(fields[2]=="the"); in API_Pattern_UTF8()
2612 REGEX_ASSERT(fields[3]=="time"); in API_Pattern_UTF8()
2613 REGEX_ASSERT(fields[4]==""); in API_Pattern_UTF8()
2615 n = pat1->split("Now is the time", fields, 2, status); in API_Pattern_UTF8()
2618 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2619 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern_UTF8()
2620 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern_UTF8()
2622 fields[1] = "*"; in API_Pattern_UTF8()
2624 n = pat1->split("Now is the time", fields, 1, status); in API_Pattern_UTF8()
2627 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern_UTF8()
2628 REGEX_ASSERT(fields[1]=="*"); in API_Pattern_UTF8()
2631 n = pat1->split(" Now is the time ", fields, 10, status); in API_Pattern_UTF8()
2634 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2635 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern_UTF8()
2636 REGEX_ASSERT(fields[2]=="is"); in API_Pattern_UTF8()
2637 REGEX_ASSERT(fields[3]=="the"); in API_Pattern_UTF8()
2638 REGEX_ASSERT(fields[4]=="time"); in API_Pattern_UTF8()
2639 REGEX_ASSERT(fields[5]==""); in API_Pattern_UTF8()
2641 n = pat1->split(" ", fields, 10, status); in API_Pattern_UTF8()
2644 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2646 fields[0] = "foo"; in API_Pattern_UTF8()
2647 n = pat1->split("", fields, 10, status); in API_Pattern_UTF8()
2650 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern_UTF8()
2660 n = pat1->split("<a>Now is <b>the time<c>", fields, 10, status); in API_Pattern_UTF8()
2663 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2664 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2665 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2666 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2667 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
2668 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
2669 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
2672 n = pat1->split(" <a>Now is <b>the time<c>", fields, 10, status); in API_Pattern_UTF8()
2675 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
2676 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2677 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2678 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2679 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
2680 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
2681 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
2684 fields[6] = "foo"; in API_Pattern_UTF8()
2685 n = pat1->split(" <a>Now is <b>the time<c>", fields, 6, status); in API_Pattern_UTF8()
2688 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
2689 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2690 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2691 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2692 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
2693 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
2694 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern_UTF8()
2697 fields[5] = "foo"; in API_Pattern_UTF8()
2698 n = pat1->split(" <a>Now is <b>the time<c>", fields, 5, status); in API_Pattern_UTF8()
2701 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
2702 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2703 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2704 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2705 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern_UTF8()
2706 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
2709 fields[5] = "foo"; in API_Pattern_UTF8()
2710 n = pat1->split(" <a>Now is <b>the time", fields, 5, status); in API_Pattern_UTF8()
2713 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
2714 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2715 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2716 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2717 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
2718 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
2721 n = pat1->split(" <a>Now is <b>the time<c>", fields, 4, status); in API_Pattern_UTF8()
2724 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
2725 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2726 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2727 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern_UTF8()
2734 n = pat1->split("1-10,20", fields, 10, status); in API_Pattern_UTF8()
2737 REGEX_ASSERT(fields[0]=="1"); in API_Pattern_UTF8()
2738 REGEX_ASSERT(fields[1]=="-"); in API_Pattern_UTF8()
2739 REGEX_ASSERT(fields[2]=="10"); in API_Pattern_UTF8()
2740 REGEX_ASSERT(fields[3]==","); in API_Pattern_UTF8()
2741 REGEX_ASSERT(fields[4]=="20"); in API_Pattern_UTF8()
3642 UnicodeString fields[7]; in PerlTests() local
3643 fieldPat->split(line, fields, 7, status); in PerlTests()
3645 flagMat->reset(fields[0]); in PerlTests()
3695 if (fields[2].indexOf(UChar_c) == -1 && // Compilation is not supposed to fail AND in PerlTests()
3696 fields[2].indexOf(UChar_i) == -1) // it's not an accepted ICU incompatibility in PerlTests()
3705 if (fields[2].indexOf(UChar_i) >= 0) { in PerlTests()
3711 if (fields[2].indexOf(UChar_c) >= 0) { in PerlTests()
3722 UnicodeString matchString = fields[1]; in PerlTests()
3739 if (fields[2].indexOf(UChar_y) >=0) { in PerlTests()
3764 UnicodeString perlExpr = fields[3]; in PerlTests()
3865 UnicodeString expectedS(fields[4]); in PerlTests()
4011 UnicodeString fields[7]; in PerlTestsUTF8() local
4012 fieldPat->split(line, fields, 7, status); in PerlTestsUTF8()
4014 flagMat->reset(fields[0]); in PerlTestsUTF8()
4077 if (fields[2].indexOf(UChar_c) == -1 && // Compilation is not supposed to fail AND in PerlTestsUTF8()
4078 fields[2].indexOf(UChar_i) == -1) // it's not an accepted ICU incompatibility in PerlTestsUTF8()
4087 if (fields[2].indexOf(UChar_i) >= 0) { in PerlTestsUTF8()
4093 if (fields[2].indexOf(UChar_c) >= 0) { in PerlTestsUTF8()
4105 UnicodeString matchString = fields[1]; in PerlTestsUTF8()
4134 if (fields[2].indexOf(UChar_y) >=0) { in PerlTestsUTF8()
4159 UnicodeString perlExpr = fields[3]; in PerlTestsUTF8()
4253 UnicodeString expectedS(fields[4]); in PerlTestsUTF8()