/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 | CharsetUTF8.java | 103 bytesSoFar = toULength; in decodeLoop() 107 toULength = 0; in decodeLoop() 117 toULength = bytesSoFar; in decodeLoop() 124 toULength = bytesSoFar; in decodeLoop() 192 toULength = bytesSoFar; in decodeLoop() 223 bytesSoFar = toULength; in decodeLoop() 227 toULength = 0; in decodeLoop() 237 toULength = bytesSoFar; in decodeLoop() 244 toULength = bytesSoFar; in decodeLoop() 329 toULength = bytesSoFar; 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 | 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.c | 118 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 119 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 160 cnv->toULength = (int8_t) i; in ucnv_toUnicode_UTF8() 211 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8() 248 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 249 cnv->toULength = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 288 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 341 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 643 cnv->toULength = 1; in ucnv_getNextUChar_UTF8() 666 cnv->toULength = i; in ucnv_getNextUChar_UTF8() [all …]
|
D | ucnv_u16.c | 297 cnv->toULength=1; in _UTF16BEToUnicodeWithOffsets() 300 if((count=cnv->toULength)!=0) { in _UTF16BEToUnicodeWithOffsets() 363 cnv->toULength=2; in _UTF16BEToUnicodeWithOffsets() 373 cnv->toULength=(int8_t)count; in _UTF16BEToUnicodeWithOffsets() 444 cnv->toULength=2; in _UTF16BEToUnicodeWithOffsets() 458 cnv->toULength=0; in _UTF16BEToUnicodeWithOffsets() 480 cnv->toUBytes[cnv->toULength++]=*source++; in _UTF16BEToUnicodeWithOffsets() 512 pArgs->converter->toULength=1; in _UTF16BEGetNextUChar() 541 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16BEGetNextUChar() 557 pArgs->converter->toULength=2; in _UTF16BEGetNextUChar() [all …]
|
D | ucnv_u32.c | 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() 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() 441 args->converter->toULength = (int8_t)length; in T_UConverter_getNextUChar_UTF32_BE() 459 args->converter->toULength = 4; in T_UConverter_getNextUChar_UTF32_BE() [all …]
|
D | ucnvscsu.c | 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 | 1979 cnv->toULength=0; /* byteIndex */ in ucnv_MBCSOpen() 2156 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToUnicodeWithOffsets() 2357 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToBMPWithOffsets() 2526 byteIndex=cnv->toULength; in ucnv_MBCSToUnicodeWithOffsets() 2868 cnv->toULength=byteIndex; in ucnv_MBCSToUnicodeWithOffsets() 3149 cnv->toULength=(int8_t)(source-lastSource); in ucnv_MBCSGetNextUChar() 3166 cnv->toULength=1; in ucnv_MBCSGetNextUChar() 3175 cnv->toULength=i; in ucnv_MBCSGetNextUChar() 5034 int8_t oldToULength, toULength, toULimit; in ucnv_SBCSFromUTF8() local 5072 toULength=oldToULength=utf8->toULength; 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 | ucnvhz.c | 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_ct.c | 491 if (args->converter->toULength > 0) { in UConverter_toUnicode_CompoundText_OFFSETS() 498 …ateFromEscSeq(mySource, mySourceLimit, args->converter->toUBytes, args->converter->toULength, err); in UConverter_toUnicode_CompoundText_OFFSETS() 502 args->converter->toUBytes[args->converter->toULength++] = *mySource++; in UConverter_toUnicode_CompoundText_OFFSETS() 507 if (args->converter->toULength == 0) { in UConverter_toUnicode_CompoundText_OFFSETS() 518 … sourceOffset = uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength; in UConverter_toUnicode_CompoundText_OFFSETS() 522 args->converter->toULength = 0; in UConverter_toUnicode_CompoundText_OFFSETS()
|
D | ucnvlat1.c | 352 utf8->toULength=0; in ucnv_Latin1FromUTF8() 410 utf8->toULength=1; in ucnv_Latin1FromUTF8() 555 cnv->toULength=1; in _ASCIIToUnicodeWithOffsets() 593 cnv->toULength=1; in _ASCIIGetNextUChar()
|
D | ucnv_lmb.c | 1270 if (args->converter->toULength) /* reassemble char from previous call */ in _LMBCSToUnicodeWithOffsets() 1273 size_t size_old = args->converter->toULength; in _LMBCSToUnicodeWithOffsets() 1294 args->converter->toULength = savebytes; in _LMBCSToUnicodeWithOffsets() 1303 args->converter->toULength = 0; in _LMBCSToUnicodeWithOffsets() 1340 args->converter->toULength = savebytes; in _LMBCSToUnicodeWithOffsets()
|
D | ucnv.c | 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() 1936 if(cnv->toULength==0 && cnv->sharedData->impl->getNextUChar!=NULL) { in ucnv_getNextUChar() 2269 sourceCnv->preToULength>=0 && sourceCnv->toULength==0 && in ucnv_convertEx() 2290 if(sourceCnv->toULength>0) { in ucnv_convertEx() 2323 } else if(flush && sourceCnv->toULength>0) { /* flush==toUArgs.flush */ in ucnv_convertEx() 2880 }else if(cnv->toULength > 0){ in ucnv_toUCountPending() [all …]
|
D | ucnv_u7.c | 187 cnv->toULength=0; in _UTF7Reset() 248 byteIndex=cnv->toULength; in _UTF7ToUnicodeWithOffsets() 450 cnv->toULength=byteIndex; in _UTF7ToUnicodeWithOffsets() 932 byteIndex=cnv->toULength; in _IMAPToUnicodeWithOffsets() 1149 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
|