• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:REGEX_ASSERT

243 #define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: RegexTest failure: REGEX_ASSERT(%s) f…  macro
818 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
819 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
821 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match()
822 REGEX_ASSERT(m1->input() == instr2); in API_Match()
824 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
825 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
827 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match()
828 REGEX_ASSERT(m1->input() == empty); in API_Match()
829 REGEX_ASSERT(&m1->pattern() == pat2); in API_Match()
837 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
838 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
841 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
858 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
865 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match()
867 REGEX_ASSERT(m1->matches(3, status) == FALSE); in API_Match()
869 REGEX_ASSERT(m1->matches(5, status) == FALSE); in API_Match()
870 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match()
871 REGEX_ASSERT(m1->matches(-1, status) == FALSE); in API_Match()
872 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
878 REGEX_ASSERT(m1->matches(len, status) == FALSE); in API_Match()
883 REGEX_ASSERT(m1->matches(len+1, status) == FALSE); in API_Match()
884 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
893 REGEX_ASSERT(m.matches(len, status) == TRUE); in API_Match()
896 REGEX_ASSERT(m.matches(0, status) == TRUE); in API_Match()
906 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match()
907 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE); in API_Match()
908 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE); in API_Match()
909 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match()
910 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE); in API_Match()
911 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
914 REGEX_ASSERT(m1->lookingAt(len, status) == FALSE); in API_Match()
916 REGEX_ASSERT(m1->lookingAt(len+1, status) == FALSE); in API_Match()
917 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
942 REGEX_ASSERT(matcher->lookingAt(status) == TRUE); in API_Match()
961 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status)); in API_Match()
962 REGEX_ASSERT(matcher->end(0, status) == matcher->end(status)); in API_Match()
970 REGEX_ASSERT(matcher->group(status) == "0123456789"); in API_Match()
971 REGEX_ASSERT(matcher->group(0, status) == "0123456789"); in API_Match()
972 REGEX_ASSERT(matcher->group(1, status) == "234567" ); in API_Match()
973 REGEX_ASSERT(matcher->group(2, status) == "45" ); in API_Match()
974 REGEX_ASSERT(matcher->group(3, status) == "89" ); in API_Match()
1002 REGEX_ASSERT(matcher->find()); in API_Match()
1003 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
1004 REGEX_ASSERT(matcher->find()); in API_Match()
1005 REGEX_ASSERT(matcher->start(status) == 6); in API_Match()
1006 REGEX_ASSERT(matcher->find()); in API_Match()
1007 REGEX_ASSERT(matcher->start(status) == 12); in API_Match()
1008 REGEX_ASSERT(matcher->find() == FALSE); in API_Match()
1009 REGEX_ASSERT(matcher->find() == FALSE); in API_Match()
1012 REGEX_ASSERT(matcher->find()); in API_Match()
1013 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
1015 REGEX_ASSERT(matcher->find(0, status)); in API_Match()
1016 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
1017 REGEX_ASSERT(matcher->find(1, status)); in API_Match()
1018 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
1019 REGEX_ASSERT(matcher->find(2, status)); in API_Match()
1020 REGEX_ASSERT(matcher->start(status) == 6); in API_Match()
1021 REGEX_ASSERT(matcher->find(12, status)); in API_Match()
1022 REGEX_ASSERT(matcher->start(status) == 12); in API_Match()
1023 REGEX_ASSERT(matcher->find(13, status) == FALSE); in API_Match()
1024 REGEX_ASSERT(matcher->find(16, status) == FALSE); in API_Match()
1025 REGEX_ASSERT(matcher->find(17, status) == FALSE); in API_Match()
1033 REGEX_ASSERT(matcher->groupCount() == 0); in API_Match()
1056 REGEX_ASSERT(matcher->find()); in API_Match()
1057 REGEX_ASSERT(matcher->start(status) == 0); in API_Match()
1058 REGEX_ASSERT(matcher->start(1, status) == -1); in API_Match()
1059 REGEX_ASSERT(matcher->start(2, status) == 1); in API_Match()
1061 REGEX_ASSERT(matcher->find()); in API_Match()
1062 REGEX_ASSERT(matcher->start(status) == 4); in API_Match()
1063 REGEX_ASSERT(matcher->start(1, status) == 4); in API_Match()
1064 REGEX_ASSERT(matcher->start(2, status) == -1); in API_Match()
1087 REGEX_ASSERT(m.start(status) == i); in API_Match()
1088 REGEX_ASSERT(m.end(status) == i); in API_Match()
1090 REGEX_ASSERT(i==5); in API_Match()
1100 REGEX_ASSERT(m.start(status) == i); in API_Match()
1101 REGEX_ASSERT(m.end(status) == i); in API_Match()
1103 REGEX_ASSERT(i==10); in API_Match()
1119 REGEX_ASSERT(m.start(status) == i); in API_Match()
1120 REGEX_ASSERT(m.end(status) == (i<4 ? i+1 : i)); in API_Match()
1122 REGEX_ASSERT(i==5); in API_Match()
1134 REGEX_ASSERT(m.find()); in API_Match()
1135 REGEX_ASSERT(m.start(status) == 0); in API_Match()
1136 REGEX_ASSERT(m.input() == ""); in API_Match()
1144 REGEX_ASSERT(m->find() == FALSE); in API_Match()
1145 REGEX_ASSERT(m->input() == ""); in API_Match()
1158 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1159 REGEX_ASSERT(m.regionEnd() == testString.length()); in API_Match()
1160 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1161 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1165 REGEX_ASSERT(m.matches(status)); in API_Match()
1166 REGEX_ASSERT(m.start(status)==2); in API_Match()
1167 REGEX_ASSERT(m.end(status)==4); in API_Match()
1171 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1172 REGEX_ASSERT(m.regionEnd() == testString.length()); in API_Match()
1176 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1177 REGEX_ASSERT(m.regionEnd() == shorterString.length()); in API_Match()
1179 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1180 REGEX_ASSERT(&m == &m.useAnchoringBounds(FALSE)); in API_Match()
1181 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match()
1182 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1183 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match()
1185 REGEX_ASSERT(&m == &m.useAnchoringBounds(TRUE)); in API_Match()
1186 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1187 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1188 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1190 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1191 REGEX_ASSERT(&m == &m.useTransparentBounds(TRUE)); in API_Match()
1192 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match()
1193 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1194 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match()
1196 REGEX_ASSERT(&m == &m.useTransparentBounds(FALSE)); in API_Match()
1197 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1198 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1199 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1210 REGEX_ASSERT(m1.lookingAt(status) == TRUE); in API_Match()
1211 REGEX_ASSERT(m1.hitEnd() == TRUE); in API_Match()
1212 REGEX_ASSERT(m1.requireEnd() == FALSE); in API_Match()
1217 REGEX_ASSERT(m2.lookingAt(status) == TRUE); in API_Match()
1218 REGEX_ASSERT(m2.hitEnd() == FALSE); in API_Match()
1219 REGEX_ASSERT(m2.requireEnd() == FALSE); in API_Match()
1224 REGEX_ASSERT(m3.lookingAt(status) == TRUE); in API_Match()
1225 REGEX_ASSERT(m3.hitEnd() == TRUE); in API_Match()
1226 REGEX_ASSERT(m3.requireEnd() == TRUE); in API_Match()
1264 REGEX_ASSERT(matcher.getTimeLimit() == 0); in API_Match()
1266 REGEX_ASSERT(matcher.getTimeLimit() == 100); in API_Match()
1267 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1268 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in API_Match()
1277 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1293 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1294 REGEX_ASSERT(status == U_REGEX_STACK_OVERFLOW); in API_Match()
1300 REGEX_ASSERT(matcher.lookingAt(status) == TRUE); in API_Match()
1302 REGEX_ASSERT(matcher.getStackLimit() == 0); in API_Match()
1307 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1308 REGEX_ASSERT(status == U_REGEX_STACK_OVERFLOW); in API_Match()
1309 REGEX_ASSERT(matcher.getStackLimit() == 10000); in API_Match()
1321 REGEX_ASSERT(matcher.matches(status) == TRUE); in API_Match()
1323 REGEX_ASSERT(matcher.getStackLimit() == 30); in API_Match()
1330 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in API_Match()
1331 REGEX_ASSERT(matcher.getStackLimit() == 1000); in API_Match()
1369 REGEX_ASSERT(dest == ".yz..abc...abc.."); in API_Replace()
1373 REGEX_ASSERT(dest == ".yz..yz...yz.."); in API_Replace()
1382 REGEX_ASSERT(dest == ".abx..abx...abx.."); in API_Replace()
1386 REGEX_ASSERT(dest == ".abx..abx...abx.."); in API_Replace()
1395 REGEX_ASSERT(dest == ""); in API_Replace()
1399 REGEX_ASSERT(dest == ""); in API_Replace()
1407 REGEX_ASSERT(dest == "...abc...abc.."); in API_Replace()
1411 REGEX_ASSERT(dest == "........"); in API_Replace()
1420 REGEX_ASSERT(dest == "xyz"); in API_Replace()
1424 REGEX_ASSERT(dest == "xyz"); in API_Replace()
1437 REGEX_ASSERT(dest == "bcbcdefg"); in API_Replace()
1441 REGEX_ASSERT(dest == "The value of $1 is bc.defg"); in API_Replace()
1444 REGEX_ASSERT(U_FAILURE(status)); in API_Replace()
1451 REGEX_ASSERT(dest == "Supplemental Digit 1 bc.defg"); in API_Replace()
1465 REGEX_ASSERT(result == "--C-- 1 --C-- 2 --C-- 3"); in API_Replace()
1476 REGEX_ASSERT(result == expected); in API_Replace()
1495 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1505 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1515 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1518 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh fin"); in API_Replace()
1539 REGEX_ASSERT(pata == patb); in API_Pattern()
1540 REGEX_ASSERT(pata == pata); in API_Pattern()
1550 REGEX_ASSERT(*pat1 == *pat1); in API_Pattern()
1551 REGEX_ASSERT(*pat1 != pata); in API_Pattern()
1555 REGEX_ASSERT(patb == *pat1); in API_Pattern()
1559 REGEX_ASSERT(patc == *pat1); in API_Pattern()
1560 REGEX_ASSERT(patb == patc); in API_Pattern()
1561 REGEX_ASSERT(pat1 != pat2); in API_Pattern()
1563 REGEX_ASSERT(patb != patc); in API_Pattern()
1564 REGEX_ASSERT(patb == *pat2); in API_Pattern()
1568 REGEX_ASSERT(*pat1a == *pat1); in API_Pattern()
1570 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern()
1576 REGEX_ASSERT(*pat1b != *pat1a); in API_Pattern()
1577 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE); in API_Pattern()
1578 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern()
1583 REGEX_ASSERT(*pat1c == *pat1); in API_Pattern()
1584 REGEX_ASSERT(*pat1c != *pat2); in API_Pattern()
1605 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern()
1606 REGEX_ASSERT(mFromClone->group(status) == "Hello"); in API_Pattern()
1607 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern()
1608 REGEX_ASSERT(mFromClone->group(status) == "World"); in API_Pattern()
1609 REGEX_ASSERT(mFromClone->find() == FALSE); in API_Pattern()
1617 REGEX_ASSERT(RegexPattern::matches(".*", "random input", pe, status) == TRUE); in API_Pattern()
1619 REGEX_ASSERT(RegexPattern::matches("abc", "random input", pe, status) == FALSE); in API_Pattern()
1621 REGEX_ASSERT(RegexPattern::matches(".*nput", "random input", pe, status) == TRUE); in API_Pattern()
1623 REGEX_ASSERT(RegexPattern::matches("random input", "random input", pe, status) == TRUE); in API_Pattern()
1625 REGEX_ASSERT(RegexPattern::matches(".*u", "random input", pe, status) == FALSE); in API_Pattern()
1628 REGEX_ASSERT(RegexPattern::matches("abc", "abc", pe, status) == FALSE); in API_Pattern()
1629 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Pattern()
1643 REGEX_ASSERT(n==4); in API_Pattern()
1644 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1645 REGEX_ASSERT(fields[1]=="is"); in API_Pattern()
1646 REGEX_ASSERT(fields[2]=="the"); in API_Pattern()
1647 REGEX_ASSERT(fields[3]=="time"); in API_Pattern()
1648 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1652 REGEX_ASSERT(n==2); in API_Pattern()
1653 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1654 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern()
1655 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern()
1661 REGEX_ASSERT(n==1); in API_Pattern()
1662 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern()
1663 REGEX_ASSERT(fields[1]=="*"); in API_Pattern()
1668 REGEX_ASSERT(n==6); in API_Pattern()
1669 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1670 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern()
1671 REGEX_ASSERT(fields[2]=="is"); in API_Pattern()
1672 REGEX_ASSERT(fields[3]=="the"); in API_Pattern()
1673 REGEX_ASSERT(fields[4]=="time"); in API_Pattern()
1674 REGEX_ASSERT(fields[5]==""); in API_Pattern()
1678 REGEX_ASSERT(n==2); in API_Pattern()
1679 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1680 REGEX_ASSERT(fields[1]==""); in API_Pattern()
1685 REGEX_ASSERT(n==0); in API_Pattern()
1686 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern()
1697 REGEX_ASSERT(n==7); in API_Pattern()
1698 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1699 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1700 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1701 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1702 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1703 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1704 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1705 REGEX_ASSERT(status==U_ZERO_ERROR); in API_Pattern()
1709 REGEX_ASSERT(n==7); in API_Pattern()
1710 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1711 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1712 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1713 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1714 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1715 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1716 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1722 REGEX_ASSERT(n==6); in API_Pattern()
1723 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1724 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1725 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1726 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1727 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1728 REGEX_ASSERT(fields[5]==""); // All text following "<c>" field delimiter. in API_Pattern()
1729 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern()
1735 REGEX_ASSERT(n==5); in API_Pattern()
1736 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1737 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1738 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1739 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1740 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern()
1741 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1747 REGEX_ASSERT(n==5); in API_Pattern()
1748 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1749 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1750 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1751 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1752 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1753 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1758 REGEX_ASSERT(n==4); in API_Pattern()
1759 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1760 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1761 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1762 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern()
1770 REGEX_ASSERT(n==5); in API_Pattern()
1771 REGEX_ASSERT(fields[0]=="1"); in API_Pattern()
1772 REGEX_ASSERT(fields[1]=="-"); in API_Pattern()
1773 REGEX_ASSERT(fields[2]=="10"); in API_Pattern()
1774 REGEX_ASSERT(fields[3]==","); in API_Pattern()
1775 REGEX_ASSERT(fields[4]=="20"); in API_Pattern()
1783 REGEX_ASSERT(n==4); in API_Pattern()
1784 REGEX_ASSERT(fields[0]=="a"); in API_Pattern()
1785 REGEX_ASSERT(fields[1]=="b"); in API_Pattern()
1786 REGEX_ASSERT(fields[2]=="c"); in API_Pattern()
1787 REGEX_ASSERT(fields[3]==""); in API_Pattern()
1791 REGEX_ASSERT(n==4); in API_Pattern()
1792 REGEX_ASSERT(fields[0]=="a"); in API_Pattern()
1793 REGEX_ASSERT(fields[1]==""); in API_Pattern()
1794 REGEX_ASSERT(fields[2]==""); in API_Pattern()
1795 REGEX_ASSERT(fields[3]==""); in API_Pattern()
1803 REGEX_ASSERT(n==5); in API_Pattern()
1804 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1805 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1806 REGEX_ASSERT(fields[2]=="b"); in API_Pattern()
1807 REGEX_ASSERT(fields[3]=="c"); in API_Pattern()
1808 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1816 REGEX_ASSERT(pat1->pattern() == ""); in API_Pattern()
1821 REGEX_ASSERT(pat1->pattern() == "(Hello, world)*"); in API_Pattern()
1830 REGEX_ASSERT(pat1->getDynamicClassID() == RegexPattern::getStaticClassID()); in API_Pattern()
1831 REGEX_ASSERT(pat1->getDynamicClassID() != NULL); in API_Pattern()
1834 REGEX_ASSERT(pat1->getDynamicClassID() != m->getDynamicClassID()); in API_Pattern()
1835 REGEX_ASSERT(m->getDynamicClassID() == RegexMatcher::getStaticClassID()); in API_Pattern()
1836 REGEX_ASSERT(m->getDynamicClassID() != NULL); in API_Pattern()
1892 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1896 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match_UTF8()
1901 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1903 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match_UTF8()
1904 REGEX_ASSERT(utext_nativeLength(&empty) == 0); in API_Match_UTF8()
1913 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1916 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1932 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1939 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match_UTF8()
1941 REGEX_ASSERT(m1->matches(3, status) == FALSE); in API_Match_UTF8()
1943 REGEX_ASSERT(m1->matches(5, status) == FALSE); in API_Match_UTF8()
1944 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match_UTF8()
1945 REGEX_ASSERT(m1->matches(-1, status) == FALSE); in API_Match_UTF8()
1946 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1951 REGEX_ASSERT(m1->matches(input2Len, status) == FALSE); in API_Match_UTF8()
1956 REGEX_ASSERT(m1->matches(input2Len+1, status) == FALSE); in API_Match_UTF8()
1957 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1965 REGEX_ASSERT(m.matches(input1Len, status) == TRUE); in API_Match_UTF8()
1968 REGEX_ASSERT(m.matches(0, status) == TRUE); in API_Match_UTF8()
1978 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match_UTF8()
1979 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE); in API_Match_UTF8()
1980 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE); in API_Match_UTF8()
1981 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match_UTF8()
1982 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE); in API_Match_UTF8()
1983 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1985 REGEX_ASSERT(m1->lookingAt(input2Len, status) == FALSE); in API_Match_UTF8()
1987 REGEX_ASSERT(m1->lookingAt(input2Len+1, status) == FALSE); in API_Match_UTF8()
1988 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
2023 REGEX_ASSERT(matcher->lookingAt(status) == TRUE); in API_Match_UTF8()
2042 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status)); in API_Match_UTF8()
2043 REGEX_ASSERT(matcher->end(0, status) == matcher->end(status)); in API_Match_UTF8()
2065 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2078 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2079 REGEX_ASSERT(utext_getNativeIndex(result) == 0); in API_Match_UTF8()
2080 REGEX_ASSERT(length == 10); in API_Match_UTF8()
2086 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2087 REGEX_ASSERT(length == 6); in API_Match_UTF8()
2093 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2094 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2095 REGEX_ASSERT(length == 6); in API_Match_UTF8()
2102 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2103 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2109 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2110 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2111 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2118 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2119 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2125 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2126 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2127 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2168 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2169 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2170 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2171 REGEX_ASSERT(matcher->start(status) == 6); in API_Match_UTF8()
2172 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2173 REGEX_ASSERT(matcher->start(status) == 12); in API_Match_UTF8()
2174 REGEX_ASSERT(matcher->find() == FALSE); in API_Match_UTF8()
2175 REGEX_ASSERT(matcher->find() == FALSE); in API_Match_UTF8()
2178 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2179 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2181 REGEX_ASSERT(matcher->find(0, status)); in API_Match_UTF8()
2182 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2183 REGEX_ASSERT(matcher->find(1, status)); in API_Match_UTF8()
2184 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2185 REGEX_ASSERT(matcher->find(2, status)); in API_Match_UTF8()
2186 REGEX_ASSERT(matcher->start(status) == 6); in API_Match_UTF8()
2187 REGEX_ASSERT(matcher->find(12, status)); in API_Match_UTF8()
2188 REGEX_ASSERT(matcher->start(status) == 12); in API_Match_UTF8()
2189 REGEX_ASSERT(matcher->find(13, status) == FALSE); in API_Match_UTF8()
2190 REGEX_ASSERT(matcher->find(16, status) == FALSE); in API_Match_UTF8()
2191 REGEX_ASSERT(matcher->find(17, status) == FALSE); in API_Match_UTF8()
2199 REGEX_ASSERT(matcher->groupCount() == 0); in API_Match_UTF8()
2230 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2231 REGEX_ASSERT(matcher->start(status) == 0); in API_Match_UTF8()
2232 REGEX_ASSERT(matcher->start(1, status) == -1); in API_Match_UTF8()
2233 REGEX_ASSERT(matcher->start(2, status) == 1); in API_Match_UTF8()
2235 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2236 REGEX_ASSERT(matcher->start(status) == 4); in API_Match_UTF8()
2237 REGEX_ASSERT(matcher->start(1, status) == 4); in API_Match_UTF8()
2238 REGEX_ASSERT(matcher->start(2, status) == -1); in API_Match_UTF8()
2265 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2266 REGEX_ASSERT(m.end(status) == i); in API_Match_UTF8()
2268 REGEX_ASSERT(i==5); in API_Match_UTF8()
2279 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2280 REGEX_ASSERT(m.end(status) == i); in API_Match_UTF8()
2282 REGEX_ASSERT(i==20); in API_Match_UTF8()
2301 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2302 REGEX_ASSERT(m.end(status) == (i<4 ? i+1 : i)); in API_Match_UTF8()
2304 REGEX_ASSERT(i==5); in API_Match_UTF8()
2318 REGEX_ASSERT(m.find()); in API_Match_UTF8()
2319 REGEX_ASSERT(m.start(status) == 0); in API_Match_UTF8()
2320 REGEX_ASSERT(m.input() == ""); in API_Match_UTF8()
2328 REGEX_ASSERT(m->find() == FALSE); in API_Match_UTF8()
2329 REGEX_ASSERT(utext_nativeLength(m->inputText()) == 0); in API_Match_UTF8()
2348 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2349 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("This is test data")); in API_Match_UTF8()
2350 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2351 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2355 REGEX_ASSERT(m.matches(status)); in API_Match_UTF8()
2356 REGEX_ASSERT(m.start(status)==2); in API_Match_UTF8()
2357 REGEX_ASSERT(m.end(status)==4); in API_Match_UTF8()
2361 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2362 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("This is test data")); in API_Match_UTF8()
2367 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2368 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("short")); in API_Match_UTF8()
2370 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2371 REGEX_ASSERT(&m == &m.useAnchoringBounds(FALSE)); in API_Match_UTF8()
2372 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match_UTF8()
2373 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2374 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match_UTF8()
2376 REGEX_ASSERT(&m == &m.useAnchoringBounds(TRUE)); in API_Match_UTF8()
2377 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2378 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2379 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2381 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2382 REGEX_ASSERT(&m == &m.useTransparentBounds(TRUE)); in API_Match_UTF8()
2383 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match_UTF8()
2384 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2385 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match_UTF8()
2387 REGEX_ASSERT(&m == &m.useTransparentBounds(FALSE)); in API_Match_UTF8()
2388 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2389 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2390 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2409 REGEX_ASSERT(m1.lookingAt(status) == TRUE); in API_Match_UTF8()
2410 REGEX_ASSERT(m1.hitEnd() == TRUE); in API_Match_UTF8()
2411 REGEX_ASSERT(m1.requireEnd() == FALSE); in API_Match_UTF8()
2418 REGEX_ASSERT(m2.lookingAt(status) == TRUE); in API_Match_UTF8()
2419 REGEX_ASSERT(m2.hitEnd() == FALSE); in API_Match_UTF8()
2420 REGEX_ASSERT(m2.requireEnd() == FALSE); in API_Match_UTF8()
2427 REGEX_ASSERT(m3.lookingAt(status) == TRUE); in API_Match_UTF8()
2428 REGEX_ASSERT(m3.hitEnd() == TRUE); in API_Match_UTF8()
2429 REGEX_ASSERT(m3.requireEnd() == TRUE); in API_Match_UTF8()
2486 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2498 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2514 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2524 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2539 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2548 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2565 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2576 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2595 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2605 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2631 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2645 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2660 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2680 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2689 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2710 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2734 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2819 REGEX_ASSERT(pata == patb); in API_Pattern_UTF8()
2820 REGEX_ASSERT(pata == pata); in API_Pattern_UTF8()
2835 REGEX_ASSERT(*pat1 == *pat1); in API_Pattern_UTF8()
2836 REGEX_ASSERT(*pat1 != pata); in API_Pattern_UTF8()
2840 REGEX_ASSERT(patb == *pat1); in API_Pattern_UTF8()
2844 REGEX_ASSERT(patc == *pat1); in API_Pattern_UTF8()
2845 REGEX_ASSERT(patb == patc); in API_Pattern_UTF8()
2846 REGEX_ASSERT(pat1 != pat2); in API_Pattern_UTF8()
2848 REGEX_ASSERT(patb != patc); in API_Pattern_UTF8()
2849 REGEX_ASSERT(patb == *pat2); in API_Pattern_UTF8()
2853 REGEX_ASSERT(*pat1a == *pat1); in API_Pattern_UTF8()
2855 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern_UTF8()
2861 REGEX_ASSERT(*pat1b != *pat1a); in API_Pattern_UTF8()
2862 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE); in API_Pattern_UTF8()
2863 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern_UTF8()
2868 REGEX_ASSERT(*pat1c == *pat1); in API_Pattern_UTF8()
2869 REGEX_ASSERT(*pat1c != *pat2); in API_Pattern_UTF8()
2900 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern_UTF8()
2901 REGEX_ASSERT(mFromClone->group(status) == "Hello"); in API_Pattern_UTF8()
2902 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern_UTF8()
2903 REGEX_ASSERT(mFromClone->group(status) == "World"); in API_Pattern_UTF8()
2904 REGEX_ASSERT(mFromClone->find() == FALSE); in API_Pattern_UTF8()
2925 REGEX_ASSERT(RegexPattern::matches(&pattern, &input, pe, status) == TRUE); in API_Pattern_UTF8()
2930 REGEX_ASSERT(RegexPattern::matches("abc", "random input", pe, status) == FALSE); in API_Pattern_UTF8()
2935 REGEX_ASSERT(RegexPattern::matches(".*nput", "random input", pe, status) == TRUE); in API_Pattern_UTF8()
2939 REGEX_ASSERT(RegexPattern::matches("random input", "random input", pe, status) == TRUE); in API_Pattern_UTF8()
2944 REGEX_ASSERT(RegexPattern::matches(".*u", "random input", pe, status) == FALSE); in API_Pattern_UTF8()
2950 REGEX_ASSERT(RegexPattern::matches("abc", "abc", pe, status) == FALSE); in API_Pattern_UTF8()
2951 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Pattern_UTF8()
2971 REGEX_ASSERT(n==4); in API_Pattern_UTF8()
2972 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2973 REGEX_ASSERT(fields[1]=="is"); in API_Pattern_UTF8()
2974 REGEX_ASSERT(fields[2]=="the"); in API_Pattern_UTF8()
2975 REGEX_ASSERT(fields[3]=="time"); in API_Pattern_UTF8()
2976 REGEX_ASSERT(fields[4]==""); in API_Pattern_UTF8()
2980 REGEX_ASSERT(n==2); in API_Pattern_UTF8()
2981 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2982 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern_UTF8()
2983 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern_UTF8()
2989 REGEX_ASSERT(n==1); in API_Pattern_UTF8()
2990 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern_UTF8()
2991 REGEX_ASSERT(fields[1]=="*"); in API_Pattern_UTF8()
2996 REGEX_ASSERT(n==6); in API_Pattern_UTF8()
2997 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2998 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern_UTF8()
2999 REGEX_ASSERT(fields[2]=="is"); in API_Pattern_UTF8()
3000 REGEX_ASSERT(fields[3]=="the"); in API_Pattern_UTF8()
3001 REGEX_ASSERT(fields[4]=="time"); in API_Pattern_UTF8()
3002 REGEX_ASSERT(fields[5]==""); in API_Pattern_UTF8()
3003 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
3008 REGEX_ASSERT(n==2); in API_Pattern_UTF8()
3009 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
3010 REGEX_ASSERT(fields[1]==""); in API_Pattern_UTF8()
3011 REGEX_ASSERT(fields[2]=="*"); in API_Pattern_UTF8()
3016 REGEX_ASSERT(n==0); in API_Pattern_UTF8()
3017 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern_UTF8()
3030 REGEX_ASSERT(n==7); in API_Pattern_UTF8()
3031 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
3032 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3033 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3034 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3035 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3036 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
3037 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
3038 REGEX_ASSERT(fields[7]=="*"); in API_Pattern_UTF8()
3039 REGEX_ASSERT(status==U_ZERO_ERROR); in API_Pattern_UTF8()
3044 REGEX_ASSERT(n==7); in API_Pattern_UTF8()
3045 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3046 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3047 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3048 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3049 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3050 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
3051 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
3052 REGEX_ASSERT(fields[7]=="*"); in API_Pattern_UTF8()
3058 REGEX_ASSERT(n==6); in API_Pattern_UTF8()
3059 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3060 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3061 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3062 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3063 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3064 REGEX_ASSERT(fields[5]==" "); in API_Pattern_UTF8()
3065 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern_UTF8()
3071 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3072 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3073 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3074 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3075 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3076 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern_UTF8()
3077 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
3083 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3084 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3085 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3086 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3087 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3088 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3089 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
3094 REGEX_ASSERT(n==4); in API_Pattern_UTF8()
3095 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3096 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3097 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3098 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern_UTF8()
3107 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3108 REGEX_ASSERT(fields[0]=="1"); in API_Pattern_UTF8()
3109 REGEX_ASSERT(fields[1]=="-"); in API_Pattern_UTF8()
3110 REGEX_ASSERT(fields[2]=="10"); in API_Pattern_UTF8()
3111 REGEX_ASSERT(fields[3]==","); in API_Pattern_UTF8()
3112 REGEX_ASSERT(fields[4]=="20"); in API_Pattern_UTF8()
3129 REGEX_ASSERT(numFields == 5); in API_Pattern_UTF8()
3135 REGEX_ASSERT(splits[5] == NULL); in API_Pattern_UTF8()
3151 REGEX_ASSERT(pat1->pattern() == ""); in API_Pattern_UTF8()
3846 REGEX_ASSERT(status == U_REGEX_UNIMPLEMENTED); in Errors()
4793 REGEX_ASSERT(result == FALSE); in Bug6149()
4839 REGEX_ASSERT(returnedFn == NULL); in Callbacks()
4840 REGEX_ASSERT(returnedContext == NULL); in Callbacks()
4855 REGEX_ASSERT(returnedFn == testCallBackFn); in Callbacks()
4856 REGEX_ASSERT(returnedContext == &cbInfo); in Callbacks()
4863 REGEX_ASSERT(matcher.matches(status)); in Callbacks()
4865 REGEX_ASSERT(cbInfo.numCalls == 0); in Callbacks()
4873 REGEX_ASSERT(matcher.matches(status)==FALSE); in Callbacks()
4875 REGEX_ASSERT(cbInfo.numCalls > 0); in Callbacks()
4882 REGEX_ASSERT(matcher.matches(status)==FALSE); in Callbacks()
4883 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in Callbacks()
4884 REGEX_ASSERT(cbInfo.numCalls == 4); in Callbacks()
4891 REGEX_ASSERT(matcher.find(status)==FALSE); in Callbacks()
4892 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in Callbacks()
4893 REGEX_ASSERT(cbInfo.numCalls == 4); in Callbacks()
4943 REGEX_ASSERT(returnedFn == NULL); in FindProgressCallbacks()
4944 REGEX_ASSERT(returnedContext == NULL); in FindProgressCallbacks()
4959 REGEX_ASSERT(returnedFn == testProgressCallBackFn); in FindProgressCallbacks()
4960 REGEX_ASSERT(returnedContext == &cbInfo); in FindProgressCallbacks()
4970 REGEX_ASSERT(matcher.find(0, status)); in FindProgressCallbacks()
4972 REGEX_ASSERT(cbInfo.numCalls == 0); in FindProgressCallbacks()
4980 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4982 REGEX_ASSERT(cbInfo.numCalls > 0 && cbInfo.numCalls < 25); in FindProgressCallbacks()
4989 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4990 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in FindProgressCallbacks()
4991 REGEX_ASSERT(cbInfo.numCalls == s1.length() - 5); in FindProgressCallbacks()
4998 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4999 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in FindProgressCallbacks()
5003 REGEX_ASSERT(matcher.find(cbInfo.lastIndex, status)); in FindProgressCallbacks()
5050 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5053 REGEX_ASSERT(testUTextEqual(resultText, &text1)); in PreAllocatedUTextCAPI()
5057 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5060 REGEX_ASSERT(testUTextEqual(resultText, &text1)); in PreAllocatedUTextCAPI()
5066 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5069 REGEX_ASSERT(testUTextEqual(resultText, &text2)); in PreAllocatedUTextCAPI()
5095 REGEX_ASSERT(result==TRUE); in PreAllocatedUTextCAPI()
5101 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5102 REGEX_ASSERT(utext_getNativeIndex(actual) == 6); in PreAllocatedUTextCAPI()
5103 REGEX_ASSERT(length == 16); in PreAllocatedUTextCAPI()
5104 REGEX_ASSERT(utext_nativeLength(actual) == 47); in PreAllocatedUTextCAPI()
5110 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5111 REGEX_ASSERT(utext_getNativeIndex(actual) == 9); // position of " interior " in PreAllocatedUTextCAPI()
5112 REGEX_ASSERT(length == 10); in PreAllocatedUTextCAPI()
5113 REGEX_ASSERT(utext_nativeLength(actual) == 47); in PreAllocatedUTextCAPI()
5118 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in PreAllocatedUTextCAPI()
5119 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5150 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5158 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5167 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5197 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5205 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5235 REGEX_ASSERT(5 == group); in NamedCapture()
5238 REGEX_ASSERT(3 == group); in NamedCapture()
5243 REGEX_ASSERT(6 == group); in NamedCapture()
5253 REGEX_ASSERT(*copiedPat == *pat); in NamedCapture()
5258 REGEX_ASSERT(5 == group); in NamedCapture()
5261 REGEX_ASSERT(3 == group); in NamedCapture()
5272 REGEX_ASSERT(UnicodeString("Substitution of 'quotes' for 'double brackets'") == replacedText); in NamedCapture()
5283 REGEX_ASSERT(UnicodeString("a<bcmxy>z") == replacedText); in NamedCapture()
5288 REGEX_ASSERT(UnicodeString("a<m>z") == replacedText); in NamedCapture()
5293 REGEX_ASSERT(UnicodeString("a<m>z") == replacedText); in NamedCapture()
5298 REGEX_ASSERT(UnicodeString("a<x>z") == replacedText); in NamedCapture()
5303 REGEX_ASSERT(UnicodeString("a<y>z") == replacedText); in NamedCapture()
5307 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in NamedCapture()
5312 REGEX_ASSERT(UnicodeString("a<bcmxy4>z") == replacedText); in NamedCapture()
5317 REGEX_ASSERT(UnicodeString("a<m6>z") == replacedText); // This is group 1. in NamedCapture()
5322 REGEX_ASSERT(UnicodeString("a<yxmm>z") == replacedText); in NamedCapture()
5327 REGEX_ASSERT(UnicodeString("ayxmmz") == replacedText); in NamedCapture()
5331 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5335 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5339 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5343 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5366 REGEX_ASSERT(UnicodeString("a<bcmxy>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5372 REGEX_ASSERT(UnicodeString("a<m>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5378 REGEX_ASSERT(UnicodeString("a<m>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5384 REGEX_ASSERT(UnicodeString("a<x>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5390 REGEX_ASSERT(UnicodeString("a<y>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5395 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in NamedCapture()
5401 REGEX_ASSERT(UnicodeString("a<bcmxy4>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5407 REGEX_ASSERT(UnicodeString("a<m6>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5413 REGEX_ASSERT(UnicodeString("a<yxmm>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5419 REGEX_ASSERT(UnicodeString("ayxmmz") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5424 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5429 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5434 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5439 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5473 REGEX_ASSERT(nn == groupNum); in NamedCaptureLimits()
5487 REGEX_ASSERT(status == U_REGEX_PATTERN_TOO_BIG); in NamedCaptureLimits()
5512 REGEX_ASSERT(REMatcher->find()); in Bug7651()
5513 REGEX_ASSERT(REMatcher->start(status) == 0); in Bug7651()
5522 REGEX_ASSERT(REMatcher->find()); in Bug7651()
5523 REGEX_ASSERT(REMatcher->start(status) == 0); in Bug7651()
5535 REGEX_ASSERT(m->lookingAt(status)); in Bug7740()
5539 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in Bug7740()
5540 REGEX_ASSERT(s == ""); in Bug7740()
5558 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in Bug8479()
5574 REGEX_ASSERT(numFields == 8); in Bug7029()
5602 REGEX_ASSERT(cf.length() >= 2); in Bug9283()
5640 REGEX_ASSERT(status == U_REGEX_INVALID_STATE); in Bug10459()
5641 REGEX_ASSERT(len == 0); in Bug10459()
5794 REGEX_ASSERT(uregex_lookingAt(re, 0, &status)); in TestBug11480()
5797 REGEX_ASSERT(length == 0); in TestBug11480()
5798 REGEX_ASSERT(buf[0] == 13); in TestBug11480()
5799 REGEX_ASSERT(buf[1] == 0); in TestBug11480()
5800 REGEX_ASSERT(buf[2] == 13); in TestBug11480()
5809 REGEX_ASSERT(matcher.lookingAt(0, status)); in TestBug11480()
5816 REGEX_ASSERT(groupLen == 1); in TestBug11480()
5817 REGEX_ASSERT(utext_getNativeIndex(&group) == 0); in TestBug11480()
5822 REGEX_ASSERT(groupLen == 0); in TestBug11480()
5823 REGEX_ASSERT(matcher.start(2, status) == -1); in TestBug11480()