Home | History | Annotate | Download | only in intltest

Lines Matching refs:errorCode

14 #include "unicode/errorcode.h"
804 UErrorCode errorCode;
823 errorCode=U_ZERO_ERROR;
825 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode);
826 if(U_FAILURE(errorCode) || /*result!=r ||*/ result!=expect) {
828 UnicodeString(u_errorName(errorCode))+", result==expect: expected: "+
837 errorCode=U_UNEXPECTED_TOKEN;
838 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode);
839 if(errorCode!=U_UNEXPECTED_TOKEN || result!=r || !result.isBogus()) {
844 errorCode=U_ZERO_ERROR;
845 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode);
846 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || result!=r || !result.isBogus()) {
853 ref_norm_compare(const UnicodeString &s1, const UnicodeString &s2, uint32_t options, UErrorCode &errorCode) {
858 Normalizer::decompose(s1, FALSE, normOptions, r1, errorCode);
859 Normalizer::decompose(s2, FALSE, normOptions, r2, errorCode);
868 Normalizer::decompose(r1, FALSE, normOptions, t1, errorCode);
869 Normalizer::decompose(r2, FALSE, normOptions, t2, errorCode);
880 _norm_compare(const UnicodeString &s1, const UnicodeString &s2, uint32_t options, UErrorCode &errorCode) {
883 if( UNORM_YES==Normalizer::quickCheck(s1, UNORM_FCD, normOptions, errorCode) &&
884 UNORM_YES==Normalizer::quickCheck(s2, UNORM_FCD, normOptions, errorCode)) {
888 return Normalizer::compare(s1, s2, options, errorCode);
1072 UErrorCode errorCode;
1084 errorCode=U_ZERO_ERROR;
1085 result=_norm_compare(s[i], s[j], opt[k].options, errorCode);
1086 refResult=ref_norm_compare(s[i], s[j], opt[k].options, errorCode);
1090 U_SUCCESS(errorCode) ? "" : u_errorName(errorCode));
1095 errorCode=U_ZERO_ERROR;
1101 U_SUCCESS(errorCode) ? "" : u_errorName(errorCode));
1114 const Normalizer2Impl *nfcImpl=Normalizer2Factory::getNFCImpl(errorCode);
1115 if(U_FAILURE(errorCode) || !nfcImpl->ensureCanonIterData(errorCode)) {
1117 u_errorName(errorCode));
1129 const Normalizer2 *nfcNorm2=Normalizer2::getNFCInstance(errorCode);
1141 errorCode=U_ZERO_ERROR;
1142 result=_norm_compare(s1, s2, opt[k].options, errorCode);
1143 refResult=ref_norm_compare(s1, s2, opt[k].options, errorCode);
1147 U_SUCCESS(errorCode) ? "" : u_errorName(errorCode));
1152 errorCode=U_ZERO_ERROR;
1158 U_SUCCESS(errorCode) ? "" : u_errorName(errorCode));
1190 UnicodeSet filter(UNICODE_STRING_SIMPLE("[^\\u00a0-\\u00ff]"), errorCode);
1223 UErrorCode errorCode;
1229 errorCode = U_ZERO_ERROR;
1255 Normalizer::decompose(s, FALSE, 0, d, errorCode);
1262 Normalizer::decompose(s, FALSE, 0, d, errorCode);
1266 qcResult=Normalizer::quickCheck(s, UNORM_FCD, errorCode);
1268 if (U_FAILURE(errorCode)) {
1270 dataerrln("U+%04lx: Failed with error %s", u_errorName(errorCode));
1290 if(isNFD && UNORM_YES!=Normalizer::quickCheck(s, UNORM_NFD, errorCode)) {
1319 initExpectedSkippables(UnicodeSet skipSets[UNORM_MODE_COUNT], UErrorCode &errorCode) {
1321 UNICODE_STRING_SIMPLE("[[:NFD_QC=Yes:]&[:ccc=0:]]"), errorCode);
1323 UNICODE_STRING_SIMPLE("[[:NFC_QC=Yes:]&[:ccc=0:]-[:HST=LV:]]"), errorCode);
1325 UNICODE_STRING_SIMPLE("[[:NFKD_QC=Yes:]&[:ccc=0:]]"), errorCode);
1327 errorCode);
1332 UnicodeSet combineBack("[:NFC_QC=Maybe:]", errorCode);
1345 UnicodeSet notInteresting("[[:C:][:Unified_Ideograph:][:HST=LVT:]]", errorCode);
1351 const Normalizer2 *norm2=Normalizer2::getNFCInstance(errorCode);
1366 if(!norm2->isNormalized(s, errorCode)) {
1385 IcuTestErrorCode errorCode(*this, "TestSkippable");
1386 skipSets[UNORM_NFD].applyPattern(UNICODE_STRING_SIMPLE("[:NFD_Inert:]"), errorCode);
1387 skipSets[UNORM_NFKD].applyPattern(UNICODE_STRING_SIMPLE("[:NFKD_Inert:]"), errorCode);
1388 skipSets[UNORM_NFC].applyPattern(UNICODE_STRING_SIMPLE("[:NFC_Inert:]"), errorCode);
1389 skipSets[UNORM_NFKC].applyPattern(UNICODE_STRING_SIMPLE("[:NFKC_Inert:]"), errorCode);
1390 if(errorCode.logDataIfFailureAndReset("UnicodeSet(NF..._Inert) failed")) {
1395 initExpectedSkippables(expectSets, errorCode);
1396 errorCode.assertSuccess();
1436 IcuTestErrorCode errorCode(*this, "BasicNormalizerTest/TestCustomComp");
1438 Normalizer2::getInstance(loadTestData(errorCode), "testnorm",
1439 UNORM2_COMPOSE, errorCode);
1440 if(errorCode.logDataIfFailureAndReset("unable to load testdata/testnorm.nrm")) {
1447 UnicodeString result=customNorm2->normalize(input, errorCode);
1468 IcuTestErrorCode errorCode(*this, "BasicNormalizerTest/TestCustomFCC");
1470 Normalizer2::getInstance(loadTestData(errorCode), "testnorm",
1471 UNORM2_COMPOSE_CONTIGUOUS, errorCode);
1472 if(errorCode.logDataIfFailureAndReset("unable to load testdata/testnorm.nrm")) {
1479 UnicodeString result=customNorm2->normalize(input, errorCode);
1489 UErrorCode errorCode = U_ZERO_ERROR;
1490 const Normalizer2 *nfcNorm2=Normalizer2::getNFCInstance(errorCode);
1491 if (U_FAILURE(errorCode)) {
1495 UnicodeSet filter(UNICODE_STRING_SIMPLE("[^\\u00a0-\\u00ff\\u0310-\\u031f]"), errorCode);
1522 fn2.append(newString1, newString2, errorCode);
1523 if (U_FAILURE(errorCode)) {