/external/icu/icu4c/source/common/ |
H A D | ucharstrieiterator.cpp | 23 UErrorCode &errorCode) 29 if(U_FAILURE(errorCode)) { 38 stack_=new UVector32(errorCode); 40 errorCode=U_MEMORY_ALLOCATION_ERROR; 45 UErrorCode &errorCode) 51 if(U_FAILURE(errorCode)) { 54 stack_=new UVector32(errorCode); 55 if(U_FAILURE(errorCode)) { 59 errorCode=U_MEMORY_ALLOCATION_ERROR; 99 UCharsTrie::Iterator::next(UErrorCode &errorCode) { argument 22 Iterator(const UChar *trieUChars, int32_t maxStringLength, UErrorCode &errorCode) argument 44 Iterator(const UCharsTrie &trie, int32_t maxStringLength, UErrorCode &errorCode) argument 184 branchNext(const UChar *pos, int32_t length, UErrorCode &errorCode) argument [all...] |
H A D | uts46.cpp | 72 IDNAInfo &info, UErrorCode &errorCode) const { 73 if(U_SUCCESS(errorCode)) { 76 info, errorCode).toUTF8(dest); 82 IDNAInfo &info, UErrorCode &errorCode) const { 83 if(U_SUCCESS(errorCode)) { 86 info, errorCode).toUTF8(dest); 92 IDNAInfo &info, UErrorCode &errorCode) const { 93 if(U_SUCCESS(errorCode)) { 96 info, errorCode).toUTF8(dest); 102 IDNAInfo &info, UErrorCode &errorCode) cons 199 createUTS46Instance(uint32_t options, UErrorCode &errorCode) argument 216 UTS46(uint32_t opt, UErrorCode &errorCode) argument 503 destString, info, errorCode); local 1196 UErrorCode errorCode=U_ZERO_ERROR; local 1216 UErrorCode errorCode=U_ZERO_ERROR; local 1257 UErrorCode errorCode=U_ZERO_ERROR; local [all...] |
H A D | bytestriebuilder.cpp | 38 void setTo(const StringPiece &s, int32_t val, CharString &strings, UErrorCode &errorCode); 90 CharString &strings, UErrorCode &errorCode) { 91 if(U_FAILURE(errorCode)) { 97 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; 103 strings.append((char)(length>>8), errorCode); 105 strings.append((char)length, errorCode); 108 strings.append(s, errorCode); 127 BytesTrieBuilder::BytesTrieBuilder(UErrorCode &errorCode) argument 130 if(U_FAILURE(errorCode)) { 135 errorCode 89 setTo(const StringPiece &s, int32_t val, CharString &strings, UErrorCode &errorCode) argument 146 add(const StringPiece &s, int32_t value, UErrorCode &errorCode) argument 191 build(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument 207 buildStringPiece(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument 217 buildBytes(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument [all...] |
H A D | ucharstriebuilder.cpp | 38 void setTo(const UnicodeString &s, int32_t val, UnicodeString &strings, UErrorCode &errorCode); 65 UnicodeString &strings, UErrorCode &errorCode) { 66 if(U_FAILURE(errorCode)) { 72 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; 86 UCharsTrieBuilder::UCharsTrieBuilder(UErrorCode & /*errorCode*/) 96 UCharsTrieBuilder::add(const UnicodeString &s, int32_t value, UErrorCode &errorCode) { argument 97 if(U_FAILURE(errorCode)) { 102 errorCode=U_NO_WRITE_PERMISSION; 114 errorCode=U_MEMORY_ALLOCATION_ERROR; 124 elements[elementsLength++].setTo(s, value, strings, errorCode); 64 setTo(const UnicodeString &s, int32_t val, UnicodeString &strings, UErrorCode &errorCode) argument 144 build(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument 160 buildUnicodeString(UStringTrieBuildOption buildOption, UnicodeString &result, UErrorCode &errorCode) argument 170 buildUChars(UStringTrieBuildOption buildOption, UErrorCode &errorCode) argument [all...] |
H A D | unistr_case.cpp | 65 UErrorCode errorCode=U_ZERO_ERROR; local 67 options|U_COMPARE_IGNORE_CASE, &errorCode); 125 UErrorCode errorCode; local 128 errorCode = U_ZERO_ERROR; 130 oldArray, oldLength, &errorCode); 132 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE)); 137 if(U_FAILURE(errorCode)) {
|
H A D | stringtriebuilder.cpp | 44 StringTrieBuilder::createCompactBuilder(int32_t sizeGuess, UErrorCode &errorCode) { argument 45 if(U_FAILURE(errorCode)) { 49 sizeGuess, &errorCode); 50 if(U_SUCCESS(errorCode)) { 52 errorCode=U_MEMORY_ALLOCATION_ERROR; 67 UErrorCode &errorCode) { 71 createCompactBuilder(2*elementsLength, errorCode); 72 Node *root=makeNode(0, elementsLength, 0, errorCode); 73 if(U_SUCCESS(errorCode)) { 206 StringTrieBuilder::makeNode(int32_t start, int32_t limit, int32_t unitIndex, UErrorCode &errorCode) { argument 66 build(UStringTrieBuildOption buildOption, int32_t elementsLength, UErrorCode &errorCode) argument 258 makeBranchSubNode(int32_t start, int32_t limit, int32_t unitIndex, int32_t length, UErrorCode &errorCode) argument 317 registerNode(Node *newNode, UErrorCode &errorCode) argument 346 registerFinalValue(int32_t value, UErrorCode &errorCode) argument [all...] |
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...] |
/external/mesa3d/src/glx/ |
H A D | glx_error.h | 34 void __glXSendError(Display * dpy, int_fast8_t errorCode,
|
/external/icu/icu4c/source/test/intltest/ |
H A D | uts46test.cpp | 56 IcuTestErrorCode errorCode(*this, "init/createUTS46Instance()"); 60 trans=IDNA::createUTS46Instance(commonOptions, 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...] |
H A D | tstnorm.cpp | 801 UErrorCode errorCode; local 820 errorCode=U_ZERO_ERROR; 822 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 823 if(U_FAILURE(errorCode) || /*result!=r ||*/ result!=expect) { 825 UnicodeString(u_errorName(errorCode))+", result==expect: expected: "+ 834 errorCode=U_UNEXPECTED_TOKEN; 835 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 836 if(errorCode!=U_UNEXPECTED_TOKEN || result!=r || !result.isBogus()) { 841 errorCode=U_ZERO_ERROR; 842 r=Normalizer::concatenate(left, right, result, mode, 0, errorCode); 850 ref_norm_compare(const UnicodeString &s1, const UnicodeString &s2, uint32_t options, UErrorCode &errorCode) argument 877 _norm_compare(const UnicodeString &s1, const UnicodeString &s2, uint32_t options, UErrorCode &errorCode) argument 1069 UErrorCode errorCode; local 1220 UErrorCode errorCode; local 1316 initExpectedSkippables(UnicodeSet skipSets[UNORM_MODE_COUNT], UErrorCode &errorCode) argument 1486 UErrorCode errorCode = U_ZERO_ERROR; local [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | collationdata.cpp | 53 CollationData::getSingleCE(UChar32 c, UErrorCode &errorCode) const { 54 if(U_FAILURE(errorCode)) { return 0; } 72 errorCode = U_UNSUPPORTED_ERROR; 76 errorCode = U_INTERNAL_PROGRAM_ERROR; 87 errorCode = U_UNSUPPORTED_ERROR; 94 errorCode = U_UNSUPPORTED_ERROR; 174 UErrorCode &errorCode) const { 175 if(U_FAILURE(errorCode)) { return 0; } 183 errorCode = U_BUFFER_OVERFLOW_ERROR; 198 errorCode [all...] |
H A D | collationcompare.h | 30 UErrorCode &errorCode);
|
H A D | collationtailoring.cpp | 68 CollationTailoring::ensureOwnedData(UErrorCode &errorCode) { argument 69 if(U_FAILURE(errorCode)) { return FALSE; } 71 const Normalizer2Impl *nfcImpl = Normalizer2Factory::getNFCImpl(errorCode); 72 if(U_FAILURE(errorCode)) { return FALSE; } 75 errorCode = U_MEMORY_ALLOCATION_ERROR;
|
H A D | alphaindex.cpp | 64 UErrorCode &errorCode) { 65 if (U_FAILURE(errorCode)) { return NULL; } 71 errorCode = U_MEMORY_ALLOCATION_ERROR; 101 UErrorCode errorCode = U_ZERO_ERROR; local 102 UCollationResult cmp = coll.compare(s, *si, errorCode); 143 UErrorCode &errorCode) { 151 collatorPrimaryOnly.compare(name, bucket->lowerBoundary_, errorCode); 190 const UnicodeString &name, UErrorCode &errorCode) const { 191 return buckets_->getBucketIndex(name, *collatorPrimaryOnly_, errorCode); 253 AlphabeticIndex::ImmutableIndex *AlphabeticIndex::buildImmutableIndex(UErrorCode &errorCode) { argument 63 ownedString(const UnicodeString &s, LocalPointer<UnicodeString> &owned, UErrorCode &errorCode) argument 142 getBucketIndex(const UnicodeString &name, const Collator &collatorPrimaryOnly, UErrorCode &errorCode) argument 394 hasMultiplePrimaryWeights( const RuleBasedCollator &coll, uint32_t variableTop, const UnicodeString &s, UVector64 &ces, UErrorCode &errorCode) argument 629 initBuckets(UErrorCode &errorCode) argument 763 addChineseIndexCharacters(UErrorCode &errorCode) argument 969 UErrorCode errorCode = U_ZERO_ERROR; local 983 UErrorCode errorCode = U_ZERO_ERROR; local [all...] |
H A D | collationfastlatinbuilder.cpp | 87 CollationFastLatinBuilder::CollationFastLatinBuilder(UErrorCode &errorCode) argument 89 contractionCEs(errorCode), uniqueCEs(errorCode), 101 CollationFastLatinBuilder::forData(const CollationData &data, UErrorCode &errorCode) { argument 102 if(U_FAILURE(errorCode)) { return FALSE; } 104 errorCode = U_INVALID_STATE_ERROR; 107 if(!loadGroups(data, errorCode)) { return FALSE; } 111 getCEs(data, errorCode); 112 if(!encodeUniqueCEs(errorCode)) { return FALSE; } 118 getCEs(data, errorCode); 137 loadGroups(const CollationData &data, UErrorCode &errorCode) argument 203 getCEs(const CollationData &data, UErrorCode &errorCode) argument 244 getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32, UErrorCode &errorCode) argument 340 getCEsFromContractionCE32(const CollationData &data, uint32_t ce32, UErrorCode &errorCode) argument 399 addContractionEntry(int32_t x, int64_t cce0, int64_t cce1, UErrorCode &errorCode) argument 409 addUniqueCE(int64_t ce, UErrorCode &errorCode) argument 428 encodeUniqueCEs(UErrorCode &errorCode) argument 563 encodeCharCEs(UErrorCode &errorCode) argument 592 encodeContractions(UErrorCode &errorCode) argument [all...] |
H A D | collationdatawriter.cpp | 33 RuleBasedCollator::cloneRuleData(int32_t &length, UErrorCode &errorCode) const { 34 if(U_FAILURE(errorCode)) { return NULL; } 37 errorCode = U_MEMORY_ALLOCATION_ERROR; 40 length = cloneBinary(buffer.getAlias(), 20000, errorCode); 41 if(errorCode == U_BUFFER_OVERFLOW_ERROR) { 43 errorCode = U_MEMORY_ALLOCATION_ERROR; 46 errorCode = U_ZERO_ERROR; 47 length = cloneBinary(buffer.getAlias(), length, errorCode); 49 if(U_FAILURE(errorCode)) { return NULL; } 54 RuleBasedCollator::cloneBinary(uint8_t *dest, int32_t capacity, UErrorCode &errorCode) cons 76 writeBase(const CollationData &data, const CollationSettings &settings, const void *rootElements, int32_t rootElementsLength, int32_t indexes[], uint8_t *dest, int32_t capacity, UErrorCode &errorCode) argument 87 writeTailoring(const CollationTailoring &t, const CollationSettings &settings, int32_t indexes[], uint8_t *dest, int32_t capacity, UErrorCode &errorCode) argument 97 write(UBool isBase, const UVersionInfo dataVersion, const CollationData &data, const CollationSettings &settings, const void *rootElements, int32_t rootElementsLength, int32_t indexes[], uint8_t *dest, int32_t capacity, UErrorCode &errorCode) argument [all...] |
H A D | collationsettings.h | 127 const uint8_t *table, UErrorCode &errorCode); 129 UErrorCode &errorCode); 130 void copyReorderingFrom(const CollationSettings &other, UErrorCode &errorCode); 143 void setStrength(int32_t value, int32_t defaultOptions, UErrorCode &errorCode); 155 int32_t defaultOptions, UErrorCode &errorCode); 161 void setCaseFirst(UColAttributeValue value, int32_t defaultOptions, UErrorCode &errorCode); 170 int32_t defaultOptions, UErrorCode &errorCode); 176 void setMaxVariable(int32_t value, int32_t defaultOptions, UErrorCode &errorCode); 265 const uint8_t *table, UErrorCode &errorCode);
|
H A D | nortrans.cpp | 62 UErrorCode errorCode = U_ZERO_ERROR; local 63 const Normalizer2 *norm2 = Normalizer2::getInstance(NULL, name, mode, errorCode); 64 if(U_SUCCESS(errorCode)) { 134 UErrorCode errorCode = U_ZERO_ERROR; local 154 fNorm2.normalize(segment, normalized, errorCode); 155 if(U_FAILURE(errorCode)) {
|
/external/icu/icu4c/source/tools/gennorm2/ |
H A D | gennorm2.cpp | 130 IcuToolErrorCode errorCode("gennorm2/main()"); 138 udata_createDummy(NULL, NULL, options[OUTPUT_FILENAME].value, errorCode); 145 LocalPointer<Normalizer2DataBuilder> builder(new Normalizer2DataBuilder(errorCode), errorCode); 146 errorCode.assertSuccess(); 157 CharString filename(options[SOURCEDIR].value, errorCode); 163 filename.append(U_FILE_SEP_CHAR, errorCode); 169 filename.append(argv[i], errorCode); 186 return errorCode.get(); 194 IcuToolErrorCode errorCode("gennorm [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/ |
H A D | SetDefaultStratumTest.java | 82 short errorCode = checkedReply.getErrorCode(); 83 if ( errorCode != JDWPConstants.Error.NONE ) { 84 if ( errorCode != JDWPConstants.Error.NOT_IMPLEMENTED ) { 86 + " returns unexpected ERROR = " + errorCode 87 + "(" + JDWPConstants.Error.getName(errorCode) + ")");
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | idnatest.c | 872 UErrorCode errorCode = U_ZERO_ERROR; local 874 &errorCode); 875 if(U_FAILURE(errorCode)) { 876 log_err_status(errorCode, "uidna_openUTS46() failed: %s\n", u_errorName(errorCode)); 882 dest16, UPRV_LENGTHOF(dest16), &info, &errorCode); 883 if( U_FAILURE(errorCode) || length != 4 || 0 != u_memcmp(dest16, fass16, 5) || 886 log_err("uidna_labelToASCII() failed: %s\n", u_errorName(errorCode)); 888 errorCode = U_ZERO_ERROR; 890 dest16, UPRV_LENGTHOF(dest16), &info, &errorCode); [all...] |
H A D | ccapitst.c | 1892 UErrorCode errorCode; local 1899 errorCode=U_ZERO_ERROR; 1900 cnv=ucnv_openCCSID(ccsid, UCNV_IBM, &errorCode); 1901 if(U_FAILURE(errorCode)) { 1902 log_data_err("error: ucnv_openCCSID(%ld) failed (%s)\n", ccsid, u_errorName(errorCode)); 1906 if(ccsid!=ucnv_getCCSID(cnv, &errorCode)) { 1907 log_err("error: ucnv_getCCSID(ucnv_openCCSID(%ld))=%ld\n", ccsid, ucnv_getCCSID(cnv, &errorCode)); 1911 if(ccsid != 1392 && UCNV_IBM!=ucnv_getPlatform(cnv, &errorCode)) { 1912 log_err("error: ucnv_getPlatform(ucnv_openCCSID(%ld))=%ld!=UCNV_IBM\n", ccsid, ucnv_getPlatform(cnv, &errorCode)); 2152 UErrorCode errorCode; local 2270 UErrorCode errorCode; local 2459 UErrorCode errorCode; local 2514 UErrorCode errorCode; local 2570 UErrorCode errorCode; local 2623 UErrorCode errorCode; local 2666 UErrorCode errorCode; local 2769 UErrorCode errorCode; local 3051 UErrorCode errorCode; local 3510 UErrorCode errorCode; local 3596 UErrorCode errorCode; local 3658 UErrorCode errorCode = U_ZERO_ERROR; local 3701 UErrorCode errorCode = U_ZERO_ERROR; local [all...] |
/external/icu/icu4c/source/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...] |
H A D | package.cpp | 283 UErrorCode errorCode; local 288 errorCode=U_ZERO_ERROR; 293 uprv_mkdir(filename, &errorCode); 294 if(U_FAILURE(errorCode)) { 308 UErrorCode errorCode; local 353 errorCode=U_ZERO_ERROR; 354 typeEnum=getTypeEnumForInputData(data, length, &errorCode); 355 if(typeEnum<0 || U_FAILURE(errorCode)) { 448 UErrorCode errorCode; local 468 errorCode 694 UErrorCode errorCode; local 1146 UErrorCode errorCode=U_ZERO_ERROR; local 1277 UErrorCode errorCode=U_ZERO_ERROR; local [all...] |
/external/icu/icu4c/source/test/perf/utrie2perf/ |
H A D | utrie2perf.cpp | 121 UErrorCode errorCode=U_ZERO_ERROR; local 123 UNORM_FCD, &errorCode); 124 if(U_FAILURE(errorCode)) { 126 u_errorName(errorCode)); 141 UErrorCode errorCode=U_ZERO_ERROR; 143 UNORM_FCD_ALWAYS_GET, &errorCode); 144 if(U_FAILURE(errorCode)) { 146 u_errorName(errorCode)); 174 UErrorCode errorCode=U_ZERO_ERROR; local 178 &errorCode); 189 UErrorCode errorCode=U_ZERO_ERROR; local [all...] |