/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetUTF16.java | 109 toUBytesArray[toULength++] = source.get(); in decodeLoop() 111 if (toULength == 1) { in decodeLoop() 114 && toUBytesArray[toULength - 1] == BOM_BE[toULength - 1]) { in decodeLoop() 118 && toUBytesArray[toULength - 1] == BOM_LE[toULength - 1]) { in decodeLoop() 132 …sion == 1 && (toUBytesArray[toULength - 1] == actualBOM[toULength - 2] && toUBytesArray[toULength … in decodeLoop() 134 …sion == 1 && (toUBytesArray[toULength - 1] == actualBOM[toULength - 1] && toUBytesArray[toULength … in decodeLoop() 137 toULength = 0; in decodeLoop() 139 … } else if (isEndianSpecified || toUBytesArray[toULength - 1] != actualBOM[toULength - 1]) { in decodeLoop() 144 } else if (toULength == SIGNATURE_LENGTH) { in decodeLoop() 147 toULength = 0; in decodeLoop() [all …]
|
D | CharsetUTF32.java | 91 toUBytesArray[toULength++] = source.get(); in decodeLoop() 93 if (toULength == 1) { in decodeLoop() 96 && toUBytesArray[toULength - 1] == BOM_BE[toULength - 1]) { in decodeLoop() 100 && toUBytesArray[toULength - 1] == BOM_LE[toULength - 1]) { in decodeLoop() 109 } else if (toUBytesArray[toULength - 1] != actualBOM[toULength - 1]) { in decodeLoop() 114 } else if (toULength == SIGNATURE_LENGTH) { in decodeLoop() 117 toULength = 0; in decodeLoop() 129 while (toULength < 4) { in decodeLoop() 132 toUBytesArray[toULength++] = source.get(); in decodeLoop() 144 toULength = 0; in decodeLoop() [all …]
|
D | CharsetDecoderICU.java | 34 int toULength; field in CharsetDecoderICU 212 toULength = 0; in implReset() 338 if (!flush && !source.hasRemaining() && toULength == 0 && preToULength >= 0) { in decode() 462 … converterSawEndOfInput= (cr.isUnderflow() && flush && source.remaining()==0 && toULength == 0); in toUnicodeWithCallback() 554 } else if(flush && toULength>0) { in toUnicodeWithCallback() 561 cr = CoderResult.malformedForLength(toULength); in toUnicodeWithCallback() 619 errorInputLength=invalidCharLength=toULength; in toUnicodeWithCallback() 625 toULength=0; in toUnicodeWithCallback() 653 } else if(toULength > 0){ in toUCountPending() 654 return toULength; in toUCountPending()
|
D | CharsetHZ.java | 106 this.toULength = 2; in decodeLoop() 127 toULength = 1; in decodeLoop() 132 toULength = 2; in decodeLoop() 205 toULength = 2; in decodeLoop() 208 toULength = 1; in decodeLoop() 211 return CoderResult.unmappableForLength(toULength); in decodeLoop() 213 return CoderResult.malformedForLength(toULength); in decodeLoop()
|
D | CharsetCompoundText.java | 528 if (this.toULength > 0) { in decodeLoop() 535 tmpState = findStateFromEscSeq(source, this.toUBytesArray, this.toULength); in decodeLoop() 538 this.toUBytesArray[this.toULength++] = source.get(); in decodeLoop() 544 if (this.toULength == 0) { in decodeLoop() 550 this.toULength = 0; in decodeLoop() 576 decoder.toULength = this.toULength; in decodeLoop() 580 this.toULength = decoder.toULength; in decodeLoop() 581 decoder.toULength = 0; in decodeLoop()
|
D | CharsetUTF8.java | 84 bytesSoFar = toULength; in decodeLoop() 88 toULength = 0; in decodeLoop() 98 toULength = bytesSoFar; in decodeLoop() 106 toULength = bytesSoFar; in decodeLoop() 175 toULength = bytesSoFar; in decodeLoop() 206 bytesSoFar = toULength; in decodeLoop() 210 toULength = 0; in decodeLoop() 220 toULength = bytesSoFar; in decodeLoop() 228 toULength = bytesSoFar; in decodeLoop() 301 toULength = bytesSoFar; in decodeLoop()
|
D | CharsetISO2022.java | 534 int initialToULength = decoder.toULength; in changeState_2022() 542 decoder.toUBytesArray[decoder.toULength++] = c; in changeState_2022() 685 decoder.toULength = 0; in changeState_2022() 687 if (decoder.toULength > 1) { in changeState_2022() 700 int backOutDistance = decoder.toULength - 1; in changeState_2022() 701 int bytesFromThisBuffer = decoder.toULength - initialToULength; in changeState_2022() 715 decoder.toULength = 1; in changeState_2022() 767 cnv.toULength = 2; in toUnicodeCallback() 770 cnv.toULength = 1; in toUnicodeCallback() 861 } else if (toULength == 1 && source.hasRemaining() && target.hasRemaining()) { in decodeLoop() [all …]
|
D | CharsetSCSU.java | 213 toULength = 0; in implReset() 404 toULength =1; in singleByteMode() 411 toULength = 1; in singleByteMode() 416 toULength = 2; in singleByteMode() 474 toULength = 2; in singleByteMode() 487 toULength =2; in singleByteMode() 499 toULength =2; in singleByteMode() 524 toULength = 1; in singleByteMode() 536 toULength = 1; in singleByteMode() 543 toULength = 1; in singleByteMode() [all …]
|
D | CharsetLMBCS.java | 767 if (toULength > 0) { /* reassemble char from previous call */ in decodeLoop() 768 int size_old = toULength; in decodeLoop() 791 toULength = savebytes; in decodeLoop() 800 toULength = 0; in decodeLoop() 826 toULength = savebytes; in decodeLoop()
|
D | CharsetUTF7.java | 211 byteIndex=toULength; in decodeLoop() 476 toULength=byteIndex; in decodeLoop()
|
D | CharsetBOCU1.java | 812 byteIndex = toULength; in decodeLoop() 1047 toULength=byteIndex; in endLoop()
|
/external/icu/icu4c/source/common/ |
D | ucnv_u8.cpp | 79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 82 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 83 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 125 cnv->toULength = (int8_t) i; in ucnv_toUnicode_UTF8() 163 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8() 197 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 200 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 201 cnv->toULength = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 241 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 281 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all …]
|
D | ucnv_u32.cpp | 58 if (args->converter->toULength > 0 && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE() 59 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE() 60 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE() 80 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE() 109 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_BE() 139 if (args->converter->toULength > 0 && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 140 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 141 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 161 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 193 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() [all …]
|
D | ucnv_u16.cpp | 299 cnv->toULength=1; in _UTF16BEToUnicodeWithOffsets() 302 if((count=cnv->toULength)!=0) { in _UTF16BEToUnicodeWithOffsets() 365 cnv->toULength=2; in _UTF16BEToUnicodeWithOffsets() 375 cnv->toULength=(int8_t)count; in _UTF16BEToUnicodeWithOffsets() 446 cnv->toULength=2; in _UTF16BEToUnicodeWithOffsets() 460 cnv->toULength=0; in _UTF16BEToUnicodeWithOffsets() 482 cnv->toUBytes[cnv->toULength++]=*source++; in _UTF16BEToUnicodeWithOffsets() 514 pArgs->converter->toULength=1; in _UTF16BEGetNextUChar() 543 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16BEGetNextUChar() 559 pArgs->converter->toULength=2; in _UTF16BEGetNextUChar() [all …]
|
D | ucnvscsu.cpp | 171 cnv->toULength=0; in _SCSUReset() 380 cnv->toULength=1; in _SCSUToUnicodeWithOffsets() 386 cnv->toULength=1; in _SCSUToUnicodeWithOffsets() 391 cnv->toULength=2; in _SCSUToUnicodeWithOffsets() 445 cnv->toULength=2; in _SCSUToUnicodeWithOffsets() 457 cnv->toULength=2; in _SCSUToUnicodeWithOffsets() 468 cnv->toULength=2; in _SCSUToUnicodeWithOffsets() 506 cnv->toULength=1; in _SCSUToUnicodeWithOffsets() 517 cnv->toULength=1; in _SCSUToUnicodeWithOffsets() 523 cnv->toULength=1; in _SCSUToUnicodeWithOffsets() [all …]
|
D | ucnvmbcs.cpp | 1980 cnv->toULength=0; /* byteIndex */ in ucnv_MBCSOpen() 2157 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToUnicodeWithOffsets() 2358 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToBMPWithOffsets() 2527 byteIndex=cnv->toULength; in ucnv_MBCSToUnicodeWithOffsets() 2869 cnv->toULength=byteIndex; in ucnv_MBCSToUnicodeWithOffsets() 3150 cnv->toULength=(int8_t)(source-lastSource); in ucnv_MBCSGetNextUChar() 3167 cnv->toULength=1; in ucnv_MBCSGetNextUChar() 3176 cnv->toULength=i; in ucnv_MBCSGetNextUChar() 5031 int8_t oldToULength, toULength, toULimit; in ucnv_SBCSFromUTF8() local 5067 if(utf8->toULength > 0) { in ucnv_SBCSFromUTF8() [all …]
|
D | ucnv2022.cpp | 453 cnv->toULength=0; /* byteIndex */ in setInitialStateToUnicodeKR() 841 int8_t initialToULength = _this->toULength; in changeState_2022() 847 _this->toUBytes[_this->toULength++]=(uint8_t)c; in changeState_2022() 868 _this->toULength = 0; in changeState_2022() 1026 _this->toULength = 0; in changeState_2022() 1028 if(_this->toULength>1) { in changeState_2022() 1041 int8_t backOutDistance=_this->toULength-1; in changeState_2022() 1042 int8_t bytesFromThisBuffer=_this->toULength-initialToULength; in changeState_2022() 1054 _this->toULength=1; in changeState_2022() 1332 (mySourceLimit < realSourceLimit && myData->currentConverter->toULength > 0)) in T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC() [all …]
|
D | ucnvlat1.cpp | 343 if (utf8->toULength > 0) { in ucnv_Latin1FromUTF8() 358 utf8->toULength=0; in ucnv_Latin1FromUTF8() 416 utf8->toULength=1; in ucnv_Latin1FromUTF8() 567 cnv->toULength=1; in _ASCIIToUnicodeWithOffsets() 605 cnv->toULength=1; in _ASCIIGetNextUChar() 627 if(pToUArgs->converter->toULength > 0) { in ucnv_ASCIIFromUTF8()
|
D | ucnv_ct.cpp | 496 if (args->converter->toULength > 0) { in UConverter_toUnicode_CompoundText_OFFSETS() 503 …ateFromEscSeq(mySource, mySourceLimit, args->converter->toUBytes, args->converter->toULength, err); in UConverter_toUnicode_CompoundText_OFFSETS() 507 args->converter->toUBytes[args->converter->toULength++] = *mySource++; in UConverter_toUnicode_CompoundText_OFFSETS() 512 if (args->converter->toULength == 0) { in UConverter_toUnicode_CompoundText_OFFSETS() 523 …c_cast<int32_t>(uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength); in UConverter_toUnicode_CompoundText_OFFSETS() 527 args->converter->toULength = 0; in UConverter_toUnicode_CompoundText_OFFSETS()
|
D | ucnvhz.cpp | 203 args->converter->toULength = 2; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 228 args->converter->toULength = 1; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 233 args->converter->toULength = 2; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 315 args->converter->toULength=2; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 319 args->converter->toULength=1; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
|
D | ucnv_lmb.cpp | 1276 if (args->converter->toULength) /* reassemble char from previous call */ in _LMBCSToUnicodeWithOffsets() 1279 size_t size_old = args->converter->toULength; in _LMBCSToUnicodeWithOffsets() 1300 args->converter->toULength = savebytes; in _LMBCSToUnicodeWithOffsets() 1309 args->converter->toULength = 0; in _LMBCSToUnicodeWithOffsets() 1346 args->converter->toULength = savebytes; in _LMBCSToUnicodeWithOffsets()
|
D | ucnv.cpp | 609 converter->toULength = 0; in _reset() 1361 cnv->toULength==0); in _toUnicodeWithCallback() 1450 } else if(pArgs->flush && cnv->toULength>0) { in _toUnicodeWithCallback() 1527 errorInputLength=cnv->invalidCharLength=cnv->toULength; in _toUnicodeWithCallback() 1533 cnv->toULength=0; in _toUnicodeWithCallback() 1928 if(cnv->toULength==0 && cnv->sharedData->impl->getNextUChar!=NULL) { in ucnv_getNextUChar() 2261 sourceCnv->preToULength>=0 && sourceCnv->toULength==0 && in ucnv_convertEx() 2282 if(sourceCnv->toULength>0) { in ucnv_convertEx() 2315 } else if(flush && sourceCnv->toULength>0) { /* flush==toUArgs.flush */ in ucnv_convertEx() 2872 }else if(cnv->toULength > 0){ in ucnv_toUCountPending() [all …]
|
D | ucnv_u7.cpp | 188 cnv->toULength=0; in _UTF7Reset() 250 byteIndex=cnv->toULength; in _UTF7ToUnicodeWithOffsets() 452 cnv->toULength=byteIndex; in _UTF7ToUnicodeWithOffsets() 936 byteIndex=cnv->toULength; in _IMAPToUnicodeWithOffsets() 1153 cnv->toULength=byteIndex; in _IMAPToUnicodeWithOffsets()
|
D | ucnvbocu.cpp | 988 byteIndex=cnv->toULength; in _Bocu1ToUnicodeWithOffsets() 1162 cnv->toULength=byteIndex; in _Bocu1ToUnicodeWithOffsets() 1207 byteIndex=cnv->toULength; in _Bocu1ToUnicode() 1361 cnv->toULength=byteIndex; in _Bocu1ToUnicode()
|
D | ucnv_bld.h | 189 int8_t toULength; /* number of bytes in toUBytes */ member
|