Lines Matching refs:REGEX_ASSERT
184 #define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: RegexTest failure: REGEX_ASSERT(%s) f… macro
759 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
760 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
762 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match()
763 REGEX_ASSERT(m1->input() == instr2); in API_Match()
765 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
766 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
768 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match()
769 REGEX_ASSERT(m1->input() == empty); in API_Match()
770 REGEX_ASSERT(&m1->pattern() == pat2); in API_Match()
778 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
779 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
782 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
799 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
806 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match()
808 REGEX_ASSERT(m1->matches(3, status) == FALSE); in API_Match()
810 REGEX_ASSERT(m1->matches(5, status) == FALSE); in API_Match()
811 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match()
812 REGEX_ASSERT(m1->matches(-1, status) == FALSE); in API_Match()
813 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
819 REGEX_ASSERT(m1->matches(len, status) == FALSE); in API_Match()
824 REGEX_ASSERT(m1->matches(len+1, status) == FALSE); in API_Match()
825 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
834 REGEX_ASSERT(m.matches(len, status) == TRUE); in API_Match()
837 REGEX_ASSERT(m.matches(0, status) == TRUE); in API_Match()
847 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match()
848 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE); in API_Match()
849 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE); in API_Match()
850 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match()
851 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE); in API_Match()
852 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
855 REGEX_ASSERT(m1->lookingAt(len, status) == FALSE); in API_Match()
857 REGEX_ASSERT(m1->lookingAt(len+1, status) == FALSE); in API_Match()
858 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
883 REGEX_ASSERT(matcher->lookingAt(status) == TRUE); in API_Match()
902 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status)); in API_Match()
903 REGEX_ASSERT(matcher->end(0, status) == matcher->end(status)); in API_Match()
911 REGEX_ASSERT(matcher->group(status) == "0123456789"); in API_Match()
912 REGEX_ASSERT(matcher->group(0, status) == "0123456789"); in API_Match()
913 REGEX_ASSERT(matcher->group(1, status) == "234567" ); in API_Match()
914 REGEX_ASSERT(matcher->group(2, status) == "45" ); in API_Match()
915 REGEX_ASSERT(matcher->group(3, status) == "89" ); in API_Match()
943 REGEX_ASSERT(matcher->find()); in API_Match()
944 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
945 REGEX_ASSERT(matcher->find()); in API_Match()
946 REGEX_ASSERT(matcher->start(status) == 6); in API_Match()
947 REGEX_ASSERT(matcher->find()); in API_Match()
948 REGEX_ASSERT(matcher->start(status) == 12); in API_Match()
949 REGEX_ASSERT(matcher->find() == FALSE); in API_Match()
950 REGEX_ASSERT(matcher->find() == FALSE); in API_Match()
953 REGEX_ASSERT(matcher->find()); in API_Match()
954 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
956 REGEX_ASSERT(matcher->find(0, status)); in API_Match()
957 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
958 REGEX_ASSERT(matcher->find(1, status)); in API_Match()
959 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
960 REGEX_ASSERT(matcher->find(2, status)); in API_Match()
961 REGEX_ASSERT(matcher->start(status) == 6); in API_Match()
962 REGEX_ASSERT(matcher->find(12, status)); in API_Match()
963 REGEX_ASSERT(matcher->start(status) == 12); in API_Match()
964 REGEX_ASSERT(matcher->find(13, status) == FALSE); in API_Match()
965 REGEX_ASSERT(matcher->find(16, status) == FALSE); in API_Match()
966 REGEX_ASSERT(matcher->find(17, status) == FALSE); in API_Match()
974 REGEX_ASSERT(matcher->groupCount() == 0); in API_Match()
997 REGEX_ASSERT(matcher->find()); in API_Match()
998 REGEX_ASSERT(matcher->start(status) == 0); in API_Match()
999 REGEX_ASSERT(matcher->start(1, status) == -1); in API_Match()
1000 REGEX_ASSERT(matcher->start(2, status) == 1); in API_Match()
1002 REGEX_ASSERT(matcher->find()); in API_Match()
1003 REGEX_ASSERT(matcher->start(status) == 4); in API_Match()
1004 REGEX_ASSERT(matcher->start(1, status) == 4); in API_Match()
1005 REGEX_ASSERT(matcher->start(2, status) == -1); in API_Match()
1028 REGEX_ASSERT(m.start(status) == i); in API_Match()
1029 REGEX_ASSERT(m.end(status) == i); in API_Match()
1031 REGEX_ASSERT(i==5); in API_Match()
1041 REGEX_ASSERT(m.start(status) == i); in API_Match()
1042 REGEX_ASSERT(m.end(status) == i); in API_Match()
1044 REGEX_ASSERT(i==10); in API_Match()
1060 REGEX_ASSERT(m.start(status) == i); in API_Match()
1061 REGEX_ASSERT(m.end(status) == (i<4 ? i+1 : i)); in API_Match()
1063 REGEX_ASSERT(i==5); in API_Match()
1075 REGEX_ASSERT(m.find()); in API_Match()
1076 REGEX_ASSERT(m.start(status) == 0); in API_Match()
1077 REGEX_ASSERT(m.input() == ""); in API_Match()
1085 REGEX_ASSERT(m->find() == FALSE); in API_Match()
1086 REGEX_ASSERT(m->input() == ""); in API_Match()
1099 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1100 REGEX_ASSERT(m.regionEnd() == testString.length()); in API_Match()
1101 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1102 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1106 REGEX_ASSERT(m.matches(status)); in API_Match()
1107 REGEX_ASSERT(m.start(status)==2); in API_Match()
1108 REGEX_ASSERT(m.end(status)==4); in API_Match()
1112 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1113 REGEX_ASSERT(m.regionEnd() == testString.length()); in API_Match()
1117 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1118 REGEX_ASSERT(m.regionEnd() == shorterString.length()); in API_Match()
1120 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1121 REGEX_ASSERT(&m == &m.useAnchoringBounds(FALSE)); in API_Match()
1122 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match()
1123 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1124 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match()
1126 REGEX_ASSERT(&m == &m.useAnchoringBounds(TRUE)); in API_Match()
1127 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1128 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1129 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1131 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1132 REGEX_ASSERT(&m == &m.useTransparentBounds(TRUE)); in API_Match()
1133 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match()
1134 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1135 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match()
1137 REGEX_ASSERT(&m == &m.useTransparentBounds(FALSE)); in API_Match()
1138 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1139 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1140 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1151 REGEX_ASSERT(m1.lookingAt(status) == TRUE); in API_Match()
1152 REGEX_ASSERT(m1.hitEnd() == TRUE); in API_Match()
1153 REGEX_ASSERT(m1.requireEnd() == FALSE); in API_Match()
1158 REGEX_ASSERT(m2.lookingAt(status) == TRUE); in API_Match()
1159 REGEX_ASSERT(m2.hitEnd() == FALSE); in API_Match()
1160 REGEX_ASSERT(m2.requireEnd() == FALSE); in API_Match()
1165 REGEX_ASSERT(m3.lookingAt(status) == TRUE); in API_Match()
1166 REGEX_ASSERT(m3.hitEnd() == TRUE); in API_Match()
1167 REGEX_ASSERT(m3.requireEnd() == TRUE); in API_Match()
1205 REGEX_ASSERT(matcher.getTimeLimit() == 0); in API_Match()
1207 REGEX_ASSERT(matcher.getTimeLimit() == 100); in API_Match()
1208 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1209 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in API_Match()
1218 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1234 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1235 REGEX_ASSERT(status == U_REGEX_STACK_OVERFLOW); in API_Match()
1241 REGEX_ASSERT(matcher.lookingAt(status) == TRUE); in API_Match()
1243 REGEX_ASSERT(matcher.getStackLimit() == 0); in API_Match()
1248 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1249 REGEX_ASSERT(status == U_REGEX_STACK_OVERFLOW); in API_Match()
1250 REGEX_ASSERT(matcher.getStackLimit() == 10000); in API_Match()
1262 REGEX_ASSERT(matcher.matches(status) == TRUE); in API_Match()
1264 REGEX_ASSERT(matcher.getStackLimit() == 30); in API_Match()
1271 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in API_Match()
1272 REGEX_ASSERT(matcher.getStackLimit() == 1000); in API_Match()
1310 REGEX_ASSERT(dest == ".yz..abc...abc.."); in API_Replace()
1314 REGEX_ASSERT(dest == ".yz..yz...yz.."); in API_Replace()
1323 REGEX_ASSERT(dest == ".abx..abx...abx.."); in API_Replace()
1327 REGEX_ASSERT(dest == ".abx..abx...abx.."); in API_Replace()
1336 REGEX_ASSERT(dest == ""); in API_Replace()
1340 REGEX_ASSERT(dest == ""); in API_Replace()
1348 REGEX_ASSERT(dest == "...abc...abc.."); in API_Replace()
1352 REGEX_ASSERT(dest == "........"); in API_Replace()
1361 REGEX_ASSERT(dest == "xyz"); in API_Replace()
1365 REGEX_ASSERT(dest == "xyz"); in API_Replace()
1378 REGEX_ASSERT(dest == "bcbcdefg"); in API_Replace()
1382 REGEX_ASSERT(dest == "The value of $1 is bc.defg"); in API_Replace()
1385 REGEX_ASSERT(U_FAILURE(status)); in API_Replace()
1392 REGEX_ASSERT(dest == "Supplemental Digit 1 bc.defg"); in API_Replace()
1406 REGEX_ASSERT(result == "--C-- 1 --C-- 2 --C-- 3"); in API_Replace()
1417 REGEX_ASSERT(result == expected); in API_Replace()
1436 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1446 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1456 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1459 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh fin"); in API_Replace()
1480 REGEX_ASSERT(pata == patb); in API_Pattern()
1481 REGEX_ASSERT(pata == pata); in API_Pattern()
1491 REGEX_ASSERT(*pat1 == *pat1); in API_Pattern()
1492 REGEX_ASSERT(*pat1 != pata); in API_Pattern()
1496 REGEX_ASSERT(patb == *pat1); in API_Pattern()
1500 REGEX_ASSERT(patc == *pat1); in API_Pattern()
1501 REGEX_ASSERT(patb == patc); in API_Pattern()
1502 REGEX_ASSERT(pat1 != pat2); in API_Pattern()
1504 REGEX_ASSERT(patb != patc); in API_Pattern()
1505 REGEX_ASSERT(patb == *pat2); in API_Pattern()
1509 REGEX_ASSERT(*pat1a == *pat1); in API_Pattern()
1511 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern()
1517 REGEX_ASSERT(*pat1b != *pat1a); in API_Pattern()
1518 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE); in API_Pattern()
1519 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern()
1524 REGEX_ASSERT(*pat1c == *pat1); in API_Pattern()
1525 REGEX_ASSERT(*pat1c != *pat2); in API_Pattern()
1546 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern()
1547 REGEX_ASSERT(mFromClone->group(status) == "Hello"); in API_Pattern()
1548 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern()
1549 REGEX_ASSERT(mFromClone->group(status) == "World"); in API_Pattern()
1550 REGEX_ASSERT(mFromClone->find() == FALSE); in API_Pattern()
1558 REGEX_ASSERT(RegexPattern::matches(".*", "random input", pe, status) == TRUE); in API_Pattern()
1560 REGEX_ASSERT(RegexPattern::matches("abc", "random input", pe, status) == FALSE); in API_Pattern()
1562 REGEX_ASSERT(RegexPattern::matches(".*nput", "random input", pe, status) == TRUE); in API_Pattern()
1564 REGEX_ASSERT(RegexPattern::matches("random input", "random input", pe, status) == TRUE); in API_Pattern()
1566 REGEX_ASSERT(RegexPattern::matches(".*u", "random input", pe, status) == FALSE); in API_Pattern()
1569 REGEX_ASSERT(RegexPattern::matches("abc", "abc", pe, status) == FALSE); in API_Pattern()
1570 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Pattern()
1584 REGEX_ASSERT(n==4); in API_Pattern()
1585 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1586 REGEX_ASSERT(fields[1]=="is"); in API_Pattern()
1587 REGEX_ASSERT(fields[2]=="the"); in API_Pattern()
1588 REGEX_ASSERT(fields[3]=="time"); in API_Pattern()
1589 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1593 REGEX_ASSERT(n==2); in API_Pattern()
1594 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1595 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern()
1596 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern()
1602 REGEX_ASSERT(n==1); in API_Pattern()
1603 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern()
1604 REGEX_ASSERT(fields[1]=="*"); in API_Pattern()
1609 REGEX_ASSERT(n==6); in API_Pattern()
1610 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1611 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern()
1612 REGEX_ASSERT(fields[2]=="is"); in API_Pattern()
1613 REGEX_ASSERT(fields[3]=="the"); in API_Pattern()
1614 REGEX_ASSERT(fields[4]=="time"); in API_Pattern()
1615 REGEX_ASSERT(fields[5]==""); in API_Pattern()
1619 REGEX_ASSERT(n==2); in API_Pattern()
1620 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1621 REGEX_ASSERT(fields[1]==""); in API_Pattern()
1626 REGEX_ASSERT(n==0); in API_Pattern()
1627 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern()
1638 REGEX_ASSERT(n==7); in API_Pattern()
1639 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1640 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1641 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1642 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1643 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1644 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1645 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1646 REGEX_ASSERT(status==U_ZERO_ERROR); in API_Pattern()
1650 REGEX_ASSERT(n==7); in API_Pattern()
1651 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1652 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1653 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1654 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1655 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1656 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1657 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1663 REGEX_ASSERT(n==6); in API_Pattern()
1664 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1665 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1666 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1667 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1668 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1669 REGEX_ASSERT(fields[5]==""); // All text following "<c>" field delimiter. in API_Pattern()
1670 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern()
1676 REGEX_ASSERT(n==5); in API_Pattern()
1677 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1678 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1679 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1680 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1681 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern()
1682 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1688 REGEX_ASSERT(n==5); in API_Pattern()
1689 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1690 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1691 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1692 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1693 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1694 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1699 REGEX_ASSERT(n==4); in API_Pattern()
1700 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1701 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1702 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1703 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern()
1711 REGEX_ASSERT(n==5); in API_Pattern()
1712 REGEX_ASSERT(fields[0]=="1"); in API_Pattern()
1713 REGEX_ASSERT(fields[1]=="-"); in API_Pattern()
1714 REGEX_ASSERT(fields[2]=="10"); in API_Pattern()
1715 REGEX_ASSERT(fields[3]==","); in API_Pattern()
1716 REGEX_ASSERT(fields[4]=="20"); in API_Pattern()
1724 REGEX_ASSERT(n==4); in API_Pattern()
1725 REGEX_ASSERT(fields[0]=="a"); in API_Pattern()
1726 REGEX_ASSERT(fields[1]=="b"); in API_Pattern()
1727 REGEX_ASSERT(fields[2]=="c"); in API_Pattern()
1728 REGEX_ASSERT(fields[3]==""); in API_Pattern()
1732 REGEX_ASSERT(n==4); in API_Pattern()
1733 REGEX_ASSERT(fields[0]=="a"); in API_Pattern()
1734 REGEX_ASSERT(fields[1]==""); in API_Pattern()
1735 REGEX_ASSERT(fields[2]==""); in API_Pattern()
1736 REGEX_ASSERT(fields[3]==""); in API_Pattern()
1744 REGEX_ASSERT(n==5); in API_Pattern()
1745 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1746 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1747 REGEX_ASSERT(fields[2]=="b"); in API_Pattern()
1748 REGEX_ASSERT(fields[3]=="c"); in API_Pattern()
1749 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1757 REGEX_ASSERT(pat1->pattern() == ""); in API_Pattern()
1762 REGEX_ASSERT(pat1->pattern() == "(Hello, world)*"); in API_Pattern()
1771 REGEX_ASSERT(pat1->getDynamicClassID() == RegexPattern::getStaticClassID()); in API_Pattern()
1772 REGEX_ASSERT(pat1->getDynamicClassID() != NULL); in API_Pattern()
1775 REGEX_ASSERT(pat1->getDynamicClassID() != m->getDynamicClassID()); in API_Pattern()
1776 REGEX_ASSERT(m->getDynamicClassID() == RegexMatcher::getStaticClassID()); in API_Pattern()
1777 REGEX_ASSERT(m->getDynamicClassID() != NULL); in API_Pattern()
1833 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1837 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match_UTF8()
1842 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1844 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match_UTF8()
1845 REGEX_ASSERT(utext_nativeLength(&empty) == 0); in API_Match_UTF8()
1854 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1857 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1873 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1880 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match_UTF8()
1882 REGEX_ASSERT(m1->matches(3, status) == FALSE); in API_Match_UTF8()
1884 REGEX_ASSERT(m1->matches(5, status) == FALSE); in API_Match_UTF8()
1885 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match_UTF8()
1886 REGEX_ASSERT(m1->matches(-1, status) == FALSE); in API_Match_UTF8()
1887 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1892 REGEX_ASSERT(m1->matches(input2Len, status) == FALSE); in API_Match_UTF8()
1897 REGEX_ASSERT(m1->matches(input2Len+1, status) == FALSE); in API_Match_UTF8()
1898 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1906 REGEX_ASSERT(m.matches(input1Len, status) == TRUE); in API_Match_UTF8()
1909 REGEX_ASSERT(m.matches(0, status) == TRUE); in API_Match_UTF8()
1919 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match_UTF8()
1920 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE); in API_Match_UTF8()
1921 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE); in API_Match_UTF8()
1922 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match_UTF8()
1923 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE); in API_Match_UTF8()
1924 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1926 REGEX_ASSERT(m1->lookingAt(input2Len, status) == FALSE); in API_Match_UTF8()
1928 REGEX_ASSERT(m1->lookingAt(input2Len+1, status) == FALSE); in API_Match_UTF8()
1929 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1964 REGEX_ASSERT(matcher->lookingAt(status) == TRUE); in API_Match_UTF8()
1983 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status)); in API_Match_UTF8()
1984 REGEX_ASSERT(matcher->end(0, status) == matcher->end(status)); in API_Match_UTF8()
2006 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2019 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2020 REGEX_ASSERT(utext_getNativeIndex(result) == 0); in API_Match_UTF8()
2021 REGEX_ASSERT(length == 10); in API_Match_UTF8()
2027 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2028 REGEX_ASSERT(length == 6); in API_Match_UTF8()
2034 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2035 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2036 REGEX_ASSERT(length == 6); in API_Match_UTF8()
2043 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2044 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2050 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2051 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2052 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2059 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2060 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2066 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2067 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2068 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2109 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2110 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2111 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2112 REGEX_ASSERT(matcher->start(status) == 6); in API_Match_UTF8()
2113 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2114 REGEX_ASSERT(matcher->start(status) == 12); in API_Match_UTF8()
2115 REGEX_ASSERT(matcher->find() == FALSE); in API_Match_UTF8()
2116 REGEX_ASSERT(matcher->find() == FALSE); in API_Match_UTF8()
2119 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2120 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2122 REGEX_ASSERT(matcher->find(0, status)); in API_Match_UTF8()
2123 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2124 REGEX_ASSERT(matcher->find(1, status)); in API_Match_UTF8()
2125 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2126 REGEX_ASSERT(matcher->find(2, status)); in API_Match_UTF8()
2127 REGEX_ASSERT(matcher->start(status) == 6); in API_Match_UTF8()
2128 REGEX_ASSERT(matcher->find(12, status)); in API_Match_UTF8()
2129 REGEX_ASSERT(matcher->start(status) == 12); in API_Match_UTF8()
2130 REGEX_ASSERT(matcher->find(13, status) == FALSE); in API_Match_UTF8()
2131 REGEX_ASSERT(matcher->find(16, status) == FALSE); in API_Match_UTF8()
2132 REGEX_ASSERT(matcher->find(17, status) == FALSE); in API_Match_UTF8()
2140 REGEX_ASSERT(matcher->groupCount() == 0); in API_Match_UTF8()
2171 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2172 REGEX_ASSERT(matcher->start(status) == 0); in API_Match_UTF8()
2173 REGEX_ASSERT(matcher->start(1, status) == -1); in API_Match_UTF8()
2174 REGEX_ASSERT(matcher->start(2, status) == 1); in API_Match_UTF8()
2176 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2177 REGEX_ASSERT(matcher->start(status) == 4); in API_Match_UTF8()
2178 REGEX_ASSERT(matcher->start(1, status) == 4); in API_Match_UTF8()
2179 REGEX_ASSERT(matcher->start(2, status) == -1); in API_Match_UTF8()
2206 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2207 REGEX_ASSERT(m.end(status) == i); in API_Match_UTF8()
2209 REGEX_ASSERT(i==5); in API_Match_UTF8()
2220 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2221 REGEX_ASSERT(m.end(status) == i); in API_Match_UTF8()
2223 REGEX_ASSERT(i==20); in API_Match_UTF8()
2242 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2243 REGEX_ASSERT(m.end(status) == (i<4 ? i+1 : i)); in API_Match_UTF8()
2245 REGEX_ASSERT(i==5); in API_Match_UTF8()
2259 REGEX_ASSERT(m.find()); in API_Match_UTF8()
2260 REGEX_ASSERT(m.start(status) == 0); in API_Match_UTF8()
2261 REGEX_ASSERT(m.input() == ""); in API_Match_UTF8()
2269 REGEX_ASSERT(m->find() == FALSE); in API_Match_UTF8()
2270 REGEX_ASSERT(utext_nativeLength(m->inputText()) == 0); in API_Match_UTF8()
2289 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2290 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("This is test data")); in API_Match_UTF8()
2291 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2292 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2296 REGEX_ASSERT(m.matches(status)); in API_Match_UTF8()
2297 REGEX_ASSERT(m.start(status)==2); in API_Match_UTF8()
2298 REGEX_ASSERT(m.end(status)==4); in API_Match_UTF8()
2302 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2303 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("This is test data")); in API_Match_UTF8()
2308 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2309 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("short")); in API_Match_UTF8()
2311 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2312 REGEX_ASSERT(&m == &m.useAnchoringBounds(FALSE)); in API_Match_UTF8()
2313 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match_UTF8()
2314 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2315 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match_UTF8()
2317 REGEX_ASSERT(&m == &m.useAnchoringBounds(TRUE)); in API_Match_UTF8()
2318 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2319 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2320 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2322 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2323 REGEX_ASSERT(&m == &m.useTransparentBounds(TRUE)); in API_Match_UTF8()
2324 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match_UTF8()
2325 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2326 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match_UTF8()
2328 REGEX_ASSERT(&m == &m.useTransparentBounds(FALSE)); in API_Match_UTF8()
2329 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2330 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2331 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2350 REGEX_ASSERT(m1.lookingAt(status) == TRUE); in API_Match_UTF8()
2351 REGEX_ASSERT(m1.hitEnd() == TRUE); in API_Match_UTF8()
2352 REGEX_ASSERT(m1.requireEnd() == FALSE); in API_Match_UTF8()
2359 REGEX_ASSERT(m2.lookingAt(status) == TRUE); in API_Match_UTF8()
2360 REGEX_ASSERT(m2.hitEnd() == FALSE); in API_Match_UTF8()
2361 REGEX_ASSERT(m2.requireEnd() == FALSE); in API_Match_UTF8()
2368 REGEX_ASSERT(m3.lookingAt(status) == TRUE); in API_Match_UTF8()
2369 REGEX_ASSERT(m3.hitEnd() == TRUE); in API_Match_UTF8()
2370 REGEX_ASSERT(m3.requireEnd() == TRUE); in API_Match_UTF8()
2427 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2439 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2455 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2465 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2480 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2489 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2506 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2517 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2536 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2546 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2572 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2586 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2601 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2621 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2630 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2651 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2675 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2760 REGEX_ASSERT(pata == patb); in API_Pattern_UTF8()
2761 REGEX_ASSERT(pata == pata); in API_Pattern_UTF8()
2776 REGEX_ASSERT(*pat1 == *pat1); in API_Pattern_UTF8()
2777 REGEX_ASSERT(*pat1 != pata); in API_Pattern_UTF8()
2781 REGEX_ASSERT(patb == *pat1); in API_Pattern_UTF8()
2785 REGEX_ASSERT(patc == *pat1); in API_Pattern_UTF8()
2786 REGEX_ASSERT(patb == patc); in API_Pattern_UTF8()
2787 REGEX_ASSERT(pat1 != pat2); in API_Pattern_UTF8()
2789 REGEX_ASSERT(patb != patc); in API_Pattern_UTF8()
2790 REGEX_ASSERT(patb == *pat2); in API_Pattern_UTF8()
2794 REGEX_ASSERT(*pat1a == *pat1); in API_Pattern_UTF8()
2796 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern_UTF8()
2802 REGEX_ASSERT(*pat1b != *pat1a); in API_Pattern_UTF8()
2803 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE); in API_Pattern_UTF8()
2804 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern_UTF8()
2809 REGEX_ASSERT(*pat1c == *pat1); in API_Pattern_UTF8()
2810 REGEX_ASSERT(*pat1c != *pat2); in API_Pattern_UTF8()
2841 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern_UTF8()
2842 REGEX_ASSERT(mFromClone->group(status) == "Hello"); in API_Pattern_UTF8()
2843 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern_UTF8()
2844 REGEX_ASSERT(mFromClone->group(status) == "World"); in API_Pattern_UTF8()
2845 REGEX_ASSERT(mFromClone->find() == FALSE); in API_Pattern_UTF8()
2866 REGEX_ASSERT(RegexPattern::matches(&pattern, &input, pe, status) == TRUE); in API_Pattern_UTF8()
2871 REGEX_ASSERT(RegexPattern::matches("abc", "random input", pe, status) == FALSE); in API_Pattern_UTF8()
2876 REGEX_ASSERT(RegexPattern::matches(".*nput", "random input", pe, status) == TRUE); in API_Pattern_UTF8()
2880 REGEX_ASSERT(RegexPattern::matches("random input", "random input", pe, status) == TRUE); in API_Pattern_UTF8()
2885 REGEX_ASSERT(RegexPattern::matches(".*u", "random input", pe, status) == FALSE); in API_Pattern_UTF8()
2891 REGEX_ASSERT(RegexPattern::matches("abc", "abc", pe, status) == FALSE); in API_Pattern_UTF8()
2892 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Pattern_UTF8()
2912 REGEX_ASSERT(n==4); in API_Pattern_UTF8()
2913 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2914 REGEX_ASSERT(fields[1]=="is"); in API_Pattern_UTF8()
2915 REGEX_ASSERT(fields[2]=="the"); in API_Pattern_UTF8()
2916 REGEX_ASSERT(fields[3]=="time"); in API_Pattern_UTF8()
2917 REGEX_ASSERT(fields[4]==""); in API_Pattern_UTF8()
2921 REGEX_ASSERT(n==2); in API_Pattern_UTF8()
2922 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2923 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern_UTF8()
2924 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern_UTF8()
2930 REGEX_ASSERT(n==1); in API_Pattern_UTF8()
2931 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern_UTF8()
2932 REGEX_ASSERT(fields[1]=="*"); in API_Pattern_UTF8()
2937 REGEX_ASSERT(n==6); in API_Pattern_UTF8()
2938 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2939 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern_UTF8()
2940 REGEX_ASSERT(fields[2]=="is"); in API_Pattern_UTF8()
2941 REGEX_ASSERT(fields[3]=="the"); in API_Pattern_UTF8()
2942 REGEX_ASSERT(fields[4]=="time"); in API_Pattern_UTF8()
2943 REGEX_ASSERT(fields[5]==""); in API_Pattern_UTF8()
2944 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
2949 REGEX_ASSERT(n==2); in API_Pattern_UTF8()
2950 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2951 REGEX_ASSERT(fields[1]==""); in API_Pattern_UTF8()
2952 REGEX_ASSERT(fields[2]=="*"); in API_Pattern_UTF8()
2957 REGEX_ASSERT(n==0); in API_Pattern_UTF8()
2958 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern_UTF8()
2971 REGEX_ASSERT(n==7); in API_Pattern_UTF8()
2972 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2973 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2974 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2975 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2976 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
2977 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
2978 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
2979 REGEX_ASSERT(fields[7]=="*"); in API_Pattern_UTF8()
2980 REGEX_ASSERT(status==U_ZERO_ERROR); in API_Pattern_UTF8()
2985 REGEX_ASSERT(n==7); in API_Pattern_UTF8()
2986 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
2987 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
2988 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
2989 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
2990 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
2991 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
2992 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
2993 REGEX_ASSERT(fields[7]=="*"); in API_Pattern_UTF8()
2999 REGEX_ASSERT(n==6); in API_Pattern_UTF8()
3000 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3001 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3002 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3003 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3004 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3005 REGEX_ASSERT(fields[5]==" "); in API_Pattern_UTF8()
3006 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern_UTF8()
3012 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3013 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3014 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3015 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3016 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3017 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern_UTF8()
3018 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
3024 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3025 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3026 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3027 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3028 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3029 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3030 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
3035 REGEX_ASSERT(n==4); in API_Pattern_UTF8()
3036 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3037 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3038 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3039 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern_UTF8()
3048 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3049 REGEX_ASSERT(fields[0]=="1"); in API_Pattern_UTF8()
3050 REGEX_ASSERT(fields[1]=="-"); in API_Pattern_UTF8()
3051 REGEX_ASSERT(fields[2]=="10"); in API_Pattern_UTF8()
3052 REGEX_ASSERT(fields[3]==","); in API_Pattern_UTF8()
3053 REGEX_ASSERT(fields[4]=="20"); in API_Pattern_UTF8()
3070 REGEX_ASSERT(numFields == 5); in API_Pattern_UTF8()
3076 REGEX_ASSERT(splits[5] == NULL); in API_Pattern_UTF8()
3092 REGEX_ASSERT(pat1->pattern() == ""); in API_Pattern_UTF8()
3794 REGEX_ASSERT(status == U_REGEX_UNIMPLEMENTED); in Errors()
4741 REGEX_ASSERT(result == FALSE); in Bug6149()
4787 REGEX_ASSERT(returnedFn == NULL); in Callbacks()
4788 REGEX_ASSERT(returnedContext == NULL); in Callbacks()
4803 REGEX_ASSERT(returnedFn == testCallBackFn); in Callbacks()
4804 REGEX_ASSERT(returnedContext == &cbInfo); in Callbacks()
4811 REGEX_ASSERT(matcher.matches(status)); in Callbacks()
4813 REGEX_ASSERT(cbInfo.numCalls == 0); in Callbacks()
4821 REGEX_ASSERT(matcher.matches(status)==FALSE); in Callbacks()
4823 REGEX_ASSERT(cbInfo.numCalls > 0); in Callbacks()
4830 REGEX_ASSERT(matcher.matches(status)==FALSE); in Callbacks()
4831 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in Callbacks()
4832 REGEX_ASSERT(cbInfo.numCalls == 4); in Callbacks()
4839 REGEX_ASSERT(matcher.find(status)==FALSE); in Callbacks()
4840 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in Callbacks()
4841 REGEX_ASSERT(cbInfo.numCalls == 4); in Callbacks()
4891 REGEX_ASSERT(returnedFn == NULL); in FindProgressCallbacks()
4892 REGEX_ASSERT(returnedContext == NULL); in FindProgressCallbacks()
4907 REGEX_ASSERT(returnedFn == testProgressCallBackFn); in FindProgressCallbacks()
4908 REGEX_ASSERT(returnedContext == &cbInfo); in FindProgressCallbacks()
4918 REGEX_ASSERT(matcher.find(0, status)); in FindProgressCallbacks()
4920 REGEX_ASSERT(cbInfo.numCalls == 0); in FindProgressCallbacks()
4928 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4930 REGEX_ASSERT(cbInfo.numCalls > 0 && cbInfo.numCalls < 25); in FindProgressCallbacks()
4937 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4938 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in FindProgressCallbacks()
4939 REGEX_ASSERT(cbInfo.numCalls == s1.length() - 5); in FindProgressCallbacks()
4946 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4947 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in FindProgressCallbacks()
4951 REGEX_ASSERT(matcher.find(cbInfo.lastIndex, status)); in FindProgressCallbacks()
4998 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5001 REGEX_ASSERT(testUTextEqual(resultText, &text1)); in PreAllocatedUTextCAPI()
5005 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5008 REGEX_ASSERT(testUTextEqual(resultText, &text1)); in PreAllocatedUTextCAPI()
5014 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5017 REGEX_ASSERT(testUTextEqual(resultText, &text2)); in PreAllocatedUTextCAPI()
5043 REGEX_ASSERT(result==TRUE); in PreAllocatedUTextCAPI()
5049 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5050 REGEX_ASSERT(utext_getNativeIndex(actual) == 6); in PreAllocatedUTextCAPI()
5051 REGEX_ASSERT(length == 16); in PreAllocatedUTextCAPI()
5052 REGEX_ASSERT(utext_nativeLength(actual) == 47); in PreAllocatedUTextCAPI()
5058 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5059 REGEX_ASSERT(utext_getNativeIndex(actual) == 9); // position of " interior " in PreAllocatedUTextCAPI()
5060 REGEX_ASSERT(length == 10); in PreAllocatedUTextCAPI()
5061 REGEX_ASSERT(utext_nativeLength(actual) == 47); in PreAllocatedUTextCAPI()
5066 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in PreAllocatedUTextCAPI()
5067 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5098 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5106 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5115 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5145 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5153 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5183 REGEX_ASSERT(5 == group); in NamedCapture()
5186 REGEX_ASSERT(3 == group); in NamedCapture()
5191 REGEX_ASSERT(6 == group); in NamedCapture()
5201 REGEX_ASSERT(*copiedPat == *pat); in NamedCapture()
5206 REGEX_ASSERT(5 == group); in NamedCapture()
5209 REGEX_ASSERT(3 == group); in NamedCapture()
5220 REGEX_ASSERT(UnicodeString("Substitution of 'quotes' for 'double brackets'") == replacedText); in NamedCapture()
5231 REGEX_ASSERT(UnicodeString("a<bcmxy>z") == replacedText); in NamedCapture()
5236 REGEX_ASSERT(UnicodeString("a<m>z") == replacedText); in NamedCapture()
5241 REGEX_ASSERT(UnicodeString("a<m>z") == replacedText); in NamedCapture()
5246 REGEX_ASSERT(UnicodeString("a<x>z") == replacedText); in NamedCapture()
5251 REGEX_ASSERT(UnicodeString("a<y>z") == replacedText); in NamedCapture()
5255 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in NamedCapture()
5260 REGEX_ASSERT(UnicodeString("a<bcmxy4>z") == replacedText); in NamedCapture()
5265 REGEX_ASSERT(UnicodeString("a<m6>z") == replacedText); // This is group 1. in NamedCapture()
5270 REGEX_ASSERT(UnicodeString("a<yxmm>z") == replacedText); in NamedCapture()
5275 REGEX_ASSERT(UnicodeString("ayxmmz") == replacedText); in NamedCapture()
5279 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5283 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5287 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5291 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5314 REGEX_ASSERT(UnicodeString("a<bcmxy>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5320 REGEX_ASSERT(UnicodeString("a<m>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5326 REGEX_ASSERT(UnicodeString("a<m>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5332 REGEX_ASSERT(UnicodeString("a<x>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5338 REGEX_ASSERT(UnicodeString("a<y>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5343 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in NamedCapture()
5349 REGEX_ASSERT(UnicodeString("a<bcmxy4>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5355 REGEX_ASSERT(UnicodeString("a<m6>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5361 REGEX_ASSERT(UnicodeString("a<yxmm>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5367 REGEX_ASSERT(UnicodeString("ayxmmz") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5372 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5377 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5382 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5387 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5421 REGEX_ASSERT(nn == groupNum); in NamedCaptureLimits()
5435 REGEX_ASSERT(status == U_REGEX_PATTERN_TOO_BIG); in NamedCaptureLimits()
5460 REGEX_ASSERT(REMatcher->find()); in Bug7651()
5461 REGEX_ASSERT(REMatcher->start(status) == 0); in Bug7651()
5470 REGEX_ASSERT(REMatcher->find()); in Bug7651()
5471 REGEX_ASSERT(REMatcher->start(status) == 0); in Bug7651()
5483 REGEX_ASSERT(m->lookingAt(status)); in Bug7740()
5487 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in Bug7740()
5488 REGEX_ASSERT(s == ""); in Bug7740()
5506 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in Bug8479()
5522 REGEX_ASSERT(numFields == 8); in Bug7029()
5550 REGEX_ASSERT(cf.length() >= 2); in Bug9283()
5588 REGEX_ASSERT(status == U_REGEX_INVALID_STATE); in Bug10459()
5589 REGEX_ASSERT(len == 0); in Bug10459()
5742 REGEX_ASSERT(uregex_lookingAt(re, 0, &status)); in TestBug11480()
5745 REGEX_ASSERT(length == 0); in TestBug11480()
5746 REGEX_ASSERT(buf[0] == 13); in TestBug11480()
5747 REGEX_ASSERT(buf[1] == 0); in TestBug11480()
5748 REGEX_ASSERT(buf[2] == 13); in TestBug11480()
5757 REGEX_ASSERT(matcher.lookingAt(0, status)); in TestBug11480()
5764 REGEX_ASSERT(groupLen == 1); in TestBug11480()
5765 REGEX_ASSERT(utext_getNativeIndex(&group) == 0); in TestBug11480()
5770 REGEX_ASSERT(groupLen == 0); in TestBug11480()
5771 REGEX_ASSERT(matcher.start(2, status) == -1); in TestBug11480()
5784 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()
5793 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()
5804 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()
5809 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()