Home
last modified time | relevance | path

Searched refs:toULength (Results 1 – 25 of 30) sorted by relevance

12

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF16.java109 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 …]
DCharsetUTF32.java91 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 …]
DCharsetDecoderICU.java34 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()
DCharsetHZ.java106 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()
DCharsetCompoundText.java528 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()
DCharsetUTF8.java84 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()
DCharsetISO2022.java534 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 …]
DCharsetSCSU.java213 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 …]
DCharsetLMBCS.java767 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()
DCharsetUTF7.java211 byteIndex=toULength; in decodeLoop()
476 toULength=byteIndex; in decodeLoop()
DCharsetBOCU1.java812 byteIndex = toULength; in decodeLoop()
1047 toULength=byteIndex; in endLoop()
/external/icu/icu4c/source/common/
Ducnv_u8.cpp82 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()
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()
584 cnv->toULength = 1; in ucnv_getNextUChar_UTF8()
609 cnv->toULength = i; in ucnv_getNextUChar_UTF8()
[all …]
Ducnv_u16.cpp299 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 …]
Ducnv_u32.cpp59 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 …]
Ducnvscsu.cpp171 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 …]
Ducnvmbcs.cpp1980 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
5069 toULength=oldToULength=utf8->toULength; in ucnv_SBCSFromUTF8()
[all …]
Ducnv2022.cpp453 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 …]
Ducnv_ct.cpp496 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()
Ducnvhz.cpp203 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()
Ducnvlat1.cpp354 utf8->toULength=0; in ucnv_Latin1FromUTF8()
412 utf8->toULength=1; in ucnv_Latin1FromUTF8()
563 cnv->toULength=1; in _ASCIIToUnicodeWithOffsets()
601 cnv->toULength=1; in _ASCIIGetNextUChar()
Ducnv_lmb.cpp1276 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()
Ducnv.cpp609 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 …]
Ducnv_u7.cpp188 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()
Ducnvbocu.cpp988 byteIndex=cnv->toULength; in _Bocu1ToUnicodeWithOffsets()
1162 cnv->toULength=byteIndex; in _Bocu1ToUnicodeWithOffsets()
1207 byteIndex=cnv->toULength; in _Bocu1ToUnicode()
1361 cnv->toULength=byteIndex; in _Bocu1ToUnicode()
Ducnv_bld.h189 int8_t toULength; /* number of bytes in toUBytes */ member

12