Lines Matching refs:REGEX_ASSERT
196 #define REGEX_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro
792 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
793 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
795 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match()
796 REGEX_ASSERT(m1->input() == instr2); in API_Match()
798 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
799 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
801 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match()
802 REGEX_ASSERT(m1->input() == empty); in API_Match()
803 REGEX_ASSERT(&m1->pattern() == pat2); in API_Match()
811 REGEX_ASSERT(m1->input() == inStr1); in API_Match()
812 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match()
815 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
832 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
839 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match()
841 REGEX_ASSERT(m1->matches(3, status) == FALSE); in API_Match()
843 REGEX_ASSERT(m1->matches(5, status) == FALSE); in API_Match()
844 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match()
845 REGEX_ASSERT(m1->matches(-1, status) == FALSE); in API_Match()
846 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
852 REGEX_ASSERT(m1->matches(len, status) == FALSE); in API_Match()
857 REGEX_ASSERT(m1->matches(len+1, status) == FALSE); in API_Match()
858 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
867 REGEX_ASSERT(m.matches(len, status) == TRUE); in API_Match()
870 REGEX_ASSERT(m.matches(0, status) == TRUE); in API_Match()
880 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match()
881 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE); in API_Match()
882 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE); in API_Match()
883 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match()
884 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE); in API_Match()
885 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
888 REGEX_ASSERT(m1->lookingAt(len, status) == FALSE); in API_Match()
890 REGEX_ASSERT(m1->lookingAt(len+1, status) == FALSE); in API_Match()
891 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match()
916 REGEX_ASSERT(matcher->lookingAt(status) == TRUE); in API_Match()
935 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status)); in API_Match()
936 REGEX_ASSERT(matcher->end(0, status) == matcher->end(status)); in API_Match()
944 REGEX_ASSERT(matcher->group(status) == "0123456789"); in API_Match()
945 REGEX_ASSERT(matcher->group(0, status) == "0123456789"); in API_Match()
946 REGEX_ASSERT(matcher->group(1, status) == "234567" ); in API_Match()
947 REGEX_ASSERT(matcher->group(2, status) == "45" ); in API_Match()
948 REGEX_ASSERT(matcher->group(3, status) == "89" ); in API_Match()
976 REGEX_ASSERT(matcher->find()); in API_Match()
977 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
978 REGEX_ASSERT(matcher->find()); in API_Match()
979 REGEX_ASSERT(matcher->start(status) == 6); in API_Match()
980 REGEX_ASSERT(matcher->find()); in API_Match()
981 REGEX_ASSERT(matcher->start(status) == 12); in API_Match()
982 REGEX_ASSERT(matcher->find() == FALSE); in API_Match()
983 REGEX_ASSERT(matcher->find() == FALSE); in API_Match()
986 REGEX_ASSERT(matcher->find()); in API_Match()
987 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
989 REGEX_ASSERT(matcher->find(0, status)); in API_Match()
990 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
991 REGEX_ASSERT(matcher->find(1, status)); in API_Match()
992 REGEX_ASSERT(matcher->start(status) == 1); in API_Match()
993 REGEX_ASSERT(matcher->find(2, status)); in API_Match()
994 REGEX_ASSERT(matcher->start(status) == 6); in API_Match()
995 REGEX_ASSERT(matcher->find(12, status)); in API_Match()
996 REGEX_ASSERT(matcher->start(status) == 12); in API_Match()
997 REGEX_ASSERT(matcher->find(13, status) == FALSE); in API_Match()
998 REGEX_ASSERT(matcher->find(16, status) == FALSE); in API_Match()
999 REGEX_ASSERT(matcher->find(17, status) == FALSE); in API_Match()
1007 REGEX_ASSERT(matcher->groupCount() == 0); in API_Match()
1030 REGEX_ASSERT(matcher->find()); in API_Match()
1031 REGEX_ASSERT(matcher->start(status) == 0); in API_Match()
1032 REGEX_ASSERT(matcher->start(1, status) == -1); in API_Match()
1033 REGEX_ASSERT(matcher->start(2, status) == 1); in API_Match()
1035 REGEX_ASSERT(matcher->find()); in API_Match()
1036 REGEX_ASSERT(matcher->start(status) == 4); in API_Match()
1037 REGEX_ASSERT(matcher->start(1, status) == 4); in API_Match()
1038 REGEX_ASSERT(matcher->start(2, status) == -1); in API_Match()
1061 REGEX_ASSERT(m.start(status) == i); in API_Match()
1062 REGEX_ASSERT(m.end(status) == i); in API_Match()
1064 REGEX_ASSERT(i==5); in API_Match()
1074 REGEX_ASSERT(m.start(status) == i); in API_Match()
1075 REGEX_ASSERT(m.end(status) == i); in API_Match()
1077 REGEX_ASSERT(i==10); in API_Match()
1093 REGEX_ASSERT(m.start(status) == i); in API_Match()
1094 REGEX_ASSERT(m.end(status) == (i<4 ? i+1 : i)); in API_Match()
1096 REGEX_ASSERT(i==5); in API_Match()
1108 REGEX_ASSERT(m.find()); in API_Match()
1109 REGEX_ASSERT(m.start(status) == 0); in API_Match()
1110 REGEX_ASSERT(m.input() == ""); in API_Match()
1118 REGEX_ASSERT(m->find() == FALSE); in API_Match()
1119 REGEX_ASSERT(m->input() == ""); in API_Match()
1132 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1133 REGEX_ASSERT(m.regionEnd() == testString.length()); in API_Match()
1134 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1135 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1139 REGEX_ASSERT(m.matches(status)); in API_Match()
1140 REGEX_ASSERT(m.start(status)==2); in API_Match()
1141 REGEX_ASSERT(m.end(status)==4); in API_Match()
1145 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1146 REGEX_ASSERT(m.regionEnd() == testString.length()); in API_Match()
1150 REGEX_ASSERT(m.regionStart() == 0); in API_Match()
1151 REGEX_ASSERT(m.regionEnd() == shorterString.length()); in API_Match()
1153 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1154 REGEX_ASSERT(&m == &m.useAnchoringBounds(FALSE)); in API_Match()
1155 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match()
1156 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1157 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match()
1159 REGEX_ASSERT(&m == &m.useAnchoringBounds(TRUE)); in API_Match()
1160 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1161 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1162 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match()
1164 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1165 REGEX_ASSERT(&m == &m.useTransparentBounds(TRUE)); in API_Match()
1166 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match()
1167 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1168 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match()
1170 REGEX_ASSERT(&m == &m.useTransparentBounds(FALSE)); in API_Match()
1171 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1172 REGEX_ASSERT(&m == &m.reset()); in API_Match()
1173 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match()
1184 REGEX_ASSERT(m1.lookingAt(status) == TRUE); in API_Match()
1185 REGEX_ASSERT(m1.hitEnd() == TRUE); in API_Match()
1186 REGEX_ASSERT(m1.requireEnd() == FALSE); in API_Match()
1191 REGEX_ASSERT(m2.lookingAt(status) == TRUE); in API_Match()
1192 REGEX_ASSERT(m2.hitEnd() == FALSE); in API_Match()
1193 REGEX_ASSERT(m2.requireEnd() == FALSE); in API_Match()
1198 REGEX_ASSERT(m3.lookingAt(status) == TRUE); in API_Match()
1199 REGEX_ASSERT(m3.hitEnd() == TRUE); in API_Match()
1200 REGEX_ASSERT(m3.requireEnd() == TRUE); in API_Match()
1238 REGEX_ASSERT(matcher.getTimeLimit() == 0); in API_Match()
1240 REGEX_ASSERT(matcher.getTimeLimit() == 100); in API_Match()
1241 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1242 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in API_Match()
1251 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1267 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1268 REGEX_ASSERT(status == U_REGEX_STACK_OVERFLOW); in API_Match()
1274 REGEX_ASSERT(matcher.lookingAt(status) == TRUE); in API_Match()
1276 REGEX_ASSERT(matcher.getStackLimit() == 0); in API_Match()
1281 REGEX_ASSERT(matcher.lookingAt(status) == FALSE); in API_Match()
1282 REGEX_ASSERT(status == U_REGEX_STACK_OVERFLOW); in API_Match()
1283 REGEX_ASSERT(matcher.getStackLimit() == 10000); in API_Match()
1295 REGEX_ASSERT(matcher.matches(status) == TRUE); in API_Match()
1297 REGEX_ASSERT(matcher.getStackLimit() == 30); in API_Match()
1304 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in API_Match()
1305 REGEX_ASSERT(matcher.getStackLimit() == 1000); in API_Match()
1343 REGEX_ASSERT(dest == ".yz..abc...abc.."); in API_Replace()
1347 REGEX_ASSERT(dest == ".yz..yz...yz.."); in API_Replace()
1356 REGEX_ASSERT(dest == ".abx..abx...abx.."); in API_Replace()
1360 REGEX_ASSERT(dest == ".abx..abx...abx.."); in API_Replace()
1369 REGEX_ASSERT(dest == ""); in API_Replace()
1373 REGEX_ASSERT(dest == ""); in API_Replace()
1381 REGEX_ASSERT(dest == "...abc...abc.."); in API_Replace()
1385 REGEX_ASSERT(dest == "........"); in API_Replace()
1394 REGEX_ASSERT(dest == "xyz"); in API_Replace()
1398 REGEX_ASSERT(dest == "xyz"); in API_Replace()
1411 REGEX_ASSERT(dest == "bcbcdefg"); in API_Replace()
1415 REGEX_ASSERT(dest == "The value of $1 is bc.defg"); in API_Replace()
1418 REGEX_ASSERT(U_FAILURE(status)); in API_Replace()
1425 REGEX_ASSERT(dest == "Supplemental Digit 1 bc.defg"); in API_Replace()
1439 REGEX_ASSERT(result == "--C-- 1 --C-- 2 --C-- 3"); in API_Replace()
1450 REGEX_ASSERT(result == expected); in API_Replace()
1469 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1479 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1489 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh"); in API_Replace()
1492 REGEX_ASSERT(result == "The matches start with ss and end with ee ooh fin"); in API_Replace()
1513 REGEX_ASSERT(pata == patb); in API_Pattern()
1514 REGEX_ASSERT(pata == pata); in API_Pattern()
1524 REGEX_ASSERT(*pat1 == *pat1); in API_Pattern()
1525 REGEX_ASSERT(*pat1 != pata); in API_Pattern()
1529 REGEX_ASSERT(patb == *pat1); in API_Pattern()
1533 REGEX_ASSERT(patc == *pat1); in API_Pattern()
1534 REGEX_ASSERT(patb == patc); in API_Pattern()
1535 REGEX_ASSERT(pat1 != pat2); in API_Pattern()
1537 REGEX_ASSERT(patb != patc); in API_Pattern()
1538 REGEX_ASSERT(patb == *pat2); in API_Pattern()
1542 REGEX_ASSERT(*pat1a == *pat1); in API_Pattern()
1544 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern()
1550 REGEX_ASSERT(*pat1b != *pat1a); in API_Pattern()
1551 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE); in API_Pattern()
1552 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern()
1557 REGEX_ASSERT(*pat1c == *pat1); in API_Pattern()
1558 REGEX_ASSERT(*pat1c != *pat2); in API_Pattern()
1579 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern()
1580 REGEX_ASSERT(mFromClone->group(status) == "Hello"); in API_Pattern()
1581 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern()
1582 REGEX_ASSERT(mFromClone->group(status) == "World"); in API_Pattern()
1583 REGEX_ASSERT(mFromClone->find() == FALSE); in API_Pattern()
1591 REGEX_ASSERT(RegexPattern::matches(".*", "random input", pe, status) == TRUE); in API_Pattern()
1593 REGEX_ASSERT(RegexPattern::matches("abc", "random input", pe, status) == FALSE); in API_Pattern()
1595 REGEX_ASSERT(RegexPattern::matches(".*nput", "random input", pe, status) == TRUE); in API_Pattern()
1597 REGEX_ASSERT(RegexPattern::matches("random input", "random input", pe, status) == TRUE); in API_Pattern()
1599 REGEX_ASSERT(RegexPattern::matches(".*u", "random input", pe, status) == FALSE); in API_Pattern()
1602 REGEX_ASSERT(RegexPattern::matches("abc", "abc", pe, status) == FALSE); in API_Pattern()
1603 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Pattern()
1617 REGEX_ASSERT(n==4); in API_Pattern()
1618 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1619 REGEX_ASSERT(fields[1]=="is"); in API_Pattern()
1620 REGEX_ASSERT(fields[2]=="the"); in API_Pattern()
1621 REGEX_ASSERT(fields[3]=="time"); in API_Pattern()
1622 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1626 REGEX_ASSERT(n==2); in API_Pattern()
1627 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern()
1628 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern()
1629 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern()
1635 REGEX_ASSERT(n==1); in API_Pattern()
1636 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern()
1637 REGEX_ASSERT(fields[1]=="*"); in API_Pattern()
1642 REGEX_ASSERT(n==6); in API_Pattern()
1643 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1644 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern()
1645 REGEX_ASSERT(fields[2]=="is"); in API_Pattern()
1646 REGEX_ASSERT(fields[3]=="the"); in API_Pattern()
1647 REGEX_ASSERT(fields[4]=="time"); in API_Pattern()
1648 REGEX_ASSERT(fields[5]==""); in API_Pattern()
1652 REGEX_ASSERT(n==2); in API_Pattern()
1653 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1654 REGEX_ASSERT(fields[1]==""); in API_Pattern()
1659 REGEX_ASSERT(n==0); in API_Pattern()
1660 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern()
1671 REGEX_ASSERT(n==7); in API_Pattern()
1672 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1673 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1674 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1675 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1676 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1677 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1678 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1679 REGEX_ASSERT(status==U_ZERO_ERROR); in API_Pattern()
1683 REGEX_ASSERT(n==7); in API_Pattern()
1684 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1685 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1686 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1687 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1688 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1689 REGEX_ASSERT(fields[5]=="c"); in API_Pattern()
1690 REGEX_ASSERT(fields[6]==""); in API_Pattern()
1696 REGEX_ASSERT(n==6); in API_Pattern()
1697 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1698 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1699 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1700 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1701 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1702 REGEX_ASSERT(fields[5]==""); // All text following "<c>" field delimiter. in API_Pattern()
1703 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern()
1709 REGEX_ASSERT(n==5); 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<c>"); in API_Pattern()
1715 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1721 REGEX_ASSERT(n==5); in API_Pattern()
1722 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1723 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1724 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1725 REGEX_ASSERT(fields[3]=="b"); in API_Pattern()
1726 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern()
1727 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern()
1732 REGEX_ASSERT(n==4); in API_Pattern()
1733 REGEX_ASSERT(fields[0]==" "); in API_Pattern()
1734 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1735 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern()
1736 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern()
1744 REGEX_ASSERT(n==5); in API_Pattern()
1745 REGEX_ASSERT(fields[0]=="1"); in API_Pattern()
1746 REGEX_ASSERT(fields[1]=="-"); in API_Pattern()
1747 REGEX_ASSERT(fields[2]=="10"); in API_Pattern()
1748 REGEX_ASSERT(fields[3]==","); in API_Pattern()
1749 REGEX_ASSERT(fields[4]=="20"); in API_Pattern()
1757 REGEX_ASSERT(n==4); in API_Pattern()
1758 REGEX_ASSERT(fields[0]=="a"); in API_Pattern()
1759 REGEX_ASSERT(fields[1]=="b"); in API_Pattern()
1760 REGEX_ASSERT(fields[2]=="c"); in API_Pattern()
1761 REGEX_ASSERT(fields[3]==""); in API_Pattern()
1765 REGEX_ASSERT(n==4); in API_Pattern()
1766 REGEX_ASSERT(fields[0]=="a"); in API_Pattern()
1767 REGEX_ASSERT(fields[1]==""); in API_Pattern()
1768 REGEX_ASSERT(fields[2]==""); in API_Pattern()
1769 REGEX_ASSERT(fields[3]==""); in API_Pattern()
1777 REGEX_ASSERT(n==5); in API_Pattern()
1778 REGEX_ASSERT(fields[0]==""); in API_Pattern()
1779 REGEX_ASSERT(fields[1]=="a"); in API_Pattern()
1780 REGEX_ASSERT(fields[2]=="b"); in API_Pattern()
1781 REGEX_ASSERT(fields[3]=="c"); in API_Pattern()
1782 REGEX_ASSERT(fields[4]==""); in API_Pattern()
1790 REGEX_ASSERT(pat1->pattern() == ""); in API_Pattern()
1795 REGEX_ASSERT(pat1->pattern() == "(Hello, world)*"); in API_Pattern()
1804 REGEX_ASSERT(pat1->getDynamicClassID() == RegexPattern::getStaticClassID()); in API_Pattern()
1805 REGEX_ASSERT(pat1->getDynamicClassID() != NULL); in API_Pattern()
1808 REGEX_ASSERT(pat1->getDynamicClassID() != m->getDynamicClassID()); in API_Pattern()
1809 REGEX_ASSERT(m->getDynamicClassID() == RegexMatcher::getStaticClassID()); in API_Pattern()
1810 REGEX_ASSERT(m->getDynamicClassID() != NULL); in API_Pattern()
1866 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1870 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match_UTF8()
1875 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1877 REGEX_ASSERT(m1->lookingAt(status) == FALSE); in API_Match_UTF8()
1878 REGEX_ASSERT(utext_nativeLength(&empty) == 0); in API_Match_UTF8()
1887 REGEX_ASSERT(m1->lookingAt(status) == TRUE); in API_Match_UTF8()
1890 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1906 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1913 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match_UTF8()
1915 REGEX_ASSERT(m1->matches(3, status) == FALSE); in API_Match_UTF8()
1917 REGEX_ASSERT(m1->matches(5, status) == FALSE); in API_Match_UTF8()
1918 REGEX_ASSERT(m1->matches(4, status) == TRUE); in API_Match_UTF8()
1919 REGEX_ASSERT(m1->matches(-1, status) == FALSE); in API_Match_UTF8()
1920 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1925 REGEX_ASSERT(m1->matches(input2Len, status) == FALSE); in API_Match_UTF8()
1930 REGEX_ASSERT(m1->matches(input2Len+1, status) == FALSE); in API_Match_UTF8()
1931 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1939 REGEX_ASSERT(m.matches(input1Len, status) == TRUE); in API_Match_UTF8()
1942 REGEX_ASSERT(m.matches(0, status) == TRUE); in API_Match_UTF8()
1952 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match_UTF8()
1953 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE); in API_Match_UTF8()
1954 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE); in API_Match_UTF8()
1955 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE); in API_Match_UTF8()
1956 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE); in API_Match_UTF8()
1957 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1959 REGEX_ASSERT(m1->lookingAt(input2Len, status) == FALSE); in API_Match_UTF8()
1961 REGEX_ASSERT(m1->lookingAt(input2Len+1, status) == FALSE); in API_Match_UTF8()
1962 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Match_UTF8()
1997 REGEX_ASSERT(matcher->lookingAt(status) == TRUE); in API_Match_UTF8()
2016 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status)); in API_Match_UTF8()
2017 REGEX_ASSERT(matcher->end(0, status) == matcher->end(status)); in API_Match_UTF8()
2039 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2052 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2053 REGEX_ASSERT(utext_getNativeIndex(result) == 0); in API_Match_UTF8()
2054 REGEX_ASSERT(length == 10); in API_Match_UTF8()
2060 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2061 REGEX_ASSERT(length == 6); in API_Match_UTF8()
2067 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2068 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2069 REGEX_ASSERT(length == 6); in API_Match_UTF8()
2076 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2077 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2083 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2084 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2085 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2092 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2093 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2099 REGEX_ASSERT(result == &destText); in API_Match_UTF8()
2100 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2101 REGEX_ASSERT(length == 2); in API_Match_UTF8()
2142 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2143 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2144 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2145 REGEX_ASSERT(matcher->start(status) == 6); in API_Match_UTF8()
2146 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2147 REGEX_ASSERT(matcher->start(status) == 12); in API_Match_UTF8()
2148 REGEX_ASSERT(matcher->find() == FALSE); in API_Match_UTF8()
2149 REGEX_ASSERT(matcher->find() == FALSE); in API_Match_UTF8()
2152 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2153 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2155 REGEX_ASSERT(matcher->find(0, status)); in API_Match_UTF8()
2156 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2157 REGEX_ASSERT(matcher->find(1, status)); in API_Match_UTF8()
2158 REGEX_ASSERT(matcher->start(status) == 1); in API_Match_UTF8()
2159 REGEX_ASSERT(matcher->find(2, status)); in API_Match_UTF8()
2160 REGEX_ASSERT(matcher->start(status) == 6); in API_Match_UTF8()
2161 REGEX_ASSERT(matcher->find(12, status)); in API_Match_UTF8()
2162 REGEX_ASSERT(matcher->start(status) == 12); in API_Match_UTF8()
2163 REGEX_ASSERT(matcher->find(13, status) == FALSE); in API_Match_UTF8()
2164 REGEX_ASSERT(matcher->find(16, status) == FALSE); in API_Match_UTF8()
2165 REGEX_ASSERT(matcher->find(17, status) == FALSE); in API_Match_UTF8()
2173 REGEX_ASSERT(matcher->groupCount() == 0); in API_Match_UTF8()
2204 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2205 REGEX_ASSERT(matcher->start(status) == 0); in API_Match_UTF8()
2206 REGEX_ASSERT(matcher->start(1, status) == -1); in API_Match_UTF8()
2207 REGEX_ASSERT(matcher->start(2, status) == 1); in API_Match_UTF8()
2209 REGEX_ASSERT(matcher->find()); in API_Match_UTF8()
2210 REGEX_ASSERT(matcher->start(status) == 4); in API_Match_UTF8()
2211 REGEX_ASSERT(matcher->start(1, status) == 4); in API_Match_UTF8()
2212 REGEX_ASSERT(matcher->start(2, status) == -1); in API_Match_UTF8()
2239 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2240 REGEX_ASSERT(m.end(status) == i); in API_Match_UTF8()
2242 REGEX_ASSERT(i==5); in API_Match_UTF8()
2253 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2254 REGEX_ASSERT(m.end(status) == i); in API_Match_UTF8()
2256 REGEX_ASSERT(i==20); in API_Match_UTF8()
2275 REGEX_ASSERT(m.start(status) == i); in API_Match_UTF8()
2276 REGEX_ASSERT(m.end(status) == (i<4 ? i+1 : i)); in API_Match_UTF8()
2278 REGEX_ASSERT(i==5); in API_Match_UTF8()
2292 REGEX_ASSERT(m.find()); in API_Match_UTF8()
2293 REGEX_ASSERT(m.start(status) == 0); in API_Match_UTF8()
2294 REGEX_ASSERT(m.input() == ""); in API_Match_UTF8()
2302 REGEX_ASSERT(m->find() == FALSE); in API_Match_UTF8()
2303 REGEX_ASSERT(utext_nativeLength(m->inputText()) == 0); in API_Match_UTF8()
2322 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2323 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("This is test data")); in API_Match_UTF8()
2324 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2325 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2329 REGEX_ASSERT(m.matches(status)); in API_Match_UTF8()
2330 REGEX_ASSERT(m.start(status)==2); in API_Match_UTF8()
2331 REGEX_ASSERT(m.end(status)==4); in API_Match_UTF8()
2335 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2336 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("This is test data")); in API_Match_UTF8()
2341 REGEX_ASSERT(m.regionStart() == 0); in API_Match_UTF8()
2342 REGEX_ASSERT(m.regionEnd() == (int32_t)strlen("short")); in API_Match_UTF8()
2344 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2345 REGEX_ASSERT(&m == &m.useAnchoringBounds(FALSE)); in API_Match_UTF8()
2346 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match_UTF8()
2347 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2348 REGEX_ASSERT(m.hasAnchoringBounds() == FALSE); in API_Match_UTF8()
2350 REGEX_ASSERT(&m == &m.useAnchoringBounds(TRUE)); in API_Match_UTF8()
2351 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2352 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2353 REGEX_ASSERT(m.hasAnchoringBounds() == TRUE); in API_Match_UTF8()
2355 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2356 REGEX_ASSERT(&m == &m.useTransparentBounds(TRUE)); in API_Match_UTF8()
2357 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match_UTF8()
2358 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2359 REGEX_ASSERT(m.hasTransparentBounds() == TRUE); in API_Match_UTF8()
2361 REGEX_ASSERT(&m == &m.useTransparentBounds(FALSE)); in API_Match_UTF8()
2362 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2363 REGEX_ASSERT(&m == &m.reset()); in API_Match_UTF8()
2364 REGEX_ASSERT(m.hasTransparentBounds() == FALSE); in API_Match_UTF8()
2383 REGEX_ASSERT(m1.lookingAt(status) == TRUE); in API_Match_UTF8()
2384 REGEX_ASSERT(m1.hitEnd() == TRUE); in API_Match_UTF8()
2385 REGEX_ASSERT(m1.requireEnd() == FALSE); in API_Match_UTF8()
2392 REGEX_ASSERT(m2.lookingAt(status) == TRUE); in API_Match_UTF8()
2393 REGEX_ASSERT(m2.hitEnd() == FALSE); in API_Match_UTF8()
2394 REGEX_ASSERT(m2.requireEnd() == FALSE); in API_Match_UTF8()
2401 REGEX_ASSERT(m3.lookingAt(status) == TRUE); in API_Match_UTF8()
2402 REGEX_ASSERT(m3.hitEnd() == TRUE); in API_Match_UTF8()
2403 REGEX_ASSERT(m3.requireEnd() == TRUE); in API_Match_UTF8()
2460 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2472 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2488 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2498 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2513 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2522 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2539 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2550 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2569 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2579 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2605 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2619 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2634 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2654 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2663 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2684 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2708 REGEX_ASSERT(result == &destText); in API_Replace_UTF8()
2793 REGEX_ASSERT(pata == patb); in API_Pattern_UTF8()
2794 REGEX_ASSERT(pata == pata); in API_Pattern_UTF8()
2809 REGEX_ASSERT(*pat1 == *pat1); in API_Pattern_UTF8()
2810 REGEX_ASSERT(*pat1 != pata); in API_Pattern_UTF8()
2814 REGEX_ASSERT(patb == *pat1); in API_Pattern_UTF8()
2818 REGEX_ASSERT(patc == *pat1); in API_Pattern_UTF8()
2819 REGEX_ASSERT(patb == patc); in API_Pattern_UTF8()
2820 REGEX_ASSERT(pat1 != pat2); in API_Pattern_UTF8()
2822 REGEX_ASSERT(patb != patc); in API_Pattern_UTF8()
2823 REGEX_ASSERT(patb == *pat2); in API_Pattern_UTF8()
2827 REGEX_ASSERT(*pat1a == *pat1); in API_Pattern_UTF8()
2829 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern_UTF8()
2835 REGEX_ASSERT(*pat1b != *pat1a); in API_Pattern_UTF8()
2836 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE); in API_Pattern_UTF8()
2837 REGEX_ASSERT(pat1a->flags() == 0); in API_Pattern_UTF8()
2842 REGEX_ASSERT(*pat1c == *pat1); in API_Pattern_UTF8()
2843 REGEX_ASSERT(*pat1c != *pat2); in API_Pattern_UTF8()
2874 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern_UTF8()
2875 REGEX_ASSERT(mFromClone->group(status) == "Hello"); in API_Pattern_UTF8()
2876 REGEX_ASSERT(mFromClone->find() == TRUE); in API_Pattern_UTF8()
2877 REGEX_ASSERT(mFromClone->group(status) == "World"); in API_Pattern_UTF8()
2878 REGEX_ASSERT(mFromClone->find() == FALSE); in API_Pattern_UTF8()
2899 REGEX_ASSERT(RegexPattern::matches(&pattern, &input, pe, status) == TRUE); in API_Pattern_UTF8()
2904 REGEX_ASSERT(RegexPattern::matches("abc", "random input", pe, status) == FALSE); in API_Pattern_UTF8()
2909 REGEX_ASSERT(RegexPattern::matches(".*nput", "random input", pe, status) == TRUE); in API_Pattern_UTF8()
2913 REGEX_ASSERT(RegexPattern::matches("random input", "random input", pe, status) == TRUE); in API_Pattern_UTF8()
2918 REGEX_ASSERT(RegexPattern::matches(".*u", "random input", pe, status) == FALSE); in API_Pattern_UTF8()
2924 REGEX_ASSERT(RegexPattern::matches("abc", "abc", pe, status) == FALSE); in API_Pattern_UTF8()
2925 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in API_Pattern_UTF8()
2945 REGEX_ASSERT(n==4); in API_Pattern_UTF8()
2946 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2947 REGEX_ASSERT(fields[1]=="is"); in API_Pattern_UTF8()
2948 REGEX_ASSERT(fields[2]=="the"); in API_Pattern_UTF8()
2949 REGEX_ASSERT(fields[3]=="time"); in API_Pattern_UTF8()
2950 REGEX_ASSERT(fields[4]==""); in API_Pattern_UTF8()
2954 REGEX_ASSERT(n==2); in API_Pattern_UTF8()
2955 REGEX_ASSERT(fields[0]=="Now"); in API_Pattern_UTF8()
2956 REGEX_ASSERT(fields[1]=="is the time"); in API_Pattern_UTF8()
2957 REGEX_ASSERT(fields[2]=="the"); // left over from previous test in API_Pattern_UTF8()
2963 REGEX_ASSERT(n==1); in API_Pattern_UTF8()
2964 REGEX_ASSERT(fields[0]=="Now is the time"); in API_Pattern_UTF8()
2965 REGEX_ASSERT(fields[1]=="*"); in API_Pattern_UTF8()
2970 REGEX_ASSERT(n==6); in API_Pattern_UTF8()
2971 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2972 REGEX_ASSERT(fields[1]=="Now"); in API_Pattern_UTF8()
2973 REGEX_ASSERT(fields[2]=="is"); in API_Pattern_UTF8()
2974 REGEX_ASSERT(fields[3]=="the"); in API_Pattern_UTF8()
2975 REGEX_ASSERT(fields[4]=="time"); in API_Pattern_UTF8()
2976 REGEX_ASSERT(fields[5]==""); in API_Pattern_UTF8()
2977 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
2982 REGEX_ASSERT(n==2); in API_Pattern_UTF8()
2983 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
2984 REGEX_ASSERT(fields[1]==""); in API_Pattern_UTF8()
2985 REGEX_ASSERT(fields[2]=="*"); in API_Pattern_UTF8()
2990 REGEX_ASSERT(n==0); in API_Pattern_UTF8()
2991 REGEX_ASSERT(fields[0]=="foo"); in API_Pattern_UTF8()
3004 REGEX_ASSERT(n==7); in API_Pattern_UTF8()
3005 REGEX_ASSERT(fields[0]==""); in API_Pattern_UTF8()
3006 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3007 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3008 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3009 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3010 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
3011 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
3012 REGEX_ASSERT(fields[7]=="*"); in API_Pattern_UTF8()
3013 REGEX_ASSERT(status==U_ZERO_ERROR); in API_Pattern_UTF8()
3018 REGEX_ASSERT(n==7); in API_Pattern_UTF8()
3019 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3020 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3021 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3022 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3023 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3024 REGEX_ASSERT(fields[5]=="c"); in API_Pattern_UTF8()
3025 REGEX_ASSERT(fields[6]==""); in API_Pattern_UTF8()
3026 REGEX_ASSERT(fields[7]=="*"); in API_Pattern_UTF8()
3032 REGEX_ASSERT(n==6); in API_Pattern_UTF8()
3033 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3034 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3035 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3036 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3037 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3038 REGEX_ASSERT(fields[5]==" "); in API_Pattern_UTF8()
3039 REGEX_ASSERT(fields[6]=="foo"); in API_Pattern_UTF8()
3045 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3046 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3047 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3048 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3049 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3050 REGEX_ASSERT(fields[4]=="the time<c>"); in API_Pattern_UTF8()
3051 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
3057 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3058 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3059 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3060 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3061 REGEX_ASSERT(fields[3]=="b"); in API_Pattern_UTF8()
3062 REGEX_ASSERT(fields[4]=="the time"); in API_Pattern_UTF8()
3063 REGEX_ASSERT(fields[5]=="foo"); in API_Pattern_UTF8()
3068 REGEX_ASSERT(n==4); in API_Pattern_UTF8()
3069 REGEX_ASSERT(fields[0]==" "); in API_Pattern_UTF8()
3070 REGEX_ASSERT(fields[1]=="a"); in API_Pattern_UTF8()
3071 REGEX_ASSERT(fields[2]=="Now is "); in API_Pattern_UTF8()
3072 REGEX_ASSERT(fields[3]=="the time<c>"); in API_Pattern_UTF8()
3081 REGEX_ASSERT(n==5); in API_Pattern_UTF8()
3082 REGEX_ASSERT(fields[0]=="1"); in API_Pattern_UTF8()
3083 REGEX_ASSERT(fields[1]=="-"); in API_Pattern_UTF8()
3084 REGEX_ASSERT(fields[2]=="10"); in API_Pattern_UTF8()
3085 REGEX_ASSERT(fields[3]==","); in API_Pattern_UTF8()
3086 REGEX_ASSERT(fields[4]=="20"); in API_Pattern_UTF8()
3103 REGEX_ASSERT(numFields == 5); in API_Pattern_UTF8()
3109 REGEX_ASSERT(splits[5] == NULL); in API_Pattern_UTF8()
3125 REGEX_ASSERT(pat1->pattern() == ""); in API_Pattern_UTF8()
3836 REGEX_ASSERT(status == U_REGEX_UNIMPLEMENTED); in Errors()
4787 REGEX_ASSERT(result == FALSE); in Bug6149()
4833 REGEX_ASSERT(returnedFn == NULL); in Callbacks()
4834 REGEX_ASSERT(returnedContext == NULL); in Callbacks()
4849 REGEX_ASSERT(returnedFn == testCallBackFn); in Callbacks()
4850 REGEX_ASSERT(returnedContext == &cbInfo); in Callbacks()
4857 REGEX_ASSERT(matcher.matches(status)); in Callbacks()
4859 REGEX_ASSERT(cbInfo.numCalls == 0); in Callbacks()
4867 REGEX_ASSERT(matcher.matches(status)==FALSE); in Callbacks()
4869 REGEX_ASSERT(cbInfo.numCalls > 0); in Callbacks()
4876 REGEX_ASSERT(matcher.matches(status)==FALSE); in Callbacks()
4877 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in Callbacks()
4878 REGEX_ASSERT(cbInfo.numCalls == 4); in Callbacks()
4885 REGEX_ASSERT(matcher.find(status)==FALSE); in Callbacks()
4886 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in Callbacks()
4887 REGEX_ASSERT(cbInfo.numCalls == 4); in Callbacks()
4937 REGEX_ASSERT(returnedFn == NULL); in FindProgressCallbacks()
4938 REGEX_ASSERT(returnedContext == NULL); in FindProgressCallbacks()
4953 REGEX_ASSERT(returnedFn == testProgressCallBackFn); in FindProgressCallbacks()
4954 REGEX_ASSERT(returnedContext == &cbInfo); in FindProgressCallbacks()
4964 REGEX_ASSERT(matcher.find(0, status)); in FindProgressCallbacks()
4966 REGEX_ASSERT(cbInfo.numCalls == 0); in FindProgressCallbacks()
4974 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4976 REGEX_ASSERT(cbInfo.numCalls > 0 && cbInfo.numCalls < 25); in FindProgressCallbacks()
4983 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4984 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in FindProgressCallbacks()
4985 REGEX_ASSERT(cbInfo.numCalls == s1.length() - 5); in FindProgressCallbacks()
4992 REGEX_ASSERT(matcher.find(0, status)==FALSE); in FindProgressCallbacks()
4993 REGEX_ASSERT(status == U_REGEX_STOPPED_BY_CALLER); in FindProgressCallbacks()
4997 REGEX_ASSERT(matcher.find(cbInfo.lastIndex, status)); in FindProgressCallbacks()
5044 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5047 REGEX_ASSERT(testUTextEqual(resultText, &text1)); in PreAllocatedUTextCAPI()
5051 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5054 REGEX_ASSERT(testUTextEqual(resultText, &text1)); in PreAllocatedUTextCAPI()
5060 REGEX_ASSERT(resultText == &bufferText); in PreAllocatedUTextCAPI()
5063 REGEX_ASSERT(testUTextEqual(resultText, &text2)); in PreAllocatedUTextCAPI()
5089 REGEX_ASSERT(result==TRUE); in PreAllocatedUTextCAPI()
5095 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5096 REGEX_ASSERT(utext_getNativeIndex(actual) == 6); in PreAllocatedUTextCAPI()
5097 REGEX_ASSERT(length == 16); in PreAllocatedUTextCAPI()
5098 REGEX_ASSERT(utext_nativeLength(actual) == 47); in PreAllocatedUTextCAPI()
5104 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5105 REGEX_ASSERT(utext_getNativeIndex(actual) == 9); // position of " interior " in PreAllocatedUTextCAPI()
5106 REGEX_ASSERT(length == 10); in PreAllocatedUTextCAPI()
5107 REGEX_ASSERT(utext_nativeLength(actual) == 47); in PreAllocatedUTextCAPI()
5112 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in PreAllocatedUTextCAPI()
5113 REGEX_ASSERT(actual == &bufferText); in PreAllocatedUTextCAPI()
5144 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5152 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5161 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5191 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5199 REGEX_ASSERT(result == &bufferText); in PreAllocatedUTextCAPI()
5229 REGEX_ASSERT(5 == group); in NamedCapture()
5232 REGEX_ASSERT(3 == group); in NamedCapture()
5237 REGEX_ASSERT(6 == group); in NamedCapture()
5247 REGEX_ASSERT(*copiedPat == *pat); in NamedCapture()
5252 REGEX_ASSERT(5 == group); in NamedCapture()
5255 REGEX_ASSERT(3 == group); in NamedCapture()
5266 REGEX_ASSERT(UnicodeString("Substitution of 'quotes' for 'double brackets'") == replacedText); in NamedCapture()
5277 REGEX_ASSERT(UnicodeString("a<bcmxy>z") == replacedText); in NamedCapture()
5282 REGEX_ASSERT(UnicodeString("a<m>z") == replacedText); in NamedCapture()
5287 REGEX_ASSERT(UnicodeString("a<m>z") == replacedText); in NamedCapture()
5292 REGEX_ASSERT(UnicodeString("a<x>z") == replacedText); in NamedCapture()
5297 REGEX_ASSERT(UnicodeString("a<y>z") == replacedText); in NamedCapture()
5301 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in NamedCapture()
5306 REGEX_ASSERT(UnicodeString("a<bcmxy4>z") == replacedText); in NamedCapture()
5311 REGEX_ASSERT(UnicodeString("a<m6>z") == replacedText); // This is group 1. in NamedCapture()
5316 REGEX_ASSERT(UnicodeString("a<yxmm>z") == replacedText); in NamedCapture()
5321 REGEX_ASSERT(UnicodeString("ayxmmz") == replacedText); in NamedCapture()
5325 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5329 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5333 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5337 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5360 REGEX_ASSERT(UnicodeString("a<bcmxy>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5366 REGEX_ASSERT(UnicodeString("a<m>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5372 REGEX_ASSERT(UnicodeString("a<m>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5378 REGEX_ASSERT(UnicodeString("a<x>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5384 REGEX_ASSERT(UnicodeString("a<y>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5389 REGEX_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in NamedCapture()
5395 REGEX_ASSERT(UnicodeString("a<bcmxy4>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5401 REGEX_ASSERT(UnicodeString("a<m6>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5407 REGEX_ASSERT(UnicodeString("a<yxmm>z") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5413 REGEX_ASSERT(UnicodeString("ayxmmz") == UnicodeString(resultBuf, resultLength)); in NamedCapture()
5418 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5423 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5428 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5433 REGEX_ASSERT(status == U_REGEX_INVALID_CAPTURE_GROUP_NAME); in NamedCapture()
5467 REGEX_ASSERT(nn == groupNum); in NamedCaptureLimits()
5481 REGEX_ASSERT(status == U_REGEX_PATTERN_TOO_BIG); in NamedCaptureLimits()
5506 REGEX_ASSERT(REMatcher->find()); in Bug7651()
5507 REGEX_ASSERT(REMatcher->start(status) == 0); in Bug7651()
5516 REGEX_ASSERT(REMatcher->find()); in Bug7651()
5517 REGEX_ASSERT(REMatcher->start(status) == 0); in Bug7651()
5529 REGEX_ASSERT(m->lookingAt(status)); in Bug7740()
5533 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in Bug7740()
5534 REGEX_ASSERT(s == ""); in Bug7740()
5552 REGEX_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR); in Bug8479()
5568 REGEX_ASSERT(numFields == 8); in Bug7029()
5596 REGEX_ASSERT(cf.length() >= 2); in Bug9283()
5634 REGEX_ASSERT(status == U_REGEX_INVALID_STATE); in Bug10459()
5635 REGEX_ASSERT(len == 0); in Bug10459()
5788 REGEX_ASSERT(uregex_lookingAt(re, 0, &status)); in TestBug11480()
5791 REGEX_ASSERT(length == 0); in TestBug11480()
5792 REGEX_ASSERT(buf[0] == 13); in TestBug11480()
5793 REGEX_ASSERT(buf[1] == 0); in TestBug11480()
5794 REGEX_ASSERT(buf[2] == 13); in TestBug11480()
5803 REGEX_ASSERT(matcher.lookingAt(0, status)); in TestBug11480()
5810 REGEX_ASSERT(groupLen == 1); in TestBug11480()
5811 REGEX_ASSERT(utext_getNativeIndex(&group) == 0); in TestBug11480()
5816 REGEX_ASSERT(groupLen == 0); in TestBug11480()
5817 REGEX_ASSERT(matcher.start(2, status) == -1); in TestBug11480()
5830 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()
5839 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()
5850 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()
5855 REGEX_ASSERT(status == U_REGEX_TIME_OUT); in TestBug12884()