Home
last modified time | relevance | path

Searched refs:preFromULength (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetEncoderICU.java60 int preFromULength; /* negative: replay */ field in CharsetEncoderICU
247 preFromULength = 0; in fromUnicodeReset()
352 if (!flush && source.remaining() == 0 && preFromULength >= 0) { in encode()
408 if (preFromULength >= 0) { in fromUnicodeWithCallback()
422 replayArray.put(preFromUArray, 0, -preFromULength); in fromUnicodeWithCallback()
425 … source.limit(replayArrayIndex - preFromULength); //preFromULength is negative, see declaration in fromUnicodeWithCallback()
428 preFromULength = 0; in fromUnicodeWithCallback()
492 if (preFromULength < 0) { in fromUnicodeWithCallback()
502 replayArray.put(preFromUArray, 0, -preFromULength); in fromUnicodeWithCallback()
506 source.limit(replayArrayIndex - preFromULength); in fromUnicodeWithCallback()
[all …]
DCharsetMBCS.java2879 if (cr[0].isError() || preFromULength < 0) { in encodeLoop()
3530 …match = matchFromU(preFromUFirstCP, preFromUArray, preFromUBegin, preFromULength, source, value, u… in continueMatchFromU()
3534 if (match >= preFromULength) { in continueMatchFromU()
3536 source.position(source.position() + match - preFromULength); in continueMatchFromU()
3537 preFromULength = 0; in continueMatchFromU()
3540 int length = preFromULength - match; in continueMatchFromU()
3542 preFromULength = (byte) -length; in continueMatchFromU()
3558 for (j = preFromULength; j < match; ++j) { in continueMatchFromU()
3562 preFromULength = (byte) match; in continueMatchFromU()
3588 preFromULength = (byte) -preFromULength; in continueMatchFromU()
[all …]
/external/icu/icu4c/source/common/
Ducnv_ext.cpp797 cnv->preFromULength=(int8_t)match; in ucnv_extInitialMatchFromU()
875 cnv->preFromU, cnv->preFromULength, in ucnv_extContinueMatchFromU()
882 if(match>=cnv->preFromULength) { in ucnv_extContinueMatchFromU()
884 pArgs->source+=match-cnv->preFromULength; in ucnv_extContinueMatchFromU()
885 cnv->preFromULength=0; in ucnv_extContinueMatchFromU()
888 int32_t length=cnv->preFromULength-match; in ucnv_extContinueMatchFromU()
890 cnv->preFromULength=(int8_t)-length; in ucnv_extContinueMatchFromU()
910 for(j=cnv->preFromULength; j<match; ++j) { in ucnv_extContinueMatchFromU()
915 cnv->preFromULength=(int8_t)match; in ucnv_extContinueMatchFromU()
945 cnv->preFromULength=-cnv->preFromULength; in ucnv_extContinueMatchFromU()
Ducnv.cpp618 converter->preFromULength = 0; in _reset()
861 if(cnv->preFromULength>=0) { in _fromUnicodeWithCallback()
880 uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback()
882 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
886 cnv->preFromULength=0; in _fromUnicodeWithCallback()
958 if(cnv->preFromULength<0) { in _fromUnicodeWithCallback()
969 uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback()
971 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
973 if((sourceIndex+=cnv->preFromULength)<0) { in _fromUnicodeWithCallback()
977 cnv->preFromULength=0; in _fromUnicodeWithCallback()
[all …]
Ducnv_bld.h236 int8_t preFromULength, preToULength; /* negative: replay */ member
Ducnvmbcs.cpp4107 if(U_FAILURE(*pErrorCode) || cnv->preFromULength<0) { in ucnv_MBCSFromUnicodeWithOffsets()