/external/chromium_org/third_party/icu/source/test/cintltst/ |
trie2test.c | 488 UErrorCode errorCode; 502 errorCode=U_ZERO_ERROR; 504 utrie2_set32(trie, 1, 234, &errorCode); 506 if(errorCode!=U_NO_WRITE_PERMISSION || value2!=value) { 508 testName, u_errorName(errorCode)); 512 errorCode=U_ZERO_ERROR; 513 utrie2_setRange32(trie, 1, 5, 234, TRUE, &errorCode); 515 if(errorCode!=U_NO_WRITE_PERMISSION || value2!=value) { 517 testName, u_errorName(errorCode)); 521 errorCode=U_ZERO_ERROR [all...] |
crestst.c | 474 UErrorCode errorCode; 481 errorCode=U_ZERO_ERROR; 482 idna_rules=ures_openDirect(loadTestData(&errorCode), "idna_rules", &errorCode); 483 if(U_FAILURE(errorCode)) { 484 log_data_err("ures_openDirect(\"idna_rules\") failed: %s\n", u_errorName(errorCode)); 488 if(0!=uprv_strcmp("idna_rules", ures_getLocale(idna_rules, &errorCode))) { 491 errorCode=U_ZERO_ERROR; 494 item=ures_getByKey(idna_rules, "UnassignedSet", NULL, &errorCode); 495 if(U_FAILURE(errorCode)) { [all...] |
udatpg_test.c | 73 UErrorCode errorCode=U_ZERO_ERROR; 79 dtpg=udatpg_open(NULL, &errorCode); 80 if(U_FAILURE(errorCode)) { 81 log_err_status(errorCode, "udatpg_open(NULL) failed - %s\n", u_errorName(errorCode)); 87 dtpg=udatpg_open("de", &errorCode); 88 if(U_FAILURE(errorCode)) { 89 log_err("udatpg_open(de) failed - %s\n", u_errorName(errorCode)); 97 dtpg2=udatpg_clone(dtpg, &errorCode); 98 if(U_FAILURE(errorCode) || dtpg2==NULL) [all...] |
sorttest.c | 38 UErrorCode errorCode; 41 errorCode=U_ZERO_ERROR; 42 uprv_sortArray(small, LENGTHOF(small), sizeof(small[0]), uprv_uint16Comparator, NULL, TRUE, &errorCode); 43 if(U_FAILURE(errorCode)) { 44 log_err("uprv_sortArray(small) failed - %s\n", u_errorName(errorCode)); 60 uprv_sortArray(medium, LENGTHOF(medium), sizeof(medium[0]), uprv_int32Comparator, NULL, TRUE, &errorCode); 61 if(U_FAILURE(errorCode)) { 62 log_err("uprv_sortArray(medium) failed - %s\n", u_errorName(errorCode)); 73 errorCode=U_ZERO_ERROR; 74 uprv_sortArray(large, LENGTHOF(large), sizeof(large[0]), uprv_uint32Comparator, NULL, FALSE, &errorCode); [all...] |
/external/icu/icu4c/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...] |
trie2test.c | 488 UErrorCode errorCode; 502 errorCode=U_ZERO_ERROR; 504 utrie2_set32(trie, 1, 234, &errorCode); 506 if(errorCode!=U_NO_WRITE_PERMISSION || value2!=value) { 508 testName, u_errorName(errorCode)); 512 errorCode=U_ZERO_ERROR; 513 utrie2_setRange32(trie, 1, 5, 234, TRUE, &errorCode); 515 if(errorCode!=U_NO_WRITE_PERMISSION || value2!=value) { 517 testName, u_errorName(errorCode)); 521 errorCode=U_ZERO_ERROR [all...] |
crestst.c | 472 UErrorCode errorCode; 479 errorCode=U_ZERO_ERROR; 480 idna_rules=ures_openDirect(loadTestData(&errorCode), "idna_rules", &errorCode); 481 if(U_FAILURE(errorCode)) { 482 log_data_err("ures_openDirect(\"idna_rules\") failed: %s\n", u_errorName(errorCode)); 486 if(0!=uprv_strcmp("idna_rules", ures_getLocale(idna_rules, &errorCode))) { 489 errorCode=U_ZERO_ERROR; 492 item=ures_getByKey(idna_rules, "UnassignedSet", NULL, &errorCode); 493 if(U_FAILURE(errorCode)) { [all...] |
udatpg_test.c | 73 UErrorCode errorCode=U_ZERO_ERROR; 79 dtpg=udatpg_open(NULL, &errorCode); 80 if(U_FAILURE(errorCode)) { 81 log_err_status(errorCode, "udatpg_open(NULL) failed - %s\n", u_errorName(errorCode)); 87 dtpg=udatpg_open("de", &errorCode); 88 if(U_FAILURE(errorCode)) { 89 log_err("udatpg_open(de) failed - %s\n", u_errorName(errorCode)); 97 dtpg2=udatpg_clone(dtpg, &errorCode); 98 if(U_FAILURE(errorCode) || dtpg2==NULL) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
ucdtest.cpp | 36 UErrorCode errorCode=U_ZERO_ERROR; 37 unknownPropertyNames=new U_NAMESPACE_QUALIFIER Hashtable(errorCode); 38 if(U_FAILURE(errorCode)) { 44 unknownPropertyNames->puti(UnicodeString(ignorePropNames[i], -1, US_INV), 1, errorCode); 178 UErrorCode errorCode=U_ZERO_ERROR; 179 me->unknownPropertyNames->puti(propName, 1, errorCode); 204 UErrorCode errorCode=U_ZERO_ERROR; 215 strcpy(backupPath, loadTestData(errorCode)); 222 u_parseDelimitedFile(newPath, ';', fields, 2, derivedPropsLineFn, this, &errorCode); 224 if(errorCode==U_FILE_ACCESS_ERROR) [all...] |
listformattertest.cpp | 29 UErrorCode errorCode = U_ZERO_ERROR; 30 formatter->format(data, dataSize, actualResult, errorCode); 39 UErrorCode errorCode = U_ZERO_ERROR; 40 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale(locale_string), errorCode)); 41 if (U_FAILURE(errorCode)) { 42 dataerrln("ListFormatter::createInstance(Locale(\"%s\"), errorCode) failed in CheckFourCases: %s", locale_string, u_errorName(errorCode)); 60 UErrorCode errorCode = U_ZERO_ERROR; 61 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(locale, errorCode)); 62 if (U_FAILURE(errorCode)) { [all...] |
/external/icu/icu4c/source/test/intltest/ |
ucdtest.cpp | 36 UErrorCode errorCode=U_ZERO_ERROR; 37 unknownPropertyNames=new U_NAMESPACE_QUALIFIER Hashtable(errorCode); 38 if(U_FAILURE(errorCode)) { 44 unknownPropertyNames->puti(UnicodeString(ignorePropNames[i], -1, US_INV), 1, errorCode); 178 UErrorCode errorCode=U_ZERO_ERROR; 179 me->unknownPropertyNames->puti(propName, 1, errorCode); 204 UErrorCode errorCode=U_ZERO_ERROR; 215 strcpy(backupPath, loadTestData(errorCode)); 222 u_parseDelimitedFile(newPath, ';', fields, 2, derivedPropsLineFn, this, &errorCode); 224 if(errorCode==U_FILE_ACCESS_ERROR) [all...] |
listformattertest.cpp | 29 UErrorCode errorCode = U_ZERO_ERROR; 30 formatter->format(data, dataSize, actualResult, errorCode); 39 UErrorCode errorCode = U_ZERO_ERROR; 40 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale(locale_string), errorCode)); 41 if (U_FAILURE(errorCode)) { 42 dataerrln("ListFormatter::createInstance(Locale(\"%s\"), errorCode) failed in CheckFourCases: %s", locale_string, u_errorName(errorCode)); 60 UErrorCode errorCode = U_ZERO_ERROR; 61 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(locale, errorCode)); 62 if (U_FAILURE(errorCode)) { [all...] |
/external/icu/icu4c/source/i18n/ |
collationbasedatabuilder.cpp | 84 CollationBaseDataBuilder::CollationBaseDataBuilder(UErrorCode &errorCode) 85 : CollationDataBuilder(errorCode), 88 rootElements(errorCode) { 95 CollationBaseDataBuilder::init(UErrorCode &errorCode) { 96 if(U_FAILURE(errorCode)) { return; } 98 errorCode = U_INVALID_STATE_ERROR; 114 trie = utrie2_open(Collation::UNASSIGNED_CE32, Collation::FFFD_CE32, &errorCode); 118 utrie2_set32(trie, c, Collation::UNASSIGNED_CE32, &errorCode); 121 utrie2_set32(trie, 0xfffe, Collation::MERGE_SEPARATOR_CE32, &errorCode); 127 utrie2_setRange32(trie, Hangul::HANGUL_BASE, Hangul::HANGUL_END, hangulCE32, TRUE, &errorCode); [all...] |
collationiterator.h | 45 inline void append(int64_t ce, UErrorCode &errorCode) { 46 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { 55 UBool ensureAppendCapacity(int32_t appCap, UErrorCode &errorCode); 57 inline UBool incLength(UErrorCode &errorCode) { 60 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { 112 inline int64_t nextCE(UErrorCode &errorCode) { 118 if(!ceBuffer.incLength(errorCode)) { 122 uint32_t ce32 = handleNextCE32(c, errorCode); 153 return nextCEFromCE32(d, c, ce32, errorCode); 160 int32_t fetchCEs(UErrorCode &errorCode); [all...] |
uitercollationiterator.h | 43 virtual UChar32 nextCodePoint(UErrorCode &errorCode); 45 virtual UChar32 previousCodePoint(UErrorCode &errorCode); 48 virtual uint32_t handleNextCE32(UChar32 &c, UErrorCode &errorCode); 52 virtual void forwardNumCodePoints(int32_t num, UErrorCode &errorCode); 54 virtual void backwardNumCodePoints(int32_t num, UErrorCode &errorCode); 75 virtual UChar32 nextCodePoint(UErrorCode &errorCode); 77 virtual UChar32 previousCodePoint(UErrorCode &errorCode); 80 virtual uint32_t handleNextCE32(UChar32 &c, UErrorCode &errorCode); 84 virtual void forwardNumCodePoints(int32_t num, UErrorCode &errorCode); 86 virtual void backwardNumCodePoints(int32_t num, UErrorCode &errorCode); [all...] |
utf8collationiterator.h | 44 virtual UChar32 nextCodePoint(UErrorCode &errorCode); 46 virtual UChar32 previousCodePoint(UErrorCode &errorCode); 59 virtual uint32_t handleNextCE32(UChar32 &c, UErrorCode &errorCode); 65 virtual void forwardNumCodePoints(int32_t num, UErrorCode &errorCode); 67 virtual void backwardNumCodePoints(int32_t num, UErrorCode &errorCode); 91 virtual UChar32 nextCodePoint(UErrorCode &errorCode); 93 virtual UChar32 previousCodePoint(UErrorCode &errorCode); 96 virtual uint32_t handleNextCE32(UChar32 &c, UErrorCode &errorCode); 102 virtual void forwardNumCodePoints(int32_t num, UErrorCode &errorCode); 104 virtual void backwardNumCodePoints(int32_t num, 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...] |
collationruleparser.h | 78 const char *&errorReason, UErrorCode &errorCode) = 0; 84 const char *&errorReason, UErrorCode &errorCode) = 0; 87 UErrorCode &errorCode); 90 UErrorCode &errorCode); 98 const char *&errorReason, UErrorCode &errorCode) = 0; 106 CollationRuleParser(const CollationData *base, UErrorCode &errorCode); 128 UErrorCode &errorCode); 146 void parse(const UnicodeString &ruleString, UErrorCode &errorCode); 147 void parseRuleChain(UErrorCode &errorCode); 148 int32_t parseResetAndPosition(UErrorCode &errorCode); [all...] |
collationiterator.cpp | 35 CollationIterator::CEBuffer::ensureAppendCapacity(int32_t appCap, UErrorCode &errorCode) { 38 if(U_FAILURE(errorCode)) { return FALSE; } 48 errorCode = U_MEMORY_ALLOCATION_ERROR; 153 UErrorCode errorCode = U_ZERO_ERROR; 155 if(length > 0 && ceBuffer.ensureAppendCapacity(length, errorCode)) { 196 CollationIterator::fetchCEs(UErrorCode &errorCode) { 197 while(U_SUCCESS(errorCode) && nextCE(errorCode) != Collation::NO_CE) { 205 CollationIterator::handleNextCE32(UChar32 &c, UErrorCode &errorCode) { 206 c = nextCodePoint(errorCode); [all...] |
/external/chromium_org/third_party/icu/source/samples/udata/ |
writer.c | 62 UErrorCode errorCode=U_ZERO_ERROR; 75 U_COPYRIGHT_STRING, &errorCode); 82 if(U_FAILURE(errorCode)) { 83 fprintf(stderr, "Error: unable to create data memory, error %d\n", errorCode); 84 exit(errorCode); 95 dataLength=udata_finish(pData, &errorCode); 96 if(U_FAILURE(errorCode)) { 97 fprintf(stderr, "Error: error %d writing the output file\n", errorCode); 98 exit(errorCode);
|
/external/icu/icu4c/source/samples/udata/ |
writer.c | 62 UErrorCode errorCode=U_ZERO_ERROR; 75 U_COPYRIGHT_STRING, &errorCode); 82 if(U_FAILURE(errorCode)) { 83 fprintf(stderr, "Error: unable to create data memory, error %d\n", errorCode); 84 exit(errorCode); 95 dataLength=udata_finish(pData, &errorCode); 96 if(U_FAILURE(errorCode)) { 97 fprintf(stderr, "Error: error %d writing the output file\n", errorCode); 98 exit(errorCode);
|
/external/chromium_org/third_party/icu/source/test/iotest/ |
iotest.cpp | 197 UErrorCode errorCode; 222 errorCode=U_ZERO_ERROR; 223 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode); 224 if(U_SUCCESS(errorCode)) { 225 testData=dataModule->createTestData("printf", errorCode); 226 if(U_SUCCESS(errorCode)) { 227 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 228 if(U_FAILURE(errorCode)) { 230 i, u_errorName(errorCode)); 231 errorCode=U_ZERO_ERROR [all...] |
/external/icu/icu4c/source/test/iotest/ |
iotest.cpp | 197 UErrorCode errorCode; 222 errorCode=U_ZERO_ERROR; 223 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode); 224 if(U_SUCCESS(errorCode)) { 225 testData=dataModule->createTestData("printf", errorCode); 226 if(U_SUCCESS(errorCode)) { 227 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 228 if(U_FAILURE(errorCode)) { 230 i, u_errorName(errorCode)); 231 errorCode=U_ZERO_ERROR [all...] |
/external/chromium_org/third_party/icu/source/common/ |
messagepattern.cpp | 94 UErrorCode &errorCode); 95 UBool ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode); 111 UErrorCode &errorCode) { 112 if(U_SUCCESS(errorCode) && length>0) { 114 errorCode=U_MEMORY_ALLOCATION_ERROR; 123 MessagePatternList<T, stackCapacity>::ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode) { 124 if(U_FAILURE(errorCode)) { 130 errorCode=U_MEMORY_ALLOCATION_ERROR; 144 MessagePattern::MessagePattern(UErrorCode &errorCode) 149 init(errorCode); [all...] |
/external/icu/icu4c/source/common/ |
messagepattern.cpp | 94 UErrorCode &errorCode); 95 UBool ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode); 111 UErrorCode &errorCode) { 112 if(U_SUCCESS(errorCode) && length>0) { 114 errorCode=U_MEMORY_ALLOCATION_ERROR; 123 MessagePatternList<T, stackCapacity>::ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode) { 124 if(U_FAILURE(errorCode)) { 130 errorCode=U_MEMORY_ALLOCATION_ERROR; 144 MessagePattern::MessagePattern(UErrorCode &errorCode) 149 init(errorCode); [all...] |