/external/icu/icu4c/source/test/cintltst/ |
D | cstrcase.c | 45 UErrorCode errorCode; in TestCaseLower() local 49 errorCode=U_ZERO_ERROR; in TestCaseLower() 53 &errorCode); in TestCaseLower() 54 if( U_FAILURE(errorCode) || in TestCaseLower() 61 u_errorName(errorCode), in TestCaseLower() 71 errorCode=U_ZERO_ERROR; in TestCaseLower() 75 &errorCode); in TestCaseLower() 76 if( U_FAILURE(errorCode) || in TestCaseLower() 83 u_errorName(errorCode), in TestCaseLower() 89 errorCode=U_ZERO_ERROR; in TestCaseLower() [all …]
|
D | cnormtst.c | 558 UErrorCode errorCode; in TestIsNormalized() local 563 errorCode=U_ZERO_ERROR; in TestIsNormalized() 564 if(!unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized() 565 …rr("error: !isNormalized(<U+0300>, NFC) (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestIsNormalized() 569 errorCode=U_TRUNCATED_CHAR_FOUND; in TestIsNormalized() 570 (void)unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode); in TestIsNormalized() 571 if(errorCode!=U_TRUNCATED_CHAR_FOUND) { in TestIsNormalized() 572 …ror: isNormalized(U_TRUNCATED_CHAR_FOUND) changed the error code to %s\n", u_errorName(errorCode)); in TestIsNormalized() 576 errorCode=U_ZERO_ERROR; in TestIsNormalized() 577 (void)unorm_isNormalized(NULL, 1, UNORM_NFC, &errorCode); in TestIsNormalized() [all …]
|
/external/cronet/stable/third_party/icu/source/test/cintltst/ |
D | cstrcase.c | 45 UErrorCode errorCode; in TestCaseLower() local 49 errorCode=U_ZERO_ERROR; in TestCaseLower() 53 &errorCode); in TestCaseLower() 54 if( U_FAILURE(errorCode) || in TestCaseLower() 61 u_errorName(errorCode), in TestCaseLower() 71 errorCode=U_ZERO_ERROR; in TestCaseLower() 75 &errorCode); in TestCaseLower() 76 if( U_FAILURE(errorCode) || in TestCaseLower() 83 u_errorName(errorCode), in TestCaseLower() 89 errorCode=U_ZERO_ERROR; in TestCaseLower() [all …]
|
D | cnormtst.c | 558 UErrorCode errorCode; in TestIsNormalized() local 563 errorCode=U_ZERO_ERROR; in TestIsNormalized() 564 if(!unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized() 565 …rr("error: !isNormalized(<U+0300>, NFC) (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestIsNormalized() 569 errorCode=U_TRUNCATED_CHAR_FOUND; in TestIsNormalized() 570 (void)unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode); in TestIsNormalized() 571 if(errorCode!=U_TRUNCATED_CHAR_FOUND) { in TestIsNormalized() 572 …ror: isNormalized(U_TRUNCATED_CHAR_FOUND) changed the error code to %s\n", u_errorName(errorCode)); in TestIsNormalized() 576 errorCode=U_ZERO_ERROR; in TestIsNormalized() 577 (void)unorm_isNormalized(NULL, 1, UNORM_NFC, &errorCode); in TestIsNormalized() [all …]
|
/external/cronet/tot/third_party/icu/source/test/cintltst/ |
D | cstrcase.c | 45 UErrorCode errorCode; in TestCaseLower() local 49 errorCode=U_ZERO_ERROR; in TestCaseLower() 53 &errorCode); in TestCaseLower() 54 if( U_FAILURE(errorCode) || in TestCaseLower() 61 u_errorName(errorCode), in TestCaseLower() 71 errorCode=U_ZERO_ERROR; in TestCaseLower() 75 &errorCode); in TestCaseLower() 76 if( U_FAILURE(errorCode) || in TestCaseLower() 83 u_errorName(errorCode), in TestCaseLower() 89 errorCode=U_ZERO_ERROR; in TestCaseLower() [all …]
|
D | cnormtst.c | 558 UErrorCode errorCode; in TestIsNormalized() local 563 errorCode=U_ZERO_ERROR; in TestIsNormalized() 564 if(!unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized() 565 …rr("error: !isNormalized(<U+0300>, NFC) (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestIsNormalized() 569 errorCode=U_TRUNCATED_CHAR_FOUND; in TestIsNormalized() 570 (void)unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode); in TestIsNormalized() 571 if(errorCode!=U_TRUNCATED_CHAR_FOUND) { in TestIsNormalized() 572 …ror: isNormalized(U_TRUNCATED_CHAR_FOUND) changed the error code to %s\n", u_errorName(errorCode)); in TestIsNormalized() 576 errorCode=U_ZERO_ERROR; in TestIsNormalized() 577 (void)unorm_isNormalized(NULL, 1, UNORM_NFC, &errorCode); in TestIsNormalized() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | messageformat2test.cpp | 43 UErrorCode errorCode = (UErrorCode) errorCode1; in testDataModelAPI() local 47 Pattern::Builder builder(errorCode); in testDataModelAPI() 49 builder.add("a", errorCode); in testDataModelAPI() 50 builder.add("b", errorCode); in testDataModelAPI() 51 builder.add("c", errorCode); in testDataModelAPI() 53 Pattern p = builder.build(errorCode); in testDataModelAPI() 72 IcuTestErrorCode errorCode(*this, "testFormatterAPI"); in testFormatterAPI() local 79 MessageFormatter::Builder mfBuilder(errorCode); in testFormatterAPI() 81 mfBuilder.setPattern(pattern, parseError, errorCode); in testFormatterAPI() 82 MessageFormatter mf = mfBuilder.build(errorCode); in testFormatterAPI() [all …]
|
D | messageformat2test_custom.cpp | 31 void TestMessageFormat2::testPersonFormatter(IcuTestErrorCode& errorCode) { in testPersonFormatter() argument 32 CHECK_ERROR(errorCode); in testPersonFormatter() 34 MFFunctionRegistry customRegistry(MFFunctionRegistry::Builder(errorCode) in testPersonFormatter() 35 … .adoptFormatter(FunctionName("person"), new PersonNameFormatterFactory(), errorCode) in testPersonFormatter() 48 TestUtils::runTestCase(*this, test, errorCode); in testPersonFormatter() 55 TestUtils::runTestCase(*this, test, errorCode); in testPersonFormatter() 64 TestUtils::runTestCase(*this, test, errorCode); in testPersonFormatter() 71 TestUtils::runTestCase(*this, test, errorCode); in testPersonFormatter() 78 TestUtils::runTestCase(*this, test, errorCode); in testPersonFormatter() 85 TestUtils::runTestCase(*this, test, errorCode); in testPersonFormatter() [all …]
|
D | localematchertest.cpp | 70 UBool dataDriven(const TestCase &test, IcuTestErrorCode &errorCode); 98 IcuTestErrorCode errorCode(*this, "testEmpty"); in testEmpty() local 99 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty() 100 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty() 102 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty() 112 IcuTestErrorCode errorCode(*this, "testCopyErrorTo"); in testCopyErrorTo() local 125 IcuTestErrorCode errorCode(*this, "testBasics"); in testBasics() local 129 setSupportedLocales(ARRAY_RANGE(locales)).build(errorCode); in testBasics() 130 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics() 132 best = matcher.getBestMatch("en_US", errorCode); in testBasics() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | ucol_res.cpp | 82 CollationLoader::loadRootRules(UErrorCode &errorCode) { in loadRootRules() argument 83 if(U_FAILURE(errorCode)) { return; } in loadRootRules() 84 rootBundle = ures_open(U_ICUDATA_COLL, kRootLocaleName, &errorCode); in loadRootRules() 85 if(U_FAILURE(errorCode)) { return; } in loadRootRules() 86 rootRules = ures_getStringByKey(rootBundle, "UCARules", &rootRulesLength, &errorCode); in loadRootRules() 87 if(U_FAILURE(errorCode)) { in loadRootRules() 99 UErrorCode errorCode = U_ZERO_ERROR; in appendRootRules() local 100 umtx_initOnce(gInitOnceUcolRes, CollationLoader::loadRootRules, errorCode); in appendRootRules() 101 if(U_SUCCESS(errorCode)) { in appendRootRules() 108 UnicodeString &rules, UErrorCode &errorCode) { in loadRules() argument [all …]
|
D | dayperiodrules.cpp | 54 virtual void put(const char *key, ResourceValue &value, UBool, UErrorCode &errorCode) override { in put() 55 ResourceTable dayPeriodData = value.getTable(errorCode); in put() 56 if (U_FAILURE(errorCode)) { return; } in put() 60 ResourceTable locales = value.getTable(errorCode); in put() 61 if (U_FAILURE(errorCode)) { return; } in put() 64 UnicodeString setNum_str = value.getUnicodeString(errorCode); in put() 65 int32_t setNum = parseSetNum(setNum_str, errorCode); in put() 66 … uhash_puti(data->localeToRuleSetNumMap, const_cast<char *>(key), setNum, &errorCode); in put() 72 errorCode = U_MEMORY_ALLOCATION_ERROR; in put() 75 ResourceTable rules = value.getTable(errorCode); in put() [all …]
|
D | collationruleparser.cpp | 59 CollationRuleParser::CollationRuleParser(const CollationData *base, UErrorCode &errorCode) in CollationRuleParser() argument 60 : nfd(*Normalizer2::getNFDInstance(errorCode)), in CollationRuleParser() 61 nfc(*Normalizer2::getNFCInstance(errorCode)), in CollationRuleParser() 75 UErrorCode &errorCode) { in parse() argument 76 if(U_FAILURE(errorCode)) { return; } in parse() 86 parse(ruleString, errorCode); in parse() 90 CollationRuleParser::parse(const UnicodeString &ruleString, UErrorCode &errorCode) { in parse() argument 91 if(U_FAILURE(errorCode)) { return; } in parse() 103 parseRuleChain(errorCode); in parse() 106 parseSetting(errorCode); in parse() [all …]
|
D | messageformat2_function_registry.cpp | 55 …lector(const FunctionName& selectorName, SelectorFactory* selectorFactory, UErrorCode& errorCode) { in adoptSelector() argument 56 if (U_SUCCESS(errorCode)) { in adoptSelector() 58 selectors->put(selectorName, selectorFactory, errorCode); in adoptSelector() 63 …ter(const FunctionName& formatterName, FormatterFactory* formatterFactory, UErrorCode& errorCode) { in adoptFormatter() argument 64 if (U_SUCCESS(errorCode)) { in adoptFormatter() 66 formatters->put(formatterName, formatterFactory, errorCode); in adoptFormatter() 71 …terNameByType(const UnicodeString& type, const FunctionName& functionName, UErrorCode& errorCode) { in setDefaultFormatterNameByType() argument 72 if (U_SUCCESS(errorCode)) { in setDefaultFormatterNameByType() 74 FunctionName* f = create<FunctionName>(FunctionName(functionName), errorCode); in setDefaultFormatterNameByType() 75 formattersByType->put(type, f, errorCode); in setDefaultFormatterNameByType() [all …]
|
/external/cronet/stable/third_party/icu/source/i18n/ |
D | ucol_res.cpp | 82 CollationLoader::loadRootRules(UErrorCode &errorCode) { in loadRootRules() argument 83 if(U_FAILURE(errorCode)) { return; } in loadRootRules() 84 rootBundle = ures_open(U_ICUDATA_COLL, kRootLocaleName, &errorCode); in loadRootRules() 85 if(U_FAILURE(errorCode)) { return; } in loadRootRules() 86 rootRules = ures_getStringByKey(rootBundle, "UCARules", &rootRulesLength, &errorCode); in loadRootRules() 87 if(U_FAILURE(errorCode)) { in loadRootRules() 99 UErrorCode errorCode = U_ZERO_ERROR; in appendRootRules() local 100 umtx_initOnce(gInitOnceUcolRes, CollationLoader::loadRootRules, errorCode); in appendRootRules() 101 if(U_SUCCESS(errorCode)) { in appendRootRules() 108 UnicodeString &rules, UErrorCode &errorCode) { in loadRules() argument [all …]
|
D | dayperiodrules.cpp | 55 virtual void put(const char *key, ResourceValue &value, UBool, UErrorCode &errorCode) override { in put() 56 ResourceTable dayPeriodData = value.getTable(errorCode); in put() 57 if (U_FAILURE(errorCode)) { return; } in put() 61 ResourceTable locales = value.getTable(errorCode); in put() 62 if (U_FAILURE(errorCode)) { return; } in put() 65 UnicodeString setNum_str = value.getUnicodeString(errorCode); in put() 66 int32_t setNum = parseSetNum(setNum_str, errorCode); in put() 67 … uhash_puti(data->localeToRuleSetNumMap, const_cast<char *>(key), setNum, &errorCode); in put() 73 errorCode = U_MEMORY_ALLOCATION_ERROR; in put() 76 ResourceTable rules = value.getTable(errorCode); in put() [all …]
|
D | collationruleparser.cpp | 60 CollationRuleParser::CollationRuleParser(const CollationData *base, UErrorCode &errorCode) in CollationRuleParser() argument 61 : nfd(*Normalizer2::getNFDInstance(errorCode)), in CollationRuleParser() 62 nfc(*Normalizer2::getNFCInstance(errorCode)), in CollationRuleParser() 76 UErrorCode &errorCode) { in parse() argument 77 if(U_FAILURE(errorCode)) { return; } in parse() 87 parse(ruleString, errorCode); in parse() 91 CollationRuleParser::parse(const UnicodeString &ruleString, UErrorCode &errorCode) { in parse() argument 92 if(U_FAILURE(errorCode)) { return; } in parse() 104 parseRuleChain(errorCode); in parse() 107 parseSetting(errorCode); in parse() [all …]
|
/external/cronet/tot/third_party/icu/source/i18n/ |
D | ucol_res.cpp | 82 CollationLoader::loadRootRules(UErrorCode &errorCode) { in loadRootRules() argument 83 if(U_FAILURE(errorCode)) { return; } in loadRootRules() 84 rootBundle = ures_open(U_ICUDATA_COLL, kRootLocaleName, &errorCode); in loadRootRules() 85 if(U_FAILURE(errorCode)) { return; } in loadRootRules() 86 rootRules = ures_getStringByKey(rootBundle, "UCARules", &rootRulesLength, &errorCode); in loadRootRules() 87 if(U_FAILURE(errorCode)) { in loadRootRules() 99 UErrorCode errorCode = U_ZERO_ERROR; in appendRootRules() local 100 umtx_initOnce(gInitOnceUcolRes, CollationLoader::loadRootRules, errorCode); in appendRootRules() 101 if(U_SUCCESS(errorCode)) { in appendRootRules() 108 UnicodeString &rules, UErrorCode &errorCode) { in loadRules() argument [all …]
|
D | dayperiodrules.cpp | 55 virtual void put(const char *key, ResourceValue &value, UBool, UErrorCode &errorCode) override { in put() 56 ResourceTable dayPeriodData = value.getTable(errorCode); in put() 57 if (U_FAILURE(errorCode)) { return; } in put() 61 ResourceTable locales = value.getTable(errorCode); in put() 62 if (U_FAILURE(errorCode)) { return; } in put() 65 UnicodeString setNum_str = value.getUnicodeString(errorCode); in put() 66 int32_t setNum = parseSetNum(setNum_str, errorCode); in put() 67 … uhash_puti(data->localeToRuleSetNumMap, const_cast<char *>(key), setNum, &errorCode); in put() 73 errorCode = U_MEMORY_ALLOCATION_ERROR; in put() 76 ResourceTable rules = value.getTable(errorCode); in put() [all …]
|
D | collationruleparser.cpp | 60 CollationRuleParser::CollationRuleParser(const CollationData *base, UErrorCode &errorCode) in CollationRuleParser() argument 61 : nfd(*Normalizer2::getNFDInstance(errorCode)), in CollationRuleParser() 62 nfc(*Normalizer2::getNFCInstance(errorCode)), in CollationRuleParser() 76 UErrorCode &errorCode) { in parse() argument 77 if(U_FAILURE(errorCode)) { return; } in parse() 87 parse(ruleString, errorCode); in parse() 91 CollationRuleParser::parse(const UnicodeString &ruleString, UErrorCode &errorCode) { in parse() argument 92 if(U_FAILURE(errorCode)) { return; } in parse() 104 parseRuleChain(errorCode); in parse() 107 parseSetting(errorCode); in parse() [all …]
|
/external/cronet/stable/third_party/icu/source/common/ |
D | loadednormalizer2impl.cpp | 39 void load(const char *packageName, const char *name, UErrorCode &errorCode); 77 LoadedNormalizer2Impl::load(const char *packageName, const char *name, UErrorCode &errorCode) { in load() argument 78 if(U_FAILURE(errorCode)) { in load() 81 memory=udata_openChoice(packageName, "nrm", name, isAcceptable, this, &errorCode); in load() 82 if(U_FAILURE(errorCode)) { in load() 89 errorCode=U_INVALID_FORMAT_ERROR; // Not enough indexes. in load() 97 &errorCode); in load() 98 if(U_FAILURE(errorCode)) { in load() 118 UErrorCode &errorCode) { in createInstance() argument 119 if(U_FAILURE(errorCode)) { in createInstance() [all …]
|
/external/icu/icu4c/source/common/ |
D | loadednormalizer2impl.cpp | 39 void load(const char *packageName, const char *name, UErrorCode &errorCode); 77 LoadedNormalizer2Impl::load(const char *packageName, const char *name, UErrorCode &errorCode) { in load() argument 78 if(U_FAILURE(errorCode)) { in load() 81 memory=udata_openChoice(packageName, "nrm", name, isAcceptable, this, &errorCode); in load() 82 if(U_FAILURE(errorCode)) { in load() 89 errorCode=U_INVALID_FORMAT_ERROR; // Not enough indexes. in load() 97 &errorCode); in load() 98 if(U_FAILURE(errorCode)) { in load() 118 UErrorCode &errorCode) { in createInstance() argument 119 if(U_FAILURE(errorCode)) { in createInstance() [all …]
|
D | characterproperties.cpp | 91 void U_CALLCONV initInclusion(UPropertySource src, UErrorCode &errorCode) { in initInclusion() argument 95 errorCode = U_INTERNAL_PROGRAM_ERROR; in initInclusion() 102 errorCode = U_MEMORY_ALLOCATION_ERROR; in initInclusion() 116 uchar_addPropertyStarts(&sa, &errorCode); in initInclusion() 119 upropsvec_addPropertyStarts(&sa, &errorCode); in initInclusion() 122 uchar_addPropertyStarts(&sa, &errorCode); in initInclusion() 123 upropsvec_addPropertyStarts(&sa, &errorCode); in initInclusion() 127 const Normalizer2Impl *impl=Normalizer2Factory::getNFCImpl(errorCode); in initInclusion() 128 if(U_SUCCESS(errorCode)) { in initInclusion() 129 impl->addPropertyStarts(&sa, errorCode); in initInclusion() [all …]
|
/external/cronet/tot/third_party/icu/source/common/ |
D | loadednormalizer2impl.cpp | 39 void load(const char *packageName, const char *name, UErrorCode &errorCode); 77 LoadedNormalizer2Impl::load(const char *packageName, const char *name, UErrorCode &errorCode) { in load() argument 78 if(U_FAILURE(errorCode)) { in load() 81 memory=udata_openChoice(packageName, "nrm", name, isAcceptable, this, &errorCode); in load() 82 if(U_FAILURE(errorCode)) { in load() 89 errorCode=U_INVALID_FORMAT_ERROR; // Not enough indexes. in load() 97 &errorCode); in load() 98 if(U_FAILURE(errorCode)) { in load() 118 UErrorCode &errorCode) { in createInstance() argument 119 if(U_FAILURE(errorCode)) { in createInstance() [all …]
|
/external/cronet/stable/third_party/icu/source/test/intltest/ |
D | localematchertest.cpp | 70 UBool dataDriven(const TestCase &test, IcuTestErrorCode &errorCode); 98 IcuTestErrorCode errorCode(*this, "testEmpty"); in testEmpty() local 99 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty() 100 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty() 102 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty() 112 IcuTestErrorCode errorCode(*this, "testCopyErrorTo"); in testCopyErrorTo() local 125 IcuTestErrorCode errorCode(*this, "testBasics"); in testBasics() local 129 setSupportedLocales(ARRAY_RANGE(locales)).build(errorCode); in testBasics() 130 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics() 132 best = matcher.getBestMatch("en_US", errorCode); in testBasics() [all …]
|
/external/cronet/tot/third_party/icu/source/test/intltest/ |
D | localematchertest.cpp | 70 UBool dataDriven(const TestCase &test, IcuTestErrorCode &errorCode); 98 IcuTestErrorCode errorCode(*this, "testEmpty"); in testEmpty() local 99 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty() 100 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty() 102 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty() 112 IcuTestErrorCode errorCode(*this, "testCopyErrorTo"); in testCopyErrorTo() local 125 IcuTestErrorCode errorCode(*this, "testBasics"); in testBasics() local 129 setSupportedLocales(ARRAY_RANGE(locales)).build(errorCode); in testBasics() 130 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics() 132 best = matcher.getBestMatch("en_US", errorCode); in testBasics() [all …]
|