Home
last modified time | relevance | path

Searched refs:sourceChar (Results 1 – 9 of 9) sorted by relevance

/external/icu/icu4c/source/common/
Ducnvisci.c900 UChar32 sourceChar = 0x0000; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() local
916 if ((sourceChar = args->converter->fromUChar32)!=0) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
934 sourceChar = *source++; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
940 if (sourceChar <= ASCII_END) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
941 args->converter->fromUnicodeStatus = sourceChar; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
942 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
948 switch (sourceChar) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
971 if ((uint16_t)(INDIC_BLOCK_END-sourceChar) <= INDIC_RANGE) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
976 if (sourceChar!= DANDA && sourceChar != DOUBLE_DANDA) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
978 range =(uint16_t)((sourceChar-INDIC_BLOCK_BEGIN)/DELTA); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
[all …]
Ducnv2022.cpp1374 const uint32_t sourceChar, const uint32_t targetUniChar, in toUnicodeCallback() argument
1376 if(sourceChar>0xff){ in toUnicodeCallback()
1377 cnv->toUBytes[0] = (uint8_t)(sourceChar>>8); in toUnicodeCallback()
1378 cnv->toUBytes[1] = (uint8_t)sourceChar; in toUnicodeCallback()
1382 cnv->toUBytes[0] =(char) sourceChar; in toUnicodeCallback()
1679 UChar32 sourceChar; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() local
1697 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1704 sourceChar = *(source++); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1706 if(U16_IS_SURROGATE(sourceChar)) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1707 if(U16_IS_SURROGATE_LEAD(sourceChar)) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
[all …]
Ducnv_ct.c337 UChar32 sourceChar; in UConverter_fromUnicode_CompoundText_OFFSETS() local
351 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
358 sourceChar = *(source++); in UConverter_fromUnicode_CompoundText_OFFSETS()
360 if(U16_IS_SURROGATE(sourceChar)) { in UConverter_fromUnicode_CompoundText_OFFSETS()
361 if(U16_IS_SURROGATE_LEAD(sourceChar)) { in UConverter_fromUnicode_CompoundText_OFFSETS()
369 sourceChar=U16_GET_SUPPLEMENTARY(sourceChar, trail); in UConverter_fromUnicode_CompoundText_OFFSETS()
377 cnv->fromUChar32=sourceChar; in UConverter_fromUnicode_CompoundText_OFFSETS()
382 cnv->fromUChar32=sourceChar; in UConverter_fromUnicode_CompoundText_OFFSETS()
389 cnv->fromUChar32=sourceChar; in UConverter_fromUnicode_CompoundText_OFFSETS()
395 tmpState = getState(sourceChar); in UConverter_fromUnicode_CompoundText_OFFSETS()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetISO2022.java762 …private static CoderResult toUnicodeCallback(CharsetDecoderICU cnv, int sourceChar, int targetUniC… in toUnicodeCallback() argument
764 if (sourceChar > 0xff) { in toUnicodeCallback()
765 cnv.toUBytesArray[0] = (byte)(sourceChar>>8); in toUnicodeCallback()
766 cnv.toUBytesArray[1] = (byte)sourceChar; in toUnicodeCallback()
769 cnv.toUBytesArray[0] = (byte)sourceChar; in toUnicodeCallback()
1737 int sourceChar; in encodeLoop() local
1751 if ((sourceChar = fromUChar32) != 0 && target.hasRemaining()) { in encodeLoop()
1759 sourceChar = source.get(); in encodeLoop()
1762 if (getTrail || UTF16.isSurrogate((char)sourceChar)) { in encodeLoop()
1763 if (getTrail || UTF16.isLeadSurrogate((char)sourceChar)) { in encodeLoop()
[all …]
DCharsetISCII.java832 short sourceChar = 0x0000; in decodeLoop() local
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()
854 … data.currentDeltaToUnicode = (short)(lookupTable[sourceChar & 0x0F][0] * UniLang.DELTA); in decodeLoop()
855 data.currentMaskToUnicode = lookupTable[sourceChar & 0x0F][1]; in decodeLoop()
856 } else if (sourceChar == ISCIILang.DEF) { in decodeLoop()
861 if ((sourceChar >= 0x21 && sourceChar <= 0x3F)) { in decodeLoop()
877 …if (((short)(EXT_RANGE_END - sourceChar) & UConverterConstants.UNSIGNED_BYTE_MASK) <= (EXT_RANGE_E… in decodeLoop()
879 if (sourceChar == 0xBF || sourceChar == 0xB8) { in decodeLoop()
880 targetUniChar = (sourceChar == 0xBF) ? DEV_ABBR_SIGN : DEV_ANUDATTA; in decodeLoop()
[all …]
DCharsetCompoundText.java346 int sourceChar; in encodeLoop() local
362 if ((sourceChar = fromUChar32) != 0 && target.hasRemaining()) { in encodeLoop()
370 sourceChar = source.get(); in encodeLoop()
378 if (UTF16.isSurrogate((char)sourceChar) || gotoGetTrail) { in encodeLoop()
379 if (UTF16.isLeadSurrogate((char)sourceChar) || gotoGetTrail) { in encodeLoop()
391 sourceChar = UCharacter.getCodePoint((char)sourceChar, trail); in encodeLoop()
399 fromUChar32 = sourceChar; in encodeLoop()
404 fromUChar32 = sourceChar; in encodeLoop()
411 fromUChar32 = sourceChar; in encodeLoop()
416 tmpState = getState(sourceChar); in encodeLoop()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationBuilder.java989 int sourceChar = Collation.SENTINEL_CP;
995 if(sourceChar < 0) {
997 sourceChar = Character.codePointAt(nfdString, sourceIndex);
998 sourceCC = nfd.getCombiningClass(sourceChar);
1017 } else if(decompChar != sourceChar) {
1024 sourceChar = Collation.SENTINEL_CP;
1028 if(sourceChar >= 0) { // more characters from nfdString but not from decomp
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationBuilder.java993 int sourceChar = Collation.SENTINEL_CP;
999 if(sourceChar < 0) {
1001 sourceChar = Character.codePointAt(nfdString, sourceIndex);
1002 sourceCC = nfd.getCombiningClass(sourceChar);
1021 } else if(decompChar != sourceChar) {
1028 sourceChar = Collation.SENTINEL_CP;
1032 if(sourceChar >= 0) { // more characters from nfdString but not from decomp
/external/icu/icu4c/source/i18n/
Dcollationbuilder.cpp1248 UChar32 sourceChar = U_SENTINEL; in mergeCompositeIntoString() local
1254 if(sourceChar < 0) { in mergeCompositeIntoString()
1256 sourceChar = nfdString.char32At(sourceIndex); in mergeCompositeIntoString()
1257 sourceCC = nfd.getCombiningClass(sourceChar); in mergeCompositeIntoString()
1276 } else if(decompChar != sourceChar) { in mergeCompositeIntoString()
1283 sourceChar = U_SENTINEL; in mergeCompositeIntoString()
1287 if(sourceChar >= 0) { // more characters from nfdString but not from decomp in mergeCompositeIntoString()