Home
last modified time | relevance | path

Searched refs:trailByte (Results 1 – 2 of 2) sorted by relevance

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetISO2022.java1006 short trailByte; in decodeLoop() local
1009trailByte = (short)(source.get(source.position()) & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
1021 … trailIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (trailByte - 0x21)) <= (0x7e - 0x21); in decodeLoop()
1024 tmpSourceChar = (mySourceChar << 8) | trailByte; in decodeLoop()
1026 … _2022ToSJIS((char)mySourceChar, (char)trailByte, tempBuf); in decodeLoop()
1038 } else if (!(trailIsOk || IS_2022_CONTROL(trailByte))) { in decodeLoop()
1042 mySourceChar = 0x10000 | (mySourceChar << 8) | trailByte; in decodeLoop()
1209 short trailByte; in decodeLoop() local
1213trailByte = (short)(source.get(source.position()) & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
1225 … trailIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (trailByte - 0x21)) <= (0x7e - 0x21); in decodeLoop()
[all …]
/external/icu/icu4c/source/common/
Ducnv2022.cpp2241 uint8_t trailByte; in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC() local
2243 trailByte = (uint8_t)*mySource; in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2255 trailIsOk = (uint8_t)(trailByte - 0x21) <= (0x7e - 0x21); in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2258 tmpSourceChar = (mySourceChar << 8) | trailByte; in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2260 _2022ToSJIS((uint8_t)mySourceChar, trailByte, tempBuf); in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2272 } else if (!(trailIsOk || IS_2022_CONTROL(trailByte))) { in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2276 mySourceChar = 0x10000 | (mySourceChar << 8) | trailByte; in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2755 uint8_t trailByte; in UConverter_toUnicode_ISO_2022_KR_OFFSETS_LOGIC() local
2758 trailByte = (uint8_t)*mySource; in UConverter_toUnicode_ISO_2022_KR_OFFSETS_LOGIC()
2770 trailIsOk = (uint8_t)(trailByte - 0x21) <= (0x7e - 0x21); in UConverter_toUnicode_ISO_2022_KR_OFFSETS_LOGIC()
[all …]