Home | History | Annotate | Download | only in intltest

Lines Matching refs:pattern

283             errln("Pattern: %s", str);
309 errln("Pattern: %s", str);
326 errln("Pattern: %s", str);
352 errln("Pattern: %s", str);
375 errln("Pattern: %s", str);
392 errln("Pattern: %s\n", str);
425 errln("Pattern: %s\n", str);
444 errln("Pattern: %s\n", str);
477 u_unescape(search->pattern, temp, 128);
478 UnicodeString pattern;
479 pattern.setTo(temp);
487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
536 u_unescape(search->pattern, temp, 128);
537 UnicodeString pattern;
538 pattern.setTo(temp);
547 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
589 u_unescape(search->pattern, temp, 128);
590 UnicodeString pattern;
591 pattern.setTo(temp);
599 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
624 UnicodeString pattern;
630 result = new StringSearch(pattern, text, NULL, NULL, status);
638 result = new StringSearch(pattern, chariter, NULL, NULL, status);
646 result = new StringSearch(pattern, text, NULL, NULL, status);
648 errln("Error: Empty pattern should produce an error");
654 result = new StringSearch(pattern, chariter, NULL, NULL, status);
656 errln("Error: Empty pattern should produce an error");
661 pattern.append(temp);
663 result = new StringSearch(pattern, text, NULL, NULL, status);
671 result = new StringSearch(pattern, chariter, NULL, NULL, status);
679 result = new StringSearch(pattern, text, NULL, NULL, status);
687 result = new StringSearch(pattern, chariter, NULL, NULL, status);
694 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
701 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
708 result = new StringSearch(pattern, text, Locale::getEnglish(), NULL, status);
715 result = new StringSearch(pattern, chariter, Locale::getEnglish(), NULL, status);
722 result = new StringSearch(pattern, text, m_en_us_, breakiter, status);
729 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
739 UnicodeString pattern;
745 /* simple test on the pattern ce construction */
746 pattern.append(temp);
747 pattern.append(temp);
751 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
782 /* testing if an extremely large pattern will fail the initialization */
784 pattern.append(temp);
786 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
874 u_unescape(BREAKITERATOREXACT[0].pattern, temp, 128);
875 UnicodeString pattern;
876 pattern.setTo(temp, u_strlen(temp));
879 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
914 u_unescape(search->pattern, temp, 128);
915 pattern.setTo(temp, u_strlen(temp));
921 strsrch = new StringSearch(pattern, text, collator, breaker, status);
1007 u_unescape(search->pattern, temp, 128);
1008 pattern;
1009 pattern.setTo(temp, u_strlen(temp));
1013 StringSearch *strsrch = new StringSearch(pattern, text,
1051 u_unescape(COLLATOR[0].pattern, temp, 128);
1052 UnicodeString pattern;
1053 pattern.setTo(temp, u_strlen(temp));
1056 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1113 u_unescape(PATTERN[0].text, temp, 512);
1116 u_unescape(PATTERN[0].pattern, temp, 512);
1117 UnicodeString pattern;
1118 pattern.setTo(temp, u_strlen(temp));
1120 m_en_us_->setStrength(getECollationStrength(PATTERN[0].strength));
1122 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1133 if (strsrch->getPattern() != pattern) {
1134 errln("Error setting pattern");
1136 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1144 u_unescape(PATTERN[1].pattern, temp, 512);
1145 pattern.setTo(temp, u_strlen(temp));
1146 strsrch->setPattern(pattern, status);
1147 if (pattern != strsrch->getPattern()) {
1148 errln("Error setting pattern");
1157 errln("Error setting pattern %s", u_errorName(status));
1159 if (!assertEqualWithStringSearch(strsrch, &PATTERN[1])) {
1167 u_unescape(PATTERN[0].pattern, temp, 512);
1168 pattern.setTo(temp, u_strlen(temp));
1169 strsrch->setPattern(pattern, status);
1170 if (pattern != strsrch->getPattern()) {
1171 errln("Error setting pattern");
1180 errln("Error setting pattern %s", u_errorName(status));
1182 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1189 /* enormous pattern size to see if this crashes */
1194 pattern.setTo(temp, 511);
1195 strsrch->setPattern(pattern, status);
1197 errln("Error setting pattern with size 512, %s", u_errorName(status));
1211 u_unescape(TEXT[0].pattern, temp, 128);
1212 UnicodeString pattern;
1213 pattern.setTo(temp, u_strlen(temp));
1216 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1256 errln("Error setting pattern %s", u_errorName(status));
1279 UnicodeString pattern("1234567890123456");
1281 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1300 u_unescape(search.pattern, temp, 128);
1301 pattern.setTo(temp, u_strlen(temp));
1303 strsrch->setPattern(pattern, status);
1318 errln("Pattern: %s", str);
1341 errln("Pattern: %s", str);
1356 UnicodeString pattern("pattern");
1358 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1422 u_unescape(search.pattern, temp, 128);
1423 UnicodeString pattern;
1424 pattern.setTo(temp, u_strlen(temp));
1427 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1448 errln("Pattern: %s", str);
1486 u_unescape(search.pattern, temp, 128);
1487 UnicodeString pattern;
1488 pattern
1490 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1549 UnicodeString pattern("s");
1550 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1607 UnicodeString pattern("pattern");
1608 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1618 u_unescape(CONTRACTION[count].pattern, temp, 128);
1619 pattern.setTo(temp, u_strlen(temp));
1621 strsrch->setPattern(pattern, status);
1646 UnicodeString pattern("pattern");
1648 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1659 u_unescape(IGNORABLE[count].pattern, temp, 128);
1660 pattern.setTo(temp, u_strlen(temp));
1662 strsrch->setPattern(pattern, status);
1680 UnicodeString pattern("pattern");
1689 strsrch = new StringSearch(pattern, text, coll, getBreakIterator(search->breaker), status);
1696 u_unescape(search->pattern, temp, 128);
1697 pattern.setTo(temp, u_strlen(temp));
1699 strsrch->setPattern(pattern, status);
1760 u_unescape(search->pattern, temp, 128);
1761 UnicodeString pattern;
1762 pattern.setTo(temp, u_strlen(temp));
1767 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1866 u_unescape(search->pattern, temp, 128);
1867 UnicodeString pattern;
1868 pattern.setTo(temp, u_strlen(temp));
1870 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1906 u_unescape(COLLATORCANONICAL[0].pattern, temp, 128);
1907 UnicodeString pattern;
1908 pattern.setTo(temp, u_strlen(temp));
1911 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1969 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
1970 UnicodeString pattern;
1971 pattern.setTo(temp, u_strlen(temp));
1977 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1984 if (pattern != strsrch->getPattern()) {
1985 errln("Error setting pattern");
1991 u_unescape(PATTERNCANONICAL[1].pattern, temp, 128);
1992 pattern.setTo(temp, u_strlen(temp));
1993 strsrch->setPattern(pattern, status);
1994 if (pattern != strsrch->getPattern()) {
1995 errln("Error setting pattern");
2001 errln("Error setting pattern %s", u_errorName(status));
2007 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
2008 pattern.setTo(temp, u_strlen(temp));
2009 strsrch->setPattern(pattern, status);
2010 if (pattern != strsrch->getPattern()) {
2011 errln("Error setting pattern");
2017 errln("Error setting pattern %s", u_errorName(status));
2035 u_unescape(TEXTCANONICAL[0].pattern, temp, 128);
2036 UnicodeString pattern;
2037 pattern.setTo(temp, u_strlen(temp));
2040 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2077 errln("Error setting pattern %s", u_errorName(status));
2105 UnicodeString pattern("pattern");
2106 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2133 u_unescape(search.pattern, temp, 128);
2134 pattern.setTo(temp, u_strlen(temp));
2139 strsrch->setPattern(pattern, status);
2151 errln("Pattern: %s", str);
2174 errln("Pattern: %s", str);
2212 UnicodeString pattern("pattern");
2213 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
2224 u_unescape(CONTRACTIONCANONICAL[count].pattern, temp, 128);
2225 pattern.setTo(temp, u_strlen(temp));
2227 strsrch->setPattern(pattern, status);
2246 UnicodeString pattern("pattern");
2247 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2262 const UnicodeString &pattern);
2313 const UnicodeString &pattern) : SearchIterator()
2316 m_pattern_ = pattern;
2319 m_pattern_ = pattern;
2404 UnicodeString pattern("abc");
2405 TestSearch search(text, NULL, pattern);