| /external/chromium_org/third_party/icu/source/test/cintltst/ |
| cldrtest.c | 75 UErrorCode errorCode = U_ZERO_ERROR; 84 errorCode = U_ZERO_ERROR; 87 subBundle = ures_getNextResource(currentBundle, NULL, &errorCode); 88 if (U_FAILURE(errorCode)) { 89 log_err("Can't open a resource for lnocale %s. Error: %s\n", locale, u_errorName(errorCode)); 95 subRootBundle = ures_getByKey(root, subBundleKey, NULL, &errorCode); 96 if (U_FAILURE(errorCode)) { 121 const int32_t *subRootBundleArr = ures_getIntVector(subRootBundle, &minSize, &errorCode); 122 const int32_t *subBundleArr = ures_getIntVector(subBundle, &subBundleSize, &errorCode); 157 UResourceBundle *subSubBundle = ures_getByIndex(subBundle, 0, NULL, &errorCode); [all...] |
| cnormtst.c | 549 UErrorCode errorCode; 554 errorCode=U_ZERO_ERROR; 555 if(!unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { 556 log_data_err("error: !isNormalized(<U+0300>, NFC) (%s) - (Are you missing data?)\n", u_errorName(errorCode)); 560 errorCode=U_TRUNCATED_CHAR_FOUND; 561 (void)unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode); 562 if(errorCode!=U_TRUNCATED_CHAR_FOUND) { 563 log_err("error: isNormalized(U_TRUNCATED_CHAR_FOUND) changed the error code to %s\n", u_errorName(errorCode)); 567 errorCode=U_ZERO_ERROR [all...] |
| custrtst.c | [all...] |
| ncnvtst.c | [all...] |
| /external/chromium_org/third_party/icu/source/test/intltest/ |
| tmsgfmt.cpp | 631 UErrorCode errorCode = U_ZERO_ERROR; 635 errorCode); 636 if (U_FAILURE(errorCode)) { 637 errln("MessageFormat constructor failed - %s\n", u_errorName(errorCode)); 658 dataerrln( "%s error while formatting with ErrorCode as %s" ,errMsg, u_errorName(status) ); 674 dataerrln( "%s error while constructing with ErrorCode as %s" ,errMsg, u_errorName(status) ); [all...] |
| tstnorm.cpp | 12 #include "unicode/errorcode.h" 802 UErrorCode errorCode; 821 errorCode=U_ZERO_ERROR; 823 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 824 if(U_FAILURE(errorCode) || /*result!=r ||*/ result!=expect) { 826 UnicodeString(u_errorName(errorCode))+", result==expect: expected: "+ 835 errorCode=U_UNEXPECTED_TOKEN; 836 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 837 if(errorCode!=U_UNEXPECTED_TOKEN || result!=r || !result.isBogus()) { 842 errorCode=U_ZERO_ERROR [all...] |
| ustrtest.cpp | 229 UErrorCode errorCode=U_ZERO_ERROR; 231 cnv=ucnv_open("ISO-8859-1", &errorCode); 232 UnicodeString v(cs, -1, cnv, errorCode); 235 errln("UnicodeString(const char *, length, cnv, errorCode) does not work with length==-1"); 542 UErrorCode errorCode; 545 errorCode=U_ZERO_ERROR; 546 length=s.extract((UChar *)NULL, 0, errorCode); 547 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=s.length()) { 548 errln("UnicodeString.extract(NULL, 0)==%d (%s) expected %d (U_BUFFER_OVERFLOW_ERROR)", length, s.length(), u_errorName(errorCode)); 551 errorCode=U_ZERO_ERROR [all...] |
| /external/chromium_org/third_party/icu/source/tools/ctestfw/ |
| ctest.c | 995 UErrorCode errorCode = U_ZERO_ERROR; 1017 u_setMemoryFunctions(NULL, ctest_libMalloc, ctest_libRealloc, ctest_libFree, &errorCode); 1018 if (U_FAILURE(errorCode)) { 1019 printf("u_setMemoryFunctions returned %s\n", u_errorName(errorCode)); [all...] |
| /external/chromium_org/third_party/icu/source/tools/gencnval/ |
| gencnval.c | 224 UErrorCode errorCode=U_ZERO_ERROR; 293 options[COPYRIGHT].doesOccur ? U_COPYRIGHT_STRING : NULL, &errorCode); 294 if(U_FAILURE(errorCode)) { 295 fprintf(stderr, "gencnval: unable to open output file - error %s\n", u_errorName(errorCode)); 296 exit(errorCode); 303 udata_finish(out, &errorCode); 304 if(U_FAILURE(errorCode)) { 305 fprintf(stderr, "gencnval: error finishing output file - %s\n", u_errorName(errorCode)); 306 exit(errorCode); [all...] |
| /external/chromium_org/third_party/icu/source/tools/gennorm2/ |
| n2builder.cpp | 29 #include "unicode/errorcode.h" 172 Normalizer2DataBuilder::Normalizer2DataBuilder(UErrorCode &errorCode) : 175 normTrie=utrie2_open(0, 0, &errorCode); 241 IcuToolErrorCode errorCode("gennorm2/createNorm()"); 242 utrie2_set32(normTrie, c, (uint32_t)(p-norms), errorCode); 281 UErrorCode errorCode=U_ZERO_ERROR; 282 u_strToUTF8(NULL, 0, NULL, s.getBuffer(), s.length(), &errorCode); 283 return U_SUCCESS(errorCode) || errorCode==U_BUFFER_OVERFLOW_ERROR; 378 IcuToolErrorCode errorCode("gennorm2/addComposition()") [all...] |
| /external/icu/icu4c/source/common/ |
| normalizer2impl.cpp | 38 UBool ReorderingBuffer::init(int32_t destCapacity, UErrorCode &errorCode) { 43 errorCode=U_MEMORY_ALLOCATION_ERROR; 70 UBool ReorderingBuffer::appendSupplementary(UChar32 c, uint8_t cc, UErrorCode &errorCode) { 71 if(remainingCapacity<2 && !resize(2, errorCode)) { 91 UErrorCode &errorCode) { 95 if(remainingCapacity<length && !resize(length, errorCode)) { 121 append(c, leadCC, errorCode); 127 UBool ReorderingBuffer::appendZeroCC(UChar32 c, UErrorCode &errorCode) { 129 if(remainingCapacity<cpLength && !resize(cpLength, errorCode)) { 145 UBool ReorderingBuffer::appendZeroCC(const UChar *s, const UChar *sLimit, UErrorCode &errorCode) { [all...] |
| ucnv.c | 331 UErrorCode errorCode = U_ZERO_ERROR; 342 ucnv_getName(converter, &errorCode), converter, converter->isCopyLocal); 361 errorCode = U_ZERO_ERROR; 362 converter->fromCharErrorBehaviour(converter->toUContext, &toUArgs, NULL, 0, UCNV_CLOSE, &errorCode); 376 errorCode = U_ZERO_ERROR; 377 converter->fromUCharErrorBehaviour(converter->fromUContext, &fromUArgs, NULL, 0, 0, UCNV_CLOSE, &errorCode); 579 UErrorCode errorCode; 593 errorCode = U_ZERO_ERROR; 594 converter->fromCharErrorBehaviour(converter->toUContext, &toUArgs, NULL, 0, UCNV_RESET, &errorCode); 608 errorCode = U_ZERO_ERROR [all...] |
| unames.cpp | [all...] |
| unistr.cpp | 427 UErrorCode errorCode = U_ZERO_ERROR; 432 &errorCode); 434 if(errorCode == U_BUFFER_OVERFLOW_ERROR) { 437 } else if(U_FAILURE(errorCode)) { 786 UErrorCode &errorCode) const { 788 if(U_SUCCESS(errorCode)) { 790 errorCode=U_ILLEGAL_ARGUMENT_ERROR; 796 return u_terminateUChars(dest, destCapacity, len, &errorCode); 841 UErrorCode errorCode = U_ZERO_ERROR; 846 &errorCode); [all...] |
| /external/icu/icu4c/source/i18n/ |
| alphaindex.cpp | 66 UErrorCode &errorCode) { 67 if (U_FAILURE(errorCode)) { return NULL; } 73 errorCode = U_MEMORY_ALLOCATION_ERROR; 103 UErrorCode errorCode = U_ZERO_ERROR; 104 UCollationResult cmp = coll.compare(s, *si, errorCode); 145 UErrorCode &errorCode) { 153 collatorPrimaryOnly.compare(name, bucket->lowerBoundary_, errorCode); 192 const UnicodeString &name, UErrorCode &errorCode) const { 193 return buckets_->getBucketIndex(name, *collatorPrimaryOnly_, errorCode); 255 AlphabeticIndex::ImmutableIndex *AlphabeticIndex::buildImmutableIndex(UErrorCode &errorCode) { [all...] |
| collationbuilder.cpp | 61 const char *&errorReason, UErrorCode &errorCode); 74 const char *& /*errorReason*/, UErrorCode &errorCode) { 76 return rules = CollationLoader::loadRules(localeID, collationType, errorCode); 98 RuleBasedCollator::RuleBasedCollator(const UnicodeString &rules, UErrorCode &errorCode) 105 internalBuildTailoring(rules, UCOL_DEFAULT, UCOL_DEFAULT, NULL, NULL, errorCode); 109 UErrorCode &errorCode) 116 internalBuildTailoring(rules, strength, UCOL_DEFAULT, NULL, NULL, errorCode); 121 UErrorCode &errorCode) 128 internalBuildTailoring(rules, UCOL_DEFAULT, decompositionMode, NULL, NULL, errorCode); 134 UErrorCode &errorCode) [all...] |
| collationdatabuilder.cpp | 133 virtual UChar32 nextCodePoint(UErrorCode &errorCode); 134 virtual UChar32 previousCodePoint(UErrorCode &errorCode); 137 virtual void forwardNumCodePoints(int32_t num, UErrorCode &errorCode); 138 virtual void backwardNumCodePoints(int32_t num, UErrorCode &errorCode); 141 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode); 177 UErrorCode errorCode = U_ZERO_ERROR; 178 while(U_SUCCESS(errorCode) && pos < s->length()) { 191 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode); 192 U_ASSERT(U_SUCCESS(errorCode)); 218 DataBuilderCollationIterator::nextCodePoint(UErrorCode & /*errorCode*/) { [all...] |
| rulebasedcollator.cpp | 153 const RuleBasedCollator *base, UErrorCode &errorCode) 160 if(U_FAILURE(errorCode)) { return; } 162 errorCode = U_ILLEGAL_ARGUMENT_ERROR; 165 const CollationTailoring *root = CollationRoot::getRoot(errorCode); 166 if(U_FAILURE(errorCode)) { return; } 168 errorCode = U_UNSUPPORTED_ERROR; 173 errorCode = U_MEMORY_ALLOCATION_ERROR; 176 CollationDataReader::read(base->tailoring, bin, length, *t, errorCode); 177 if(U_FAILURE(errorCode)) { return; } 247 UErrorCode errorCode = U_ZERO_ERROR [all...] |
| /external/icu/icu4c/source/test/cintltst/ |
| callcoll.c | 150 UErrorCode errorCode = U_ZERO_ERROR; 165 if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_ON && strength == UCOL_SECONDARY && doneCase == FALSE) { 167 } else if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_OFF || doneCase == TRUE || strength != UCOL_SECONDARY) { 173 if(strength == UCOL_QUATERNARY && ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &errorCode) == UCOL_NON_IGNORABLE) { [all...] |
| cldrtest.c | 75 UErrorCode errorCode = U_ZERO_ERROR; 84 errorCode = U_ZERO_ERROR; 87 subBundle = ures_getNextResource(currentBundle, NULL, &errorCode); 88 if (U_FAILURE(errorCode)) { 89 log_err("Can't open a resource for lnocale %s. Error: %s\n", locale, u_errorName(errorCode)); 95 subRootBundle = ures_getByKey(root, subBundleKey, NULL, &errorCode); 96 if (U_FAILURE(errorCode)) { 121 const int32_t *subRootBundleArr = ures_getIntVector(subRootBundle, &minSize, &errorCode); 122 const int32_t *subBundleArr = ures_getIntVector(subBundle, &subBundleSize, &errorCode); 157 UResourceBundle *subSubBundle = ures_getByIndex(subBundle, 0, NULL, &errorCode); [all...] |
| cnormtst.c | 549 UErrorCode errorCode; 554 errorCode=U_ZERO_ERROR; 555 if(!unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { 556 log_data_err("error: !isNormalized(<U+0300>, NFC) (%s) - (Are you missing data?)\n", u_errorName(errorCode)); 560 errorCode=U_TRUNCATED_CHAR_FOUND; 561 (void)unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode); 562 if(errorCode!=U_TRUNCATED_CHAR_FOUND) { 563 log_err("error: isNormalized(U_TRUNCATED_CHAR_FOUND) changed the error code to %s\n", u_errorName(errorCode)); 567 errorCode=U_ZERO_ERROR [all...] |
| ncnvtst.c | [all...] |
| /external/icu/icu4c/source/test/intltest/ |
| tmsgfmt.cpp | 631 UErrorCode errorCode = U_ZERO_ERROR; 635 errorCode); 636 if (U_FAILURE(errorCode)) { 637 errln("MessageFormat constructor failed - %s\n", u_errorName(errorCode)); 658 dataerrln( "%s error while formatting with ErrorCode as %s" ,errMsg, u_errorName(status) ); 674 dataerrln( "%s error while constructing with ErrorCode as %s" ,errMsg, u_errorName(status) ); [all...] |
| tstnorm.cpp | 12 #include "unicode/errorcode.h" 802 UErrorCode errorCode; 821 errorCode=U_ZERO_ERROR; 823 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 824 if(U_FAILURE(errorCode) || /*result!=r ||*/ result!=expect) { 826 UnicodeString(u_errorName(errorCode))+", result==expect: expected: "+ 835 errorCode=U_UNEXPECTED_TOKEN; 836 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 837 if(errorCode!=U_UNEXPECTED_TOKEN || result!=r || !result.isBogus()) { 842 errorCode=U_ZERO_ERROR [all...] |
| ustrtest.cpp | 229 UErrorCode errorCode=U_ZERO_ERROR; 231 cnv=ucnv_open("ISO-8859-1", &errorCode); 232 UnicodeString v(cs, -1, cnv, errorCode); 235 errln("UnicodeString(const char *, length, cnv, errorCode) does not work with length==-1"); 542 UErrorCode errorCode; 545 errorCode=U_ZERO_ERROR; 546 length=s.extract((UChar *)NULL, 0, errorCode); 547 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=s.length()) { 548 errln("UnicodeString.extract(NULL, 0)==%d (%s) expected %d (U_BUFFER_OVERFLOW_ERROR)", length, s.length(), u_errorName(errorCode)); 551 errorCode=U_ZERO_ERROR [all...] |