Lines Matching refs:ec
117 UErrorCode ec = U_ZERO_ERROR;
130 ec = U_ZERO_ERROR;
131 UnicodeSet s(OTHER_TOPATTERN_TESTS[j], ec);
132 if (U_FAILURE(ec)) {
133 dataerrln((UnicodeString)"FAIL: bad pattern " + OTHER_TOPATTERN_TESTS[j] + " - " + UnicodeString(u_errorName(ec)));
158 ec = U_ZERO_ERROR;
159 UnicodeSet* s = new UnicodeSet("[a-z {aa} {ab}]", ec);
165 if (U_FAILURE(ec)) break;
173 s->applyPattern(UNICODE_STRING_SIMPLE("[a-z {\\{l} {r\\}}]"), ec);
174 if (U_FAILURE(ec)) break;
182 s->applyPattern(UNICODE_STRING_SIMPLE("[a-z {\\u4E01\\u4E02}{\\n\\r}]"), ec);
183 if (U_FAILURE(ec)) break;
197 if (U_FAILURE(ec)) errln("FAIL: pattern parse error");
252 UErrorCode ec = U_ZERO_ERROR;
253 UnicodeSet testSet2(pat, ec);
746 UErrorCode ec = U_ZERO_ERROR;
752 UnicodeSet set(UNICODE_STRING_SIMPLE("[zabyc\\U0001abcd{str1}{str2}]"), ec);
753 TEST_ASSERT_SUCCESS(ec);
827 UErrorCode ec = U_ZERO_ERROR;
831 new UnicodeSet("[a-c]", ec),
834 new UnicodeSet("[{ll}{ch}a-z]", ec),
837 new UnicodeSet("[{ab\\}c}]", ec),
840 new UnicodeSet("[[a-zA-Z]&[M-m]-[X]]", ec),
845 if (U_FAILURE(ec)) {
850 if (U_SUCCESS(ec)) {
1168 UErrorCode ec = U_ZERO_ERROR;
1169 UnicodeSet s("[abcxyz]", ec);
1178 UErrorCode ec = U_ZERO_ERROR;
1179 UnicodeSet set("[a-cx-y3578]", ec);
1180 if (U_FAILURE(ec)) {
1205 UErrorCode ec = U_ZERO_ERROR;
1288 s.applyPattern(pat, ec);
1290 t.applyPattern(exp, ec);
1291 if (U_FAILURE(ec)) {
1320 UnicodeSet sens("[:case_sensitive:]", ec), sens2, s2;
1365 s.applyPattern("[abc]", USET_CASE_INSENSITIVE, NULL, ec);
1366 if (U_FAILURE(ec)) {
1371 UnicodeSet v("[^abc]", USET_CASE_INSENSITIVE, NULL, ec);
1372 if (U_FAILURE(ec)) {
1377 UnicodeSet cm("[abck]", USET_ADD_CASE_MAPPINGS, NULL, ec);
1378 if (U_FAILURE(ec)) {
1394 UErrorCode ec = U_ZERO_ERROR;
1402 UnicodeSet set(pat, ec);
1403 if (U_SUCCESS(ec) != isPatternValid){
1406 u_errorName(ec));
1409 if (U_FAILURE(ec)) {
1575 TokenSymbolTable(UErrorCode& ec) : contents(FALSE, ec) {
1586 UErrorCode& ec) {
1587 if (U_SUCCESS(ec)) {
1588 contents.put(var, new UnicodeString(value), ec);
1642 UErrorCode ec = U_ZERO_ERROR;
1643 TokenSymbolTable sym(ec);
1644 if (U_FAILURE(ec)) {
1651 sym.add(UnicodeString(DATA[i], -1, US_INV), UnicodeString(DATA[i+1], -1, US_INV), ec);
1652 if (U_FAILURE(ec)) {
1664 UnicodeSet us(inpat, pos, USET_IGNORE_SPACE, &sym, ec);
1665 if (U_FAILURE(ec)) {
1678 UnicodeSet us2(exppat, ec);
1679 if (U_FAILURE(ec)) {
1703 UErrorCode ec = U_ZERO_ERROR;
1706 UnicodeSet set(str, ec);
1707 if (U_FAILURE(ec)) {
1894 UErrorCode ec = U_ZERO_ERROR;
1909 t.applyPattern(pat, ec);
1910 if (U_FAILURE(ec)) {
1918 t.applyPattern(pat, ec);
1919 if (U_FAILURE(ec)) {
1971 UErrorCode ec = U_ZERO_ERROR;
1972 ec);
1973 if (U_FAILURE(ec)) {
1975 pat + "\" => " + u_errorName(ec));