Home
last modified time | relevance | path

Searched refs:UConverterConstants (Results 1 – 19 of 19) sorted by relevance

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetSCSU.java295 …arget.hasRemaining() && (b=(short)(source.get(source.position()) & UConverterConstants.UNSIGNED_BY… in fastSingle()
341 … target.hasRemaining() && (((b=source.get(source.position()))-UC0)&UConverterConstants.UNSIGNED_BY… in fastSingle()
342 …target.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 …]
DCharsetISO2022.java197 …((short)(value&UConverterConstants.UNSIGNED_BYTE_MASK) <= 0xfe && ((short)(value&UConverterConstan… in _2022FromGR94DBCS()
728 togo = normalize_esq_chars_2022[c&UConverterConstants.UNSIGNED_BYTE_MASK]; in getKey_2022()
773 if (targetUniChar == (UConverterConstants.missingCharMarker-1/* 0xfffe */)) { in toUnicodeCallback()
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()
877 targetUniChar = UConverterConstants.missingCharMarker; in decodeLoop()
881 mySourceChar = source.get() & UConverterConstants.UNSIGNED_BYTE_MASK; in decodeLoop()
886 case UConverterConstants.SI: in decodeLoop()
896 case UConverterConstants.SO: in decodeLoop()
[all …]
DCharsetUTF8.java118 if (char32 <= UConverterConstants.MAXIMUM_UCS2) { in decodeLoop()
123 char32 -= UConverterConstants.HALF_BASE; in decodeLoop()
126 …targetArray[targetIndex++] = (char) ((char32 >>> UConverterConstants.HALF_SHIFT) + UConverterConst… in decodeLoop()
130 …rray[charErrorBufferLength++] = (char) ((char32 & UConverterConstants.HALF_MASK) + UConverterConst… in decodeLoop()
134 …targetArray[targetIndex++] = (char) ((char32 & UConverterConstants.HALF_MASK) + UConverterConstant… in decodeLoop()
240 if (char32 <= UConverterConstants.MAXIMUM_UCS2) { in decodeLoop()
245 char32 -= UConverterConstants.HALF_BASE; in decodeLoop()
250 … (char) ((char32 >>> UConverterConstants.HALF_SHIFT) + UConverterConstants.SURROGATE_HIGH_START)); in decodeLoop()
254 …rray[charErrorBufferLength++] = (char) ((char32 & UConverterConstants.HALF_MASK) + UConverterConst… in decodeLoop()
260 … (char) ((char32 & UConverterConstants.HALF_MASK) + UConverterConstants.SURROGATE_LOW_START)); in decodeLoop()
DCharsetMBCS.java113 return (unicodeMask & UConverterConstants.HAS_SUPPLEMENTARY) != 0; in hasSupplementary()
174 if (icuCanonicalName.indexOf(UConverterConstants.OPTION_SWAP_LFNL_STRING) > -1) { in CharsetMBCS()
175 options = UConverterConstants.OPTION_SWAP_LFNL; in CharsetMBCS()
176 …nicalName = icuCanonicalName.substring(0, icuCanonicalName.indexOf(UConverterConstants.OPTION_SWAP… in CharsetMBCS()
434 …mbcsTable.unicodeMask = UConverterConstants.HAS_SUPPLEMENTARY | UConverterConstants.HAS_SURROGATES; in loadConverter()
453 … if (header.version[1] >= 3 && (mbcsTable.unicodeMask & UConverterConstants.HAS_SURROGATES) == 0 && in loadConverter()
490 …int stage1Length = (mbcsTable.unicodeMask&UConverterConstants.HAS_SUPPLEMENTARY) != 0 ? 0x440 : 0x… in loadConverter()
716 codePoints[0] = UConverterConstants.U_SENTINEL; in enumToU()
730 codePoints[b&0x1f] = UConverterConstants.U_SENTINEL; in enumToU()
749 c = UConverterConstants.U_SENTINEL; in enumToU()
[all …]
DCharsetISCII.java842 targetUniChar = UConverterConstants.missingCharMarker; in decodeLoop()
845 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()
898 targetUniChar = UConverterConstants.missingCharMarker; in decodeLoop()
933 if (this.toUnicodeStatus != UConverterConstants.missingCharMarker) { in decodeLoop()
940 this.toUnicodeStatus = UConverterConstants.missingCharMarker; in decodeLoop()
949 this.toUnicodeStatus = UConverterConstants.missingCharMarker; in decodeLoop()
978 …owelSignESpecialCases[n][0] == ((short)data.contextCharToUnicode & UConverterConstants.UNSIGNED_BY… in decodeLoop()
[all …]
DCharsetUTF16.java181 …0 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[1 ^ actualE… in decodeLoop()
210 …2 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualE… in decodeTrail()
DCharsetBOCU1.java94 return (((packed)&UConverterConstants.UNSIGNED_INT_MASK)<0x04000000 ? (packed)>>24 : 4); in BOCU1_LENGTH_FROM_PACKED()
340 result|=((BOCU1_START_POS_4&UConverterConstants.UNSIGNED_INT_MASK))<<24; in packDiff()
773 b = b&UConverterConstants.UNSIGNED_BYTE_MASK; in decodeBocu1TrailByte()
854 …if(BOCU1_START_NEG_2 <=(c=source.get(source.position())&UConverterConstants.UNSIGNED_BYTE_MASK) &&… 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()
969 … if(c<0 || ((c = prev + diff + c)&UConverterConstants.UNSIGNED_INT_MASK)>0x10ffff) { in afterGetTrail()
DCharsetUTF32.java141 … | (toUBytesArray[i ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK); in decodeLoop()
143 … if (0 <= char32 && char32 <= UConverterConstants.MAXIMUM_UTF && !isSurrogate(char32)) { in decodeLoop()
145 if (char32 <= UConverterConstants.MAXIMUM_UCS2) { in decodeLoop()
DCharsetCallback.java388 …ingLength += itou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BY…
395 …ingLength += itou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BY…
403 …ingLength += itou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BY…
410 …ingLength += itou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BY…
416 …itou(uniValueString, valueStringLength, buffer[i++] & UConverterConstants.UNSIGNED_BYTE_MASK, 16, …
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 …firstByte = (short)((value[0] >> ((bytesConverted - 1) * 8)) & UConverterConstants.UNSIGNED_BYTE_M… 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()
DUConverterStaticData.java37 subChar = new byte[UConverterConstants.MAX_SUBCHAR_LEN]; in UConverterStaticData()
DUConverterConstants.java11 interface UConverterConstants { interface
DCharsetProviderICU.java56 if (charsetName.endsWith(UConverterConstants.OPTION_SWAP_LFNL_STRING)) { in charsetForName()
58 optionsString = UConverterConstants.OPTION_SWAP_LFNL_STRING; in charsetForName()
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()
DCharsetUTF7.java475 …toUnicodeStatus=(inDirectMode<<24 | ((base64Counter & UConverterConstants.UNSIGNED_BYTE_MASK)<<16)… in decodeLoop()
763 …atus=((status&0xf0000000) | (inDirectMode<<24) | ((base64Counter & UConverterConstants.UNSIGNED_BY… in encodeLoop()
DUConverterDataReader.java447 byte[] name = new byte[UConverterConstants.MAX_CONVERTER_NAME_LENGTH]; in readStaticData()
DCharsetDecoderICU.java663 dst[dstOffset++]=(char)(src[srcOffset++] & UConverterConstants.UNSIGNED_BYTE_MASK); in copy()
DCharsetEncoderICU.java246 preFromUFirstCP = UConverterConstants.U_SENTINEL; in fromUnicodeReset()
DCharsetCompoundText.java567 … target.put((char)(UConverterConstants.UNSIGNED_BYTE_MASK&source.get())); in decodeLoop()