/external/icu4c/test/cintltst/ |
H A D | usettest.c | 480 UErrorCode errorCode; local 488 errorCode=U_ZERO_ERROR; 489 set=uset_openPattern(pattern, -1, &errorCode); 490 if(U_FAILURE(errorCode)) { 491 log_data_err("uset_openPattern([:Cf:]) failed - %s (Are you missing data?)\n", u_errorName(errorCode)); 495 length=uset_serialize(set, buffer, LENGTHOF(buffer), &errorCode); 496 if(U_FAILURE(errorCode)) { 497 log_err("unable to uset_serialize([:Cf:]) - %s\n", u_errorName(errorCode)); 545 UErrorCode errorCode = U_ZERO_ERROR; local 548 return uset_openPattern(pattern, 15, &errorCode); [all...] |
H A D | bocu1tst.c | 884 UErrorCode errorCode; local 894 errorCode=U_ZERO_ERROR; 895 bocu1ICULength=ucnv_fromUChars(bocu1, bocu1ICU, DEFAULT_BUFFER_SIZE, text, length, &errorCode); 896 if(U_FAILURE(errorCode)) { 897 log_err("ucnv_fromUChars(BOCU-1, text(%d)[%d]) failed: %s\n", number, length, u_errorName(errorCode)); 913 roundtripICULength=ucnv_toUChars(bocu1, roundtripICU, DEFAULT_BUFFER_SIZE, bocu1ICU, bocu1ICULength, &errorCode); 914 if(U_FAILURE(errorCode)) { 915 log_err("ucnv_toUChars(BOCU-1, text(%d)[%d]) failed: %s\n", number, length, u_errorName(errorCode)); 982 UErrorCode errorCode; local 984 errorCode [all...] |
H A D | crestst.c | 473 UErrorCode errorCode; local 480 errorCode=U_ZERO_ERROR; 481 idna_rules=ures_openDirect(loadTestData(&errorCode), "idna_rules", &errorCode); 482 if(U_FAILURE(errorCode)) { 483 log_data_err("ures_openDirect(\"idna_rules\") failed: %s\n", u_errorName(errorCode)); 487 if(0!=uprv_strcmp("idna_rules", ures_getLocale(idna_rules, &errorCode))) { 490 errorCode=U_ZERO_ERROR; 493 item=ures_getByKey(idna_rules, "UnassignedSet", NULL, &errorCode); 494 if(U_FAILURE(errorCode)) { 653 UErrorCode errorCode; local [all...] |
H A D | custrtrn.c | 877 UErrorCode errorCode; local 880 errorCode=U_ZERO_ERROR; 882 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 3, &errorCode); 883 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=1) { 885 (long)destLength, u_errorName(errorCode)); 889 errorCode=U_ZERO_ERROR; 891 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 4, &errorCode); 892 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=2) { 894 (long)destLength, u_errorName(errorCode)); 898 errorCode 978 UErrorCode errorCode; local 1514 UErrorCode errorCode; local 1706 UErrorCode errorCode; local 1971 UErrorCode errorCode; local [all...] |
H A D | idnatest.c | 873 UErrorCode errorCode = U_ZERO_ERROR; local 875 &errorCode); 876 if(U_FAILURE(errorCode)) { 877 log_err_status(errorCode, "uidna_openUTS46() failed: %s\n", u_errorName(errorCode)); 883 dest16, LENGTHOF(dest16), &info, &errorCode); 884 if( U_FAILURE(errorCode) || length != 4 || 0 != u_memcmp(dest16, fass16, 5) || 887 log_err("uidna_labelToASCII() failed: %s\n", u_errorName(errorCode)); 889 errorCode = U_ZERO_ERROR; 891 dest16, LENGTHOF(dest16), &info, &errorCode); [all...] |
H A D | trie2test.c | 488 UErrorCode errorCode; local 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 549 UErrorCode errorCode; local 774 UErrorCode errorCode=U_ZERO_ERROR; local 805 UErrorCode errorCode; local 1083 UErrorCode errorCode=U_ZERO_ERROR; local 1109 UErrorCode errorCode; local 1159 UErrorCode errorCode; local 1212 UErrorCode errorCode; local 1292 UErrorCode errorCode; local 1342 UErrorCode errorCode; local [all...] |
H A D | ucnvseltst.c | 510 UErrorCode errorCode = U_ILLEGAL_ARGUMENT_ERROR; local 511 UPropsVectors *pv = upvec_open(100, &errorCode); 516 errorCode = U_ZERO_ERROR; 517 pv = upvec_open(-1, &errorCode); 518 if (pv != NULL || U_SUCCESS(errorCode)) { 522 errorCode = U_ZERO_ERROR; 523 pv = upvec_open(100, &errorCode); 524 if (pv == NULL || U_FAILURE(errorCode)) {
|
H A D | udatatst.c | 912 log_verbose("PASS: udata_open with errorCode != U_ZERO_ERROR failed as expected\n"); 939 log_verbose("PASS: udata_openChoice() with errorCode != U_ZERO_ERROR failed as expected\n"); 1358 UErrorCode errorCode; local 1365 errorCode = U_UNSUPPORTED_ERROR; 1366 length = swapFn(NULL, NULL, 0, buffer, &errorCode); 1367 if (length != 0 || errorCode != U_UNSUPPORTED_ERROR) { 1368 log_err("%s() did not fail as expected - %s\n", name, u_errorName(errorCode)); 1370 errorCode = U_ZERO_ERROR; 1371 length = swapFn(NULL, NULL, 0, buffer, &errorCode); 1372 if (length != 0 || errorCode ! 1581 UErrorCode errorCode = U_ZERO_ERROR; local [all...] |
/external/icu4c/test/intltest/ |
H A D | uts46test.cpp | 57 IcuTestErrorCode errorCode(*this, "init/createUTS46Instance()"); 60 errorCode); 64 errorCode); 65 if(errorCode.logDataIfFailureAndReset("createUTS46Instance()")) { 110 UErrorCode errorCode=U_ZERO_ERROR; local 115 trans->nameToASCII(input, result, info, errorCode); 116 if(U_FAILURE(errorCode) || info.hasErrors() || result!=expected) { 118 (long)info.getErrors(), result==expected, u_errorName(errorCode)); 120 errorCode=U_USELESS_COLLATOR_ERROR; 121 trans->nameToUnicode(input, result, info, errorCode); 151 nontrans->labelToUnicodeUTF8(StringPiece(NULL, 5), sink, info, errorCode); local 160 nontrans->nameToASCII_UTF8(StringPiece(), sink, info, errorCode); local 169 nontrans->nameToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode); local 178 trans->labelToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode); local [all...] |
/external/icu4c/test/iotest/ |
H A D | iotest.cpp | 196 UErrorCode errorCode; local 221 errorCode=U_ZERO_ERROR; 222 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode); 223 if(U_SUCCESS(errorCode)) { 224 testData=dataModule->createTestData("printf", errorCode); 225 if(U_SUCCESS(errorCode)) { 226 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 227 if(U_FAILURE(errorCode)) { 229 i, u_errorName(errorCode)); 230 errorCode 362 UErrorCode errorCode; local 564 UErrorCode errorCode; local 811 UErrorCode errorCode = U_ZERO_ERROR; local [all...] |
/external/icu4c/test/perf/utfperf/ |
H A D | utfperf.cpp | 125 errorCode(U_ZERO_ERROR) { 126 cnv=ucnv_open(testcase.charset, &errorCode); 127 if (U_FAILURE(errorCode)) { 128 fprintf(stderr, "error opening converter for \"%s\" - %s\n", testcase.charset, u_errorName(errorCode)); 130 ucnv_setFromUCallBack(cnv, fromUCallback, NULL, NULL, NULL, &errorCode); 134 if(U_SUCCESS(errorCode)) { 146 UErrorCode errorCode; member in class:Command 157 if (U_SUCCESS(t->errorCode)){ 224 if (U_SUCCESS(t->errorCode)){ 269 utf8Cnv=ucnv_open("UTF-8", &errorCode); [all...] |
/external/icu4c/tools/genbidi/ |
H A D | genbidi.c | 322 UErrorCode errorCode=U_ZERO_ERROR; local 399 pv=upvec_open(2, &errorCode); 403 parseBidiMirroring(filename, &errorCode); 408 parseBinariesFile(filename, basename, suffix, &propListBinaries, &errorCode); 410 parseSingleEnumFile(filename, basename, suffix, &jtSingleEnum, &errorCode); 412 parseSingleEnumFile(filename, basename, suffix, &jgSingleEnum, &errorCode); 416 parseDB(filename, &errorCode); 419 parseTwoFieldFile(filename, basename, "DerivedBidiClass", suffix, bidiClassLineFn, &errorCode); 422 if(U_SUCCESS(errorCode)) { 428 return errorCode; 512 UErrorCode errorCode; local [all...] |
/external/icu4c/tools/genprops/ |
H A D | props2.c | 412 UErrorCode errorCode=U_ZERO_ERROR; local 413 pv=upvec_open(UPROPS_VECTOR_WORDS, &errorCode); 414 if(U_FAILURE(errorCode)) { 415 fprintf(stderr, "error: upvec_open() failed - %s\n", u_errorName(errorCode)); 416 exit(errorCode); 711 UErrorCode errorCode; local 716 errorCode=U_ZERO_ERROR; 717 length=utrie_serialize(newTrie, p, capacity, NULL, TRUE, &errorCode); 718 if(U_FAILURE(errorCode)) { 719 fprintf(stderr, "genprops error: unable to serialize trie for additional properties: %s\n", u_errorName(errorCode)); [all...] |
/external/icu4c/tools/gensprep/ |
H A D | store.c | 586 UErrorCode errorCode=U_ZERO_ERROR; local 601 sprepTrieSize=utrie_serialize(sprepTrie, sprepTrieBlock, sizeof(sprepTrieBlock), getFoldedValue, TRUE, &errorCode); 602 if(U_FAILURE(errorCode)) { 603 fprintf(stderr, "error: utrie_serialize(sprep trie) failed, %s\n", u_errorName(errorCode)); 604 exit(errorCode); 622 haveCopyright ? U_COPYRIGHT_STRING : NULL, &errorCode); 623 if(U_FAILURE(errorCode)) { 624 fprintf(stderr, "gensprep: unable to create the output file, error %d\n", errorCode); 625 exit(errorCode); 641 dataLength=udata_finish(pData, &errorCode); [all...] |
/external/icu4c/tools/icuswap/ |
H A D | icuswap.cpp | 114 UErrorCode errorCode; local 206 errorCode=U_ZERO_ERROR; 207 ds=udata_openSwapperForInputData(data, length, outIsBigEndian, outCharset, &errorCode); 208 if(U_FAILURE(errorCode)) { 210 pname, argv[1], u_errorName(errorCode)); 234 length=udata_swapPackage(argv[1], argv[2], ds, data, length, data, &errorCode); 236 if(U_FAILURE(errorCode)) { 238 pname, argv[1], u_errorName(errorCode)); 244 length=udata_swap(ds, data, length, data, &errorCode); 246 if(U_FAILURE(errorCode)) { [all...] |
/external/icu4c/tools/toolutil/ |
H A D | xmlparser.cpp | 152 UXMLParser::createParser(UErrorCode &errorCode) { argument 153 if (U_FAILURE(errorCode)) { 156 return new UXMLParser(errorCode); 163 UXMLParser::parseFile(const char *filename, UErrorCode &errorCode) { argument 173 if(U_FAILURE(errorCode)) { 179 errorCode=U_FILE_ACCESS_ERROR; 198 charset=ucnv_detectUnicodeSignature(bytes, bytesLength, NULL, &errorCode); 199 if(U_SUCCESS(errorCode) && charset!=NULL) { 201 cnv=ucnv_open(charset, &errorCode); 204 cnv=ucnv_open("ISO-8859-1", &errorCode); 652 intern(const UnicodeString &s, UErrorCode &errorCode) argument 679 UXMLElement(const UXMLParser *parser, const UnicodeString *name, UErrorCode &errorCode) argument [all...] |
/external/webkit/Source/WebCore/platform/network/ |
H A D | BlobResourceHandle.cpp | 520 void BlobResourceHandle::failed(int errorCode) argument 525 notifyFail(errorCode); 590 void BlobResourceHandle::notifyFail(int errorCode) argument 593 client()->didFail(this, ResourceError(String(), errorCode, firstRequest().url(), String()));
|
/external/webkit/Source/WebCore/platform/network/cf/ |
H A D | SocketStreamHandleCFNet.cpp | 599 CFIndex errorCode = CFErrorGetCode(error); local 604 const char* descriptionOSStatus = GetMacOSStatusCommentString(static_cast<OSStatus>(errorCode)); 606 description = makeString("OSStatus Error ", String::number(errorCode), ": ", descriptionOSStatus); 615 m_client->didFail(this, SocketStreamError(static_cast<int>(errorCode), m_url.string(), description));
|
/external/expat/tests/ |
H A D | runtests.c | 71 _expect_failure(char *text, enum XML_Error errorCode, char *errorMessage, argument 78 if (XML_GetErrorCode(parser) != errorCode) 82 #define expect_failure(text, errorCode, errorMessage) \ 83 _expect_failure((text), (errorCode), (errorMessage), \
|
/external/icu4c/common/ |
H A D | locdispnames.cpp | 54 UErrorCode errorCode=U_ZERO_ERROR; local 65 &errorCode); 66 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0); 68 if(errorCode==U_BUFFER_OVERFLOW_ERROR) { 74 errorCode=U_ZERO_ERROR; 77 &errorCode); 78 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0); 94 UErrorCode errorCode=U_ZERO_ERROR; local 105 &errorCode); 106 result.releaseBuffer(U_SUCCESS(errorCode) 134 UErrorCode errorCode=U_ZERO_ERROR; local 174 UErrorCode errorCode=U_ZERO_ERROR; local 214 UErrorCode errorCode=U_ZERO_ERROR; local [all...] |
H A D | normalizer2.cpp | 41 UErrorCode &errorCode) const { 42 if(U_SUCCESS(errorCode)) { 46 errorCode=U_ILLEGAL_ARGUMENT_ERROR; 54 UErrorCode &errorCode) const { 55 if(U_SUCCESS(errorCode)) { 59 errorCode=U_ILLEGAL_ARGUMENT_ERROR; 67 UErrorCode &errorCode) const { 68 if(U_SUCCESS(errorCode)) { 72 errorCode=U_ILLEGAL_ARGUMENT_ERROR; 108 UErrorCode &errorCode) cons 364 createInstance(const char *packageName, const char *name, UErrorCode &errorCode) argument 387 getInstance(UErrorCode &errorCode) argument 391 createInstance(const void *context, UErrorCode &errorCode) argument 406 getInstance(UErrorCode &errorCode) argument 410 createInstance(const void *, UErrorCode &errorCode) argument 442 getNFCInstance(UErrorCode &errorCode) argument 447 getNFDInstance(UErrorCode &errorCode) argument 452 getFCDInstance(UErrorCode &errorCode) argument 462 getFCCInstance(UErrorCode &errorCode) argument 467 getNFKCInstance(UErrorCode &errorCode) argument 473 getNFKDInstance(UErrorCode &errorCode) argument 479 getNFKC_CFInstance(UErrorCode &errorCode) argument 485 getNoopInstance(UErrorCode &errorCode) argument 490 getInstance(UNormalizationMode mode, UErrorCode &errorCode) argument 511 getNFCImpl(UErrorCode &errorCode) argument 518 getNFKCImpl(UErrorCode &errorCode) argument 525 getNFKC_CFImpl(UErrorCode &errorCode) argument 537 getFCDTrie(UErrorCode &errorCode) argument 548 getInstance(const char *packageName, const char *name, UNormalization2Mode mode, UErrorCode &errorCode) argument [all...] |
H A D | unisetspan.cpp | 165 UErrorCode errorCode=U_ZERO_ERROR; local 167 u_strToUTF8(NULL, 0, &length8, s, length, &errorCode); 168 if(U_SUCCESS(errorCode) || errorCode==U_BUFFER_OVERFLOW_ERROR) { 180 UErrorCode errorCode=U_ZERO_ERROR; local 182 u_strToUTF8((char *)t, capacity, &length8, s, length, &errorCode); 183 if(U_SUCCESS(errorCode)) {
|
H A D | usprep.cpp | 234 UErrorCode* errorCode) { 243 if(errorCode==NULL || U_FAILURE(*errorCode)) { 249 dataMemory=udata_openChoice(path, type, name, isSPrepAcceptable, NULL, errorCode); 250 if(U_FAILURE(*errorCode)) { 256 utrie_unserialize(&_sprepTrie, pb, p[_SPREP_INDEX_TRIE_SIZE], errorCode); 260 if(U_FAILURE(*errorCode)) { 286 if(U_FAILURE(*errorCode)){ 294 *errorCode = U_INVALID_FORMAT_ERROR; 230 loadData(UStringPrepProfile* profile, const char* path, const char* name, const char* type, UErrorCode* errorCode) argument
|
H A D | uts46.cpp | 69 IDNAInfo &info, UErrorCode &errorCode) const { 70 if(U_SUCCESS(errorCode)) { 73 info, errorCode).toUTF8(dest); 79 IDNAInfo &info, UErrorCode &errorCode) const { 80 if(U_SUCCESS(errorCode)) { 83 info, errorCode).toUTF8(dest); 89 IDNAInfo &info, UErrorCode &errorCode) const { 90 if(U_SUCCESS(errorCode)) { 93 info, errorCode).toUTF8(dest); 99 IDNAInfo &info, UErrorCode &errorCode) cons 195 createUTS46Instance(uint32_t options, UErrorCode &errorCode) argument 212 UTS46(uint32_t opt, UErrorCode &errorCode) argument 507 destString, info, errorCode); local [all...] |
/external/icu4c/i18n/ |
H A D | udat.cpp | 493 // TODO: also needs an errorCode. 625 const UChar *value, int32_t valueLength, UErrorCode &errorCode) 629 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; 631 errorCode=U_ILLEGAL_ARGUMENT_ERROR; 640 const UChar *value, int32_t valueLength, UErrorCode &errorCode) 642 setSymbol(syms->fEras, syms->fErasCount, index, value, valueLength, errorCode); 647 const UChar *value, int32_t valueLength, UErrorCode &errorCode) 649 setSymbol(syms->fEraNames, syms->fEraNamesCount, index, value, valueLength, errorCode); 654 const UChar *value, int32_t valueLength, UErrorCode &errorCode) 656 setSymbol(syms->fMonths, syms->fMonthsCount, index, value, valueLength, errorCode); 624 setSymbol(UnicodeString *array, int32_t count, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 639 setEra(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 646 setEraName(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 653 setMonth(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 660 setShortMonth(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 667 setNarrowMonth(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 674 setStandaloneMonth(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 681 setStandaloneShortMonth(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 688 setStandaloneNarrowMonth(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 695 setWeekday(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 702 setShortWeekday(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 709 setNarrowWeekday(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 716 setStandaloneWeekday(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 723 setStandaloneShortWeekday(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 730 setStandaloneNarrowWeekday(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 737 setQuarter(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 744 setShortQuarter(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 751 setStandaloneQuarter(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 758 setStandaloneShortQuarter(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 765 setAmPm(DateFormatSymbols *syms, int32_t index, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument 772 setLocalPatternChars(DateFormatSymbols *syms, const UChar *value, int32_t valueLength, UErrorCode &errorCode) argument [all...] |