Lines Matching defs:pattern
271 infoln("Pattern: %s", str);
296 errln("Pattern: %s", str);
312 errln("Pattern: %s", str);
337 errln("Pattern: %s", str);
362 u_unescape(search->pattern, temp, 128);
363 UnicodeString pattern;
364 pattern.setTo(temp);
372 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
421 u_unescape(search->pattern, temp, 128);
422 UnicodeString pattern;
423 pattern.setTo(temp);
432 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
474 u_unescape(search->pattern, temp, 128);
475 UnicodeString pattern;
476 pattern.setTo(temp);
484 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
509 UnicodeString pattern;
515 result = new StringSearch(pattern, text, NULL, NULL, status);
523 result = new StringSearch(pattern, chariter, NULL, NULL, status);
531 result = new StringSearch(pattern, text, NULL, NULL, status);
533 errln("Error: Empty pattern should produce an error");
539 result = new StringSearch(pattern, chariter, NULL, NULL, status);
541 errln("Error: Empty pattern should produce an error");
546 pattern.append(temp);
548 result = new StringSearch(pattern, text, NULL, NULL, status);
556 result = new StringSearch(pattern, chariter, NULL, NULL, status);
564 result = new StringSearch(pattern, text, NULL, NULL, status);
572 result = new StringSearch(pattern, chariter, NULL, NULL, status);
579 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
586 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
593 result = new StringSearch(pattern, text, Locale::getEnglish(), NULL, status);
600 result = new StringSearch(pattern, chariter, Locale::getEnglish(), NULL, status);
607 result = new StringSearch(pattern, text, m_en_us_, breakiter, status);
614 result = new StringSearch(pattern, chariter, m_en_us_, NULL, status);
624 UnicodeString pattern;
630 /* simple test on the pattern ce construction */
631 pattern.append(temp);
632 pattern.append(temp);
636 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
667 /* testing if an extremely large pattern will fail the initialization */
669 pattern.append(temp);
671 result = new StringSearch(pattern, text, m_en_us_, NULL, status);
759 u_unescape(BREAKITERATOREXACT[0].pattern, temp, 128);
760 UnicodeString pattern;
761 pattern.setTo(temp, u_strlen(temp));
764 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
799 u_unescape(search->pattern, temp, 128);
800 pattern.setTo(temp, u_strlen(temp));
806 strsrch = new StringSearch(pattern, text, collator, breaker, status);
892 u_unescape(search->pattern, temp, 128);
893 UnicodeString pattern;
894 pattern.setTo(temp, u_strlen(temp));
898 StringSearch *strsrch = new StringSearch(pattern, text,
936 u_unescape(COLLATOR[0].pattern, temp, 128);
937 UnicodeString pattern;
938 pattern.setTo(temp, u_strlen(temp));
941 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1008 u_unescape(PATTERN[0].text, temp, 512);
1011 u_unescape(PATTERN[0].pattern, temp, 512);
1012 UnicodeString pattern;
1013 pattern.setTo(temp, u_strlen(temp));
1015 m_en_us_->setStrength(getECollationStrength(PATTERN[0].strength));
1017 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1028 if (strsrch->getPattern() != pattern) {
1029 errln("Error setting pattern");
1031 PATTERN[0])) {
1039 u_unescape(PATTERN[1].pattern, temp, 512);
1040 pattern.setTo(temp, u_strlen(temp));
1041 strsrch->setPattern(pattern, status);
1042 if (pattern != strsrch->getPattern()) {
1043 errln("Error setting pattern");
1052 errln("Error setting pattern %s", u_errorName(status));
1054 if (!assertEqualWithStringSearch(strsrch, &PATTERN[1])) {
1062 u_unescape(PATTERN[0].pattern, temp, 512);
1063 pattern.setTo(temp, u_strlen(temp));
1064 strsrch->setPattern(pattern, status);
1065 if (pattern != strsrch->getPattern()) {
1066 errln("Error setting pattern");
1075 errln("Error setting pattern %s", u_errorName(status));
1077 if (!assertEqualWithStringSearch(strsrch, &PATTERN[0])) {
1084 /* enormous pattern size to see if this crashes */
1089 pattern.setTo(temp, 511);
1090 strsrch->setPattern(pattern, status);
1092 errln("Error setting pattern with size 512, %s", u_errorName(status));
1106 u_unescape(TEXT[0].pattern, temp, 128);
1107 UnicodeString pattern;
1108 pattern.setTo(temp, u_strlen(temp));
1111 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1151 errln("Error setting pattern %s", u_errorName(status));
1174 UnicodeString pattern("1234567890123456");
1176 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1195 u_unescape(search.pattern, temp, 128);
1196 pattern.setTo(temp, u_strlen(temp));
1198 strsrch->setPattern(pattern, status);
1213 errln("Pattern: %s", str);
1236 errln("Pattern: %s", str);
1251 UnicodeString pattern("pattern");
1253 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1317 u_unescape(search.pattern, temp, 128);
1318 UnicodeString pattern;
1319 pattern.setTo(temp, u_strlen(temp));
1322 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1343 errln("Pattern: %s", str);
1381 u_unescape(search.pattern, temp, 128);
1382 UnicodeString pattern;
1383 pattern.setTo(temp, u_strlen(temp));
1385 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1444 UnicodeString pattern("s");
1445 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1502 UnicodeString pattern("pattern");
1503 StringSearch *strsrch = new StringSearch(pattern
1513 u_unescape(CONTRACTION[count].pattern, temp, 128);
1514 pattern.setTo(temp, u_strlen(temp));
1516 strsrch->setPattern(pattern, status);
1541 UnicodeString pattern("pattern");
1543 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1554 u_unescape(IGNORABLE[count].pattern, temp, 128);
1555 pattern.setTo(temp, u_strlen(temp));
1557 strsrch->setPattern(pattern, status);
1575 UnicodeString pattern("pattern");
1584 strsrch = new StringSearch(pattern, text, coll, getBreakIterator(search->breaker), status);
1591 u_unescape(search->pattern, temp, 128);
1592 pattern.setTo(temp, u_strlen(temp));
1594 strsrch->setPattern(pattern, status);
1655 u_unescape(search->pattern, temp, 128);
1656 UnicodeString pattern;
1657 pattern.setTo(temp, u_strlen(temp));
1662 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1761 u_unescape(search->pattern, temp, 128);
1762 UnicodeString pattern;
1763 pattern.setTo(temp, u_strlen(temp));
1765 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1801 u_unescape(COLLATORCANONICAL[0].pattern, temp, 128);
1802 UnicodeString pattern;
1803 pattern.setTo(temp, u_strlen(temp));
1806 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_,
1864 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
1865 UnicodeString pattern;
1866 pattern.setTo(temp, u_strlen(temp));
1872 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1879 if (pattern != strsrch->getPattern()) {
1880 errln("Error setting pattern");
1886 u_unescape(PATTERNCANONICAL[1].pattern, temp, 128);
1887 pattern.setTo(temp, u_strlen(temp));
1888 strsrch->setPattern(pattern, status);
1889 if (pattern != strsrch->getPattern()) {
1890 errln("Error setting pattern");
1896 errln("Error setting pattern %s", u_errorName(status));
1902 u_unescape(PATTERNCANONICAL[0].pattern, temp, 128);
1903 pattern.setTo(temp, u_strlen(temp));
1904 strsrch->setPattern(pattern, status);
1905 if (pattern != strsrch->getPattern()) {
1906 errln("Error setting pattern");
1912 errln("Error setting pattern %s", u_errorName(status));
1930 u_unescape(TEXTCANONICAL[0].pattern, temp, 128);
1931 UnicodeString pattern;
1932 pattern.setTo(temp, u_strlen(temp));
1935 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
1972 errln("Error setting pattern %s", u_errorName(status));
2000 pattern("pattern");
2001 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2028 u_unescape(search.pattern, temp, 128);
2029 pattern.setTo(temp, u_strlen(temp));
2034 strsrch->setPattern(pattern, status);
2046 errln("Pattern: %s", str);
2069 errln("Pattern: %s", str);
2107 UnicodeString pattern("pattern");
2108 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
2119 u_unescape(CONTRACTIONCANONICAL[count].pattern, temp, 128);
2120 pattern.setTo(temp, u_strlen(temp));
2122 strsrch->setPattern(pattern, status);
2141 UnicodeString pattern("pattern");
2142 StringSearch *strsrch = new StringSearch(pattern, text, m_en_us_, NULL,
2157 const UnicodeString &pattern);
2208 const UnicodeString &pattern) : SearchIterator()
2211 m_pattern_ = pattern;
2214 m_pattern_ = pattern;
2299 UnicodeString pattern("abc");
2300 TestSearch search(text, NULL, pattern);