Home
last modified time | relevance | path

Searched refs:UNSIGNED_BYTE_MASK (Results 1 – 15 of 15) sorted by relevance

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetISO2022.java197 …(short)(value&UConverterConstants.UNSIGNED_BYTE_MASK) <= 0xfe && ((short)(value&UConverterConstant… in _2022FromGR94DBCS()
728 togo = normalize_esq_chars_2022[c&UConverterConstants.UNSIGNED_BYTE_MASK]; in getKey_2022()
840 bytes[0] = (byte)(UConverterConstants.UNSIGNED_BYTE_MASK & c1); in _2022ToSJIS()
841 bytes[1] = (byte)(UConverterConstants.UNSIGNED_BYTE_MASK & c2); in _2022ToSJIS()
863 mySourceChar = (toUBytesArray[0] & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
881 mySourceChar = source.get() & UConverterConstants.UNSIGNED_BYTE_MASK; in decodeLoop()
1009 … trailByte = (short)(source.get(source.position()) & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
1020 …leadIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (mySourceChar - 0x21)) <= (0x7e - 0x21… in decodeLoop()
1021 … trailIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (trailByte - 0x21)) <= (0x7e - 0x21); in decodeLoop()
1034 … tempBuf[0] = (byte)(UConverterConstants.UNSIGNED_BYTE_MASK & (tmpSourceChar >> 8)); in decodeLoop()
[all …]
DCharsetSCSU.java295 …() && (b=(short)(source.get(source.position()) & UConverterConstants.UNSIGNED_BYTE_MASK)) >= 0x20){ in fastSingle()
341 …g() && (((b=source.get(source.position()))-UC0)&UConverterConstants.UNSIGNED_BYTE_MASK)>(Urs-UC0)){ in fastSingle()
342 …arget.put((char)((b<<8)|(source.get(source.position()+1)&UConverterConstants.UNSIGNED_BYTE_MASK))); in fastSingle()
365 b = (short)(source.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in singleByteMode()
492 …}else if(((b - gapThreshold)&UConverterConstants.UNSIGNED_BYTE_MASK)<(reservedStart - gapThreshold… in singleByteMode()
517 b = (short)(source.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in singleByteMode()
521 if((short)((b -UC0)&UConverterConstants.UNSIGNED_BYTE_MASK)>(Urs - UC0)){ in singleByteMode()
526 }else if((b&UConverterConstants.UNSIGNED_BYTE_MASK) <= UC7){ in singleByteMode()
532 }else if((b&UConverterConstants.UNSIGNED_BYTE_MASK) <= UD7){ in singleByteMode()
540 }else if((b&UConverterConstants.UNSIGNED_BYTE_MASK) == UDX){ in singleByteMode()
[all …]
DCharsetUTF16.java181 …] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[1 ^ actualEndianXOR] & UConver… in decodeLoop()
210 …] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualEndianXOR] & UConver… in decodeTrail()
DCharsetCallback.java388 …ou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BYTE_MASK, 16, 2);
395 …ou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BYTE_MASK, 10, 0);
403 …ou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BYTE_MASK, 16, 0);
410 …ou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BYTE_MASK, 16, 2);
416 …ou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BYTE_MASK, 16, 2);
DCharsetLMBCS.java579 short HighCh = (short)(ppLMBCSin.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in GetUniFromLMBCSUni()
580 short LowCh = (short)(ppLMBCSin.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in GetUniFromLMBCSUni()
626 CurByte = (short)(source.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in LMBCSGetNextUCharWorker()
655 C0C1byte = (short)(source.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in LMBCSGetNextUCharWorker()
699 CurByte = (short)(source.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in LMBCSGetNextUCharWorker()
870 …tByte = (short)((value[0] >> ((bytesConverted - 1) * 8)) & UConverterConstants.UNSIGNED_BYTE_MASK); in LMBCSConversionWorker()
920 short LowCh = (short)(uniChar & UConverterConstants.UNSIGNED_BYTE_MASK); in LMBCSConvertUni()
921 short HighCh = (short)((uniChar >> 8) & UConverterConstants.UNSIGNED_BYTE_MASK); in LMBCSConvertUni()
DCharsetMBCS.java1772 … b = (short) (preArray[preArrayBegin + i++] & UConverterConstants.UNSIGNED_BYTE_MASK); in matchToU()
1774 … b = (short) (source.get(source.position() + j++) & UConverterConstants.UNSIGNED_BYTE_MASK); in matchToU()
2087 … entry = stateTable[state][source.get(sourceArrayIndex)&UConverterConstants.UNSIGNED_BYTE_MASK]; in cnvMBCSToUnicodeWithOffsets()
2093 …NAL(entry = stateTable[state][source.get(sourceArrayIndex)&UConverterConstants.UNSIGNED_BYTE_MASK]) in cnvMBCSToUnicodeWithOffsets()
2145 & UConverterConstants.UNSIGNED_BYTE_MASK]; in cnvMBCSToUnicodeWithOffsets()
2311 …stateTable, state, isDBCSOnly, (short)(bytes[i] & UConverterConstants.UNSIGNED_BYTE_MASK)); i++) {} in cnvMBCSToUnicodeWithOffsets()
2398 … entry = stateTable[0][source.get(sourceArrayIndex++) & UConverterConstants.UNSIGNED_BYTE_MASK]; in cnvMBCSSingleToBMPWithOffsets()
2528 … entry = stateTable[0][source.get(sourceArrayIndex++) & UConverterConstants.UNSIGNED_BYTE_MASK]; in cnvMBCSSingleToUnicodeWithOffsets()
2692 entry = stateTable[state][source.get(i++) & UConverterConstants.UNSIGNED_BYTE_MASK]; in simpleGetNextUChar()
3123 … value = ((pArray[pArrayIndex] & UConverterConstants.UNSIGNED_BYTE_MASK) << 16) in encodeLoop()
[all …]
DCharsetBOCU1.java773 b = b&UConverterConstants.UNSIGNED_BYTE_MASK; in decodeBocu1TrailByte()
854 …START_NEG_2 <=(c=source.get(source.position())&UConverterConstants.UNSIGNED_BYTE_MASK) && c< BOCU1… in fastSingle()
865 } else if((c&UConverterConstants.UNSIGNED_BYTE_MASK) <= 0x20) { in fastSingle()
866 if((c&UConverterConstants.UNSIGNED_BYTE_MASK) != 0x20) { in fastSingle()
930 c = source.get()&UConverterConstants.UNSIGNED_BYTE_MASK; in afterGetTrail()
DUConverterConstants.java13 static final short UNSIGNED_BYTE_MASK = 0xff; field
DCharsetHZ.java164 … leadIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (leadByte - 0x21)) <= (0x7d - 0x21); in decodeLoop()
165 …trailIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (mySourceChar - 0x21)) <= (0x7e - 0x2… in decodeLoop()
DCharsetISCII.java845 sourceChar = (short)(source.get() & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
853 …if (((short)(ISCIILang.PNJ - sourceChar) & UConverterConstants.UNSIGNED_BYTE_MASK) <= (ISCIILang.P… in decodeLoop()
877 …if (((short)(EXT_RANGE_END - sourceChar) & UConverterConstants.UNSIGNED_BYTE_MASK) <= (EXT_RANGE_E… in decodeLoop()
883 …if ((validityTable[((short)targetUniChar) & UConverterConstants.UNSIGNED_BYTE_MASK] & data.current… in decodeLoop()
978 …pecialCases[n][0] == ((short)data.contextCharToUnicode & UConverterConstants.UNSIGNED_BYTE_MASK)) { in decodeLoop()
1031 …pecialCases[i][0] == ((short)data.contextCharToUnicode & UConverterConstants.UNSIGNED_BYTE_MASK)) { in decodeLoop()
1315 … targetByteUnit = fromUnicodeTable[(short)sourceChar & UConverterConstants.UNSIGNED_BYTE_MASK]; in encodeLoop()
1318 …if ((validityTable[(short)sourceChar & UConverterConstants.UNSIGNED_BYTE_MASK] & converterData.cur… in encodeLoop()
1331 … temp += (char)(lookupInitialData[range].isciiLang & UConverterConstants.UNSIGNED_BYTE_MASK); in encodeLoop()
DCharsetUTF32.java141 … | (toUBytesArray[i ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
DCharsetUTF7.java475 …deStatus=(inDirectMode<<24 | ((base64Counter & UConverterConstants.UNSIGNED_BYTE_MASK)<<16) | bits… in decodeLoop()
763 …0000) | (inDirectMode<<24) | ((base64Counter & UConverterConstants.UNSIGNED_BYTE_MASK)<<16) | (bit… in encodeLoop()
DCharsetDecoderICU.java663 dst[dstOffset++]=(char)(src[srcOffset++] & UConverterConstants.UNSIGNED_BYTE_MASK); in copy()
DCharsetCompoundText.java567 … target.put((char)(UConverterConstants.UNSIGNED_BYTE_MASK&source.get())); in decodeLoop()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DByteString.java232 private static final int UNSIGNED_BYTE_MASK = 0xFF;
243 return value & UNSIGNED_BYTE_MASK; in toInt()