Home
last modified time | relevance | path

Searched refs:preToULength (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetDecoderICU.java50 int preToULength; /* negative: replay */ field in CharsetDecoderICU
211 preToULength = 0; /* negative: replay */ in implReset()
330 if (!flush && !source.hasRemaining() && toULength == 0 && preToULength >= 0) { in decode()
409 if(preToULength>=0) { in toUnicodeWithCallback()
421 replayArray.put(preToUArray,0, -preToULength); in toUnicodeWithCallback()
424 source.limit(replayArrayIndex-preToULength); in toUnicodeWithCallback()
427 preToULength=0; in toUnicodeWithCallback()
496 if(preToULength<0) { in toUnicodeWithCallback()
508 replayArray.put(preToUArray,0, -preToULength); in toUnicodeWithCallback()
513 source.limit(replayArrayIndex-preToULength); in toUnicodeWithCallback()
[all …]
DCharsetMBCS.java1651 …tch = matchToU((byte) SISO_STATE(sharedData, mode), preToUArray, preToUBegin, preToULength, source, in continueMatchToU()
1655 if (match >= preToULength) { in continueMatchToU()
1657 source.position(source.position() + match - preToULength); in continueMatchToU()
1658 preToULength = 0; in continueMatchToU()
1661 length = preToULength - match; in continueMatchToU()
1663 preToULength = (byte) -length; in continueMatchToU()
1675 for (j = preToULength; j < match; ++j) { in continueMatchToU()
1679 preToULength = (byte) match; in continueMatchToU()
1700 length = preToULength - preToUFirstLength; in continueMatchToU()
1706 preToULength = (byte) -length; in continueMatchToU()
[all …]
DCharsetISO2022.java708 decoder.preToULength = (byte)(bytesFromThisBuffer - backOutDistance); in changeState_2022()
711 for (int i = 0; i < -(decoder.preToULength); i++) { in changeState_2022()
/external/icu/icu4c/source/common/
Ducnv_ext.cpp322 cnv->preToULength=(int8_t)match; in ucnv_extInitialMatchToU()
375 cnv->preToU, cnv->preToULength, in ucnv_extContinueMatchToU()
380 if(match>=cnv->preToULength) { in ucnv_extContinueMatchToU()
382 pArgs->source+=match-cnv->preToULength; in ucnv_extContinueMatchToU()
383 cnv->preToULength=0; in ucnv_extContinueMatchToU()
386 length=cnv->preToULength-match; in ucnv_extContinueMatchToU()
388 cnv->preToULength=(int8_t)-length; in ucnv_extContinueMatchToU()
405 for(j=cnv->preToULength; j<match; ++j) { in ucnv_extContinueMatchToU()
409 cnv->preToULength=(int8_t)match; in ucnv_extContinueMatchToU()
434 length=cnv->preToULength-cnv->preToUFirstLength; in ucnv_extContinueMatchToU()
[all …]
Ducnv.c619 converter->preToULength = 0; in _reset()
1314 if(cnv->preToULength>=0) { in _toUnicodeWithCallback()
1333 uprv_memcpy(replay, cnv->preToU, -cnv->preToULength); in _toUnicodeWithCallback()
1335 pArgs->sourceLimit=replay-cnv->preToULength; in _toUnicodeWithCallback()
1339 cnv->preToULength=0; in _toUnicodeWithCallback()
1411 if(cnv->preToULength<0) { in _toUnicodeWithCallback()
1422 uprv_memcpy(replay, cnv->preToU, -cnv->preToULength); in _toUnicodeWithCallback()
1424 pArgs->sourceLimit=replay-cnv->preToULength; in _toUnicodeWithCallback()
1426 if((sourceIndex+=cnv->preToULength)<0) { in _toUnicodeWithCallback()
1430 cnv->preToULength=0; in _toUnicodeWithCallback()
[all …]
Ducnv_bld.h229 int8_t preFromULength, preToULength; /* negative: replay */ member
Ducnvmbcs.cpp2479 if(cnv->preToULength>0) { in ucnv_MBCSToUnicodeWithOffsets()
2486 if(U_FAILURE(*pErrorCode) || cnv->preToULength<0) { in ucnv_MBCSToUnicodeWithOffsets()
2829 cnv->preToULength=(int8_t)(bytesFromThisBuffer-backOutDistance); in ucnv_MBCSToUnicodeWithOffsets()
2831 uprv_memcpy(cnv->preToU, bytes+i, -cnv->preToULength); in ucnv_MBCSToUnicodeWithOffsets()
2974 if(cnv->preToULength>0) { in ucnv_MBCSGetNextUChar()
Ducnv2022.cpp1059 _this->preToULength=(int8_t)(bytesFromThisBuffer-backOutDistance); in changeState_2022()
1062 uprv_memcpy(_this->preToU, _this->toUBytes+1, -_this->preToULength); in changeState_2022()