Home | History | Annotate | Download | only in intltest

Lines Matching refs:pattern

281             infoln("Pattern: %s", str);
307 errln("Pattern: %s", str);
323 errln("Pattern: %s", str);
348 errln("Pattern: %s", str);
374 u_unescape(search->pattern, temp, 128);
375 UnicodeString pattern;
376 pattern.setTo(temp);
384 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
433 u_unescape(search->pattern, temp, 128);
434 UnicodeString pattern;
435 pattern.setTo(temp);
444 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
486 u_unescape(search->pattern, temp, 128);
487 UnicodeString pattern;
488 pattern.setTo(temp);
496 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
521 UnicodeString pattern;
527 result = new StringSearch(pattern, text, NULL, NULL, status);
535 result = new StringSearch(pattern, chariter, NULL, NULL, status);
543 result = new StringSearch(pattern, text, NULL, NULL, status);
545 errln("Error: Empty pattern should produce an error");
551 result = new StringSearch(pattern, chariter, NULL, NULL, status);
553 errln("Error: Empty pattern should produce an error");
558 pattern.append(temp);
560 result = new StringSearch(pattern, text, NULL, NULL, status);
568 result = new StringSearch(pattern, chariter, NULL, NULL, status);
576 result = new StringSearch(pattern, text, NULL, NULL, status);
584 result = new StringSearch(pattern, chariter, NULL, NULL, status);
591 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
598 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
605 result = new StringSearch(pattern, text, Locale::getEnglish(), NULL, status);
612 result = new StringSearch(pattern, chariter, Locale::getEnglish(), NULL, status);
619 result = new StringSearch(pattern, text, m_en_us_, breakiter, status);
626 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
636 UnicodeString pattern;
642 /* simple test on the pattern ce construction */
643 pattern.append(temp);
644 pattern.append(temp);
648 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
679 /* testing if an extremely large pattern will fail the initialization */
681 pattern.append(temp);
683 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
771 u_unescape(BREAKITERATOREXACT[0].pattern, temp, 128);
772 UnicodeString pattern;
773 pattern.setTo(temp, u_strlen(temp));
776 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
811 u_unescape(search->pattern, temp, 128);
812 pattern.setTo(temp, u_strlen(temp));
818 strsrch = new StringSearch(pattern, text, collator, breaker, status);
904 u_unescape(search->pattern, temp, 128);
905 UnicodeString pattern;
906 pattern.setTo(temp, u_strlen(temp));
910 StringSearch *strsrch = new StringSearch(pattern, text,
948 u_unescape(COLLATOR[0].pattern, temp, 128);
949 UnicodeString pattern;
950 pattern.setTo(temp, u_strlen(temp));
953 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1020 u_unescape(PATTERN[0].text, temp, 512);
1023 u_unescape(PATTERN[0].pattern, temp, 512);
1024 UnicodeString pattern;
1025 pattern.setTo(temp, u_strlen(temp));
1027 m_en_us_->setStrength(getECollationStrength(PATTERN[0].strength));
1029 pattern, text, m_en_us_, NULL,
1040 if (strsrch->getPattern() != pattern) {
1041 errln("Error setting pattern");
1043 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1051 u_unescape(PATTERN[1].pattern, temp, 512);
1052 pattern.setTo(temp, u_strlen(temp));
1053 strsrch->setPattern(pattern, status);
1054 if (pattern != strsrch->getPattern()) {
1055 errln("Error setting pattern");
1064 errln("Error setting pattern %s", u_errorName(status));
1066 if (!assertEqualWithStringSearch(strsrch, &PATTERN[1])) {
1074 u_unescape(PATTERN[0].pattern, temp, 512);
1075 pattern.setTo(temp, u_strlen(temp));
1076 strsrch->setPattern(pattern, status);
1077 if (pattern != strsrch->getPattern()) {
1078 errln("Error setting pattern");
1087 errln("Error setting pattern %s", u_errorName(status));
1089 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1096 /* enormous pattern size to see if this crashes */
1101 pattern.setTo(temp, 511);
1102 strsrch->setPattern(pattern, status);
1104 errln("Error setting pattern with size 512, %s", u_errorName(status));
1118 u_unescape(TEXT[0].pattern, temp, 128);
1119 UnicodeString pattern;
1120 pattern.setTo(temp, u_strlen(temp));
1123 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1163 errln("Error setting pattern %s", u_errorName(status));
1186 UnicodeString pattern("1234567890123456");
1188 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1207 u_unescape(search.pattern, temp, 128);
1208 pattern.setTo(temp, u_strlen(temp));
1210 strsrch->setPattern(pattern, status);
1225 errln("Pattern: %s", str);
1248 errln("Pattern: %s", str);
1263 UnicodeString pattern("pattern");
1265 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1329 u_unescape(search.pattern, temp, 128);
1330 UnicodeString pattern;
1331 pattern.setTo(temp, u_strlen(temp));
1334 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1355 errln("Pattern: %s", str);
1393 u_unescape(search.pattern, temp, 128);
1394 UnicodeString pattern;
1395 pattern.setTo(temp, u_strlen(temp));
1397 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1456 UnicodeString pattern("s");
1457 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1514 UnicodeString pattern("pattern");
1515 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1525 u_unescape(CONTRACTION[count].pattern, temp, 128);
1526 pattern.setTo(temp, u_strlen(temp));
1528 strsrch->setPattern(pattern, status);
1553 UnicodeString pattern("pattern");
1555 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1566 u_unescape(IGNORABLE[count].pattern, temp, 128);
1567 pattern.setTo(temp, u_strlen(temp));
1569 strsrch->setPattern(pattern, status);
1587 UnicodeString pattern("pattern");
1596 strsrch = new StringSearch(pattern, text, coll, getBreakIterator(search->breaker), status);
1603 u_unescape(search->pattern, temp, 128);
1604 pattern.setTo(temp, u_strlen(temp));
1606 strsrch->setPattern(pattern, status);
1667 u_unescape(search->pattern, temp, 128);
1668 UnicodeString pattern;
1669 pattern.setTo(temp, u_strlen(temp));
1674 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1773 u_unescape(search->pattern, temp, 128);
1774 UnicodeString pattern;
1775 pattern.setTo(temp, u_strlen(temp));
1777 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1813 u_unescape(COLLATORCANONICAL[0].pattern, temp, 128);
1814 UnicodeString pattern;
1815 pattern.setTo(temp, u_strlen(temp));
1818 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1876 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
1877 UnicodeString pattern;
1878 pattern.setTo(temp, u_strlen(temp));
1884 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1891 if (pattern != strsrch->getPattern()) {
1892 errln("Error setting pattern");
1898 u_unescape(PATTERNCANONICAL[1].pattern, temp, 128);
1899 pattern.setTo(temp, u_strlen(temp));
1900 strsrch->setPattern(pattern, status);
1901 if (pattern != strsrch->getPattern()) {
1902 errln("Error setting pattern");
1908 errln("Error setting pattern %s", u_errorName(status));
1914 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
1915 pattern.setTo(temp, u_strlen(temp));
1916 strsrch->setPattern(pattern, status);
1917 if (pattern != strsrch->getPattern()) {
1918 errln("Error setting pattern");
1924 errln("Error setting pattern %s", u_errorName(status));
1942 u_unescape(TEXTCANONICAL[0].pattern, temp, 128);
1943 UnicodeString pattern;
1944 pattern.setTo(temp, u_strlen(temp));
1947 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1984 errln("Error setting pattern %s", u_errorName(status));
2012 UnicodeString pattern("pattern");
2013 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2040 u_unescape(search.pattern, temp, 128);
2041 pattern.setTo(temp, u_strlen(temp));
2046 strsrch->setPattern(pattern, status);
2058 errln("Pattern: %s", str);
2081 errln("Pattern: %s", str);
2119 UnicodeString pattern("pattern");
2120 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
2131 u_unescape(CONTRACTIONCANONICAL[count].pattern, temp, 128);
2132 pattern.setTo(temp, u_strlen(temp));
2134 strsrch->setPattern(pattern, status);
2153 UnicodeString pattern("pattern");
2154 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2169 const UnicodeString &pattern);
2220 const UnicodeString &pattern) : SearchIterator()
2223 m_pattern_ = pattern;
2226 m_pattern_ = pattern;
2311 UnicodeString pattern("abc");
2312 TestSearch search(text, NULL, pattern);