Home | History | Annotate | Download | only in intltest

Lines Matching refs:pattern

286             errln("Pattern: %s", str);
312 errln("Pattern: %s", str);
329 errln("Pattern: %s", str);
355 errln("Pattern: %s", str);
378 errln("Pattern: %s", str);
395 errln("Pattern: %s\n", str);
428 errln("Pattern: %s\n", str);
447 errln("Pattern: %s\n", str);
480 u_unescape(search->pattern, temp, 128);
481 UnicodeString pattern;
482 pattern.setTo(temp);
490 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
539 u_unescape(search->pattern, temp, 128);
540 UnicodeString pattern;
541 pattern.setTo(temp);
550 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
592 u_unescape(search->pattern, temp, 128);
593 UnicodeString pattern;
594 pattern.setTo(temp);
602 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
627 UnicodeString pattern;
633 result = new StringSearch(pattern, text, NULL, NULL, status);
641 result = new StringSearch(pattern, chariter, NULL, NULL, status);
649 result = new StringSearch(pattern, text, NULL, NULL, status);
651 errln("Error: Empty pattern should produce an error");
657 result = new StringSearch(pattern, chariter, NULL, NULL, status);
659 errln("Error: Empty pattern should produce an error");
664 pattern.append(temp);
666 result = new StringSearch(pattern, text, NULL, NULL, status);
674 result = new StringSearch(pattern, chariter, NULL, NULL, status);
682 result = new StringSearch(pattern, text, NULL, NULL, status);
690 result = new StringSearch(pattern, chariter, NULL, NULL, status);
697 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
704 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
711 result = new StringSearch(pattern, text, Locale::getEnglish(), NULL, status);
718 result = new StringSearch(pattern, chariter, Locale::getEnglish(), NULL, status);
725 result = new StringSearch(pattern, text, m_en_us_, breakiter, status);
732 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
742 UnicodeString pattern;
748 /* simple test on the pattern ce construction */
749 pattern.append(temp);
750 pattern.append(temp);
754 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
785 /* testing if an extremely large pattern will fail the initialization */
787 pattern.append(temp);
789 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
877 u_unescape(BREAKITERATOREXACT[0].pattern, temp, 128);
878 UnicodeString pattern;
879 pattern.setTo(temp, u_strlen(temp));
882 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
917 u_unescape(search->pattern, temp, 128);
918 pattern.setTo(temp, u_strlen(temp));
924 strsrch = new StringSearch(pattern, text, collator, breaker, status);
1010 u_unescape(search->pattern, temp, 128);
1011 UnicodeString pattern;
1012 pattern.setTo(temp, u_strlen(temp));
1016 StringSearch *strsrch = new StringSearch(pattern, text,
1054 u_unescape(COLLATOR[0].pattern, temp, 128);
1055 UnicodeString pattern;
1056 pattern.setTo(temp, u_strlen(temp));
1059 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1116 u_unescape(PATTERN[0].text, temp, 512);
1119 u_unescape(PATTERN[0].pattern, temp, 512);
1120 UnicodeString pattern;
1121 pattern.setTo(temp, u_strlen(temp));
1123 m_en_us_->setStrength(getECollationStrength(PATTERN[0].strength));
1125 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1136 if (strsrch->getPattern() != pattern) {
1137 errln("Error setting pattern");
1139 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1147 u_unescape(PATTERN[1].pattern, temp, 512);
1148 pattern.setTo(temp, u_strlen(temp));
1149 strsrch->setPattern(pattern, status);
1150 if (pattern != strsrch->getPattern()) {
1151 errln("Error setting pattern");
1160 errln("Error setting pattern %s", u_errorName(status));
1162 if (!assertEqualWithStringSearch(strsrch, &PATTERN[1])) {
1170 u_unescape(PATTERN[0].pattern, temp, 512);
1171 pattern.setTo(temp, u_strlen(temp));
1172 strsrch->setPattern(pattern, status);
1173 if (pattern != strsrch->getPattern()) {
1174 errln("Error setting pattern");
1183 errln("Error setting pattern %s", u_errorName(status));
1185 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1192 /* enormous pattern size to see if this crashes */
1197 pattern.setTo(temp, 511);
1198 strsrch->setPattern(pattern, status);
1200 errln("Error setting pattern with size 512, %s", u_errorName(status));
1214 u_unescape(TEXT[0].pattern, temp, 128);
1215 UnicodeString pattern;
1216 pattern.setTo(temp, u_strlen(temp));
1219 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1259 errln("Error setting pattern %s", u_errorName(status));
1282 UnicodeString pattern("1234567890123456");
1284 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1303 u_unescape(search.pattern, temp, 128);
1304 pattern.setTo(temp, u_strlen(temp));
1306 strsrch->setPattern(pattern, status);
1321 errln("Pattern: %s", str);
1344 errln("Pattern: %s", str);
1359 UnicodeString pattern("pattern");
1361 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1425 u_unescape(search.pattern, temp, 128);
1426 UnicodeString pattern;
1427 pattern.setTo(temp, u_strlen(temp));
1430 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1451 errln("Pattern: %s", str);
1489 u_unescape(search.pattern, temp, 128);
1490 UnicodeString pattern;
1491 pattern.setTo(temp, u_strlen(temp));
1493 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1552 UnicodeString pattern("s");
1553 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1610 UnicodeString pattern("pattern");
1611 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1621 u_unescape(CONTRACTION[count].pattern, temp, 128);
1622 pattern.setTo(temp, u_strlen(temp));
1624 strsrch->setPattern(pattern, status);
1649 UnicodeString pattern("pattern");
1651 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1662 u_unescape(IGNORABLE[count].pattern, temp, 128);
1663 pattern.setTo(temp, u_strlen(temp));
1665 strsrch->setPattern(pattern, status);
1683 UnicodeString pattern("pattern");
1692 strsrch = new StringSearch(pattern, text, coll, getBreakIterator(search->breaker), status);
1699 u_unescape(search->pattern, temp, 128);
1700 pattern.setTo(temp, u_strlen(temp));
1702 strsrch->setPattern(pattern, status);
1763 u_unescape(search->pattern, temp, 128);
1764 UnicodeString pattern;
1765 pattern.setTo(temp, u_strlen(temp));
1770 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1869 u_unescape(search->pattern, temp, 128);
1870 UnicodeString pattern;
1871 pattern.setTo(temp, u_strlen(temp));
1873 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1909 u_unescape(COLLATORCANONICAL[0].pattern, temp, 128);
1910 UnicodeString pattern;
1911 pattern.setTo(temp, u_strlen(temp));
1914 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1972 pattern, temp, 128);
1973 UnicodeString pattern;
1974 pattern.setTo(temp, u_strlen(temp));
1980 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1987 if (pattern != strsrch->getPattern()) {
1988 errln("Error setting pattern");
1994 u_unescape(PATTERNCANONICAL[1].pattern, temp, 128);
1995 pattern.setTo(temp, u_strlen(temp));
1996 strsrch->setPattern(pattern, status);
1997 if (pattern != strsrch->getPattern()) {
1998 errln("Error setting pattern");
2004 errln("Error setting pattern %s", u_errorName(status));
2010 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
2011 pattern.setTo(temp, u_strlen(temp));
2012 strsrch->setPattern(pattern, status);
2013 if (pattern != strsrch->getPattern()) {
2014 errln("Error setting pattern");
2020 errln("Error setting pattern %s", u_errorName(status));
2038 u_unescape(TEXTCANONICAL[0].pattern, temp, 128);
2039 UnicodeString pattern;
2040 pattern.setTo(temp, u_strlen(temp));
2043 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2080 errln("Error setting pattern %s", u_errorName(status));
2108 UnicodeString pattern("pattern");
2109 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2136 u_unescape(search.pattern, temp, 128);
2137 pattern.setTo(temp, u_strlen(temp));
2142 strsrch->setPattern(pattern, status);
2154 errln("Pattern: %s", str);
2177 errln("Pattern: %s", str);
2215 UnicodeString pattern("pattern");
2216 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
2227 u_unescape(CONTRACTIONCANONICAL[count].pattern, temp, 128);
2228 pattern.setTo(temp, u_strlen(temp));
2230 strsrch->setPattern(pattern, status);
2249 UnicodeString pattern("pattern");
2250 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2265 const UnicodeString &pattern);
2316 const UnicodeString &pattern) : SearchIterator()
2319 m_pattern_ = pattern;
2322 m_pattern_ = pattern;
2407 UnicodeString pattern("abc");
2408 TestSearch search(text, NULL, pattern);