Lines Matching refs:pattern
140 dataerrln((UnicodeString)"FAIL: bad pattern " + OTHER_TOPATTERN_TESTS[j] + " - " + UnicodeString(u_errorName(ec)));
163 // Test pattern behavior of multicharacter strings.
204 if (U_FAILURE(ec)) errln("FAIL: pattern parse error");
232 // What we want to make sure of is that a pattern generated
327 // UCharCategory values; replaced with pattern constructors
890 // Pattern, Chars IN, Chars NOT in
1371 // Test the pattern API
1393 const char pattern[] =
1398 // pre-unescape the pattern. Since U+200E is Pattern_White_Space,
1402 UnicodeString pat(pattern, -1, US_INV);
1406 // Pattern is only good for pass 1
1667 // Input pattern and expected output pattern
1712 logln((UnicodeString)"Test pattern " + i + " :" + UnicodeString(DATA[i], -1, US_INV));
1908 * That the iterator works, and that we can create a pattern and
2035 dataerrln((UnicodeString)"FAIL: pattern \"" +
2090 const UnicodeString& pattern,
2093 set.applyPattern(pattern, status);
2095 errln(UnicodeString("FAIL: applyPattern(\"") + pattern +
2100 errln(UnicodeString("FAIL: applyPattern(\"") + pattern +
2105 logln(UnicodeString("Ok: applyPattern(\"") + pattern +
2117 errln(UnicodeString("FAIL: applyPattern(\""+ pattern + "\").toPattern() => " + temppattern + " => invalid pattern"));
2121 errln(UnicodeString("FAIL: applyPattern(\""+ pattern + "\").toPattern() => " + temppattern + " => pairs \""+ escape(getPairs(*tempset)) + "\", expected pairs \"" +
2124 logln(UnicodeString("Ok: applyPattern(\""+ pattern + "\").toPattern() => " + temppattern + " => pairs \"" + escape(getPairs(*tempset)) + "\""));
3508 // "[...]" is a UnicodeSet pattern.
3681 // Create new test sets from this pattern.
3799 static const char *pattern="[x{xy}{xya}{axy}{ax}]";
3810 UnicodeString pattern16=UnicodeString(pattern, -1, US_INV);
3813 errln("FAIL: Unable to create UnicodeSet(%s) - %s", pattern, u_errorName(errorCode));
3820 errln("FAIL: UnicodeSet(%s).containsAll(%s) should be FALSE", pattern, string);
3826 errln("FAIL: UnicodeSet(%s).containsAll(%s[:-4]) should be TRUE", pattern, string);
3840 errln("FAIL: UnicodeSet(%s).span(while not) returns the wrong value", pattern);
3843 pattern="[a{ab}{abc}{cd}]";
3844 pattern16=UnicodeString(pattern, -1, US_INV);
3847 errln("FAIL: Unable to create UnicodeSet(%s) - %s", pattern, u_errorName(errorCode));
3857 errln("FAIL: UnicodeSet(%s).span(while longest match) returns the wrong value", pattern);
3860 pattern="[d{cd}{bcd}{ab}]";
3861 pattern16=UnicodeString(pattern, -1, US_INV);
3864 errln("FAIL: Unable to create UnicodeSet(%s) - %s", pattern, u_errorName(errorCode));
3874 errln("FAIL: UnicodeSet(%s).spanBack(while longest match) returns the wrong value", pattern);
3924 errln("FAIL: surrogates to/from pattern - %s", u_errorName(errorCode));
3926 checkEqual(surrogates, s2, "surrogates to/from pattern");