Home
last modified time | relevance | path

Searched refs:codeUnit (Results 1 – 13 of 13) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_Unicode.java40 static int adjustConfidence(int codeUnit, int confidence) { in adjustConfidence() argument
41 if (codeUnit == 0) { in adjustConfidence()
43 } else if ((codeUnit >= 0x20 && codeUnit <= 0xff) || codeUnit == 0x0a) { in adjustConfidence()
70 int codeUnit = codeUnit16FromBytes(input[charIndex], input[charIndex + 1]); in match() local
71 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
75 confidence = adjustConfidence(codeUnit, confidence); in match()
106 int codeUnit = codeUnit16FromBytes(input[charIndex+1], input[charIndex]); in match() local
107 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
111 confidence = adjustConfidence(codeUnit, confidence); in match()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_Unicode.java41 static int adjustConfidence(int codeUnit, int confidence) { in adjustConfidence() argument
42 if (codeUnit == 0) { in adjustConfidence()
44 } else if ((codeUnit >= 0x20 && codeUnit <= 0xff) || codeUnit == 0x0a) { in adjustConfidence()
71 int codeUnit = codeUnit16FromBytes(input[charIndex], input[charIndex + 1]); in match() local
72 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
76 confidence = adjustConfidence(codeUnit, confidence); in match()
107 int codeUnit = codeUnit16FromBytes(input[charIndex+1], input[charIndex]); in match() local
108 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
112 confidence = adjustConfidence(codeUnit, confidence); in match()
DStringSearch.java1235 char codeUnit = iter.setIndex(index); in codePointAt() local
1236 int cp = codeUnit; in codePointAt()
1237 if (Character.isHighSurrogate(codeUnit)) { in codePointAt()
1240 cp = Character.toCodePoint(codeUnit, nextUnit); in codePointAt()
1250 char codeUnit = iter.previous(); in codePointBefore() local
1251 int cp = codeUnit; in codePointBefore()
1252 if (Character.isLowSurrogate(codeUnit)) { in codePointBefore()
1255 cp = Character.toCodePoint(prevUnit, codeUnit); in codePointBefore()
/external/icu/icu4c/source/i18n/
Dcsrucode.cpp40 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { in adjustConfidence() argument
41 if (codeUnit == 0) { in adjustConfidence()
43 } else if ((codeUnit >= 0x20 && codeUnit <= 0xff) || codeUnit == 0x0a) { in adjustConfidence()
63 UChar codeUnit = (input[charIndex] << 8) | input[charIndex + 1]; in match() local
64 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
68 confidence = adjustConfidence(codeUnit, confidence); in match()
98 UChar codeUnit = input[charIndex] | (input[charIndex + 1] << 8); in match() local
99 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
106 confidence = adjustConfidence(codeUnit, confidence); in match()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/encoders/
DUTF8.java115 byte codeUnit = utf8[i++]; in transcodeToUTF16()
116 if (codeUnit >= 0) in transcodeToUTF16()
120 utf16[j++] = (char)codeUnit; in transcodeToUTF16()
124 short first = firstUnitTable[codeUnit & 0x7F]; in transcodeToUTF16()
132 codeUnit = utf8[i++]; in transcodeToUTF16()
133 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16()
134 state = transitionTable[state + ((codeUnit & 0xFF) >>> 4)]; in transcodeToUTF16()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DUTF8.java113 byte codeUnit = utf8[i++]; in transcodeToUTF16()
114 if (codeUnit >= 0) in transcodeToUTF16()
118 utf16[j++] = (char)codeUnit; in transcodeToUTF16()
122 short first = firstUnitTable[codeUnit & 0x7F]; in transcodeToUTF16()
130 codeUnit = utf8[i++]; in transcodeToUTF16()
131 codePoint = (codePoint << 6) | (codeUnit & 0x3F); in transcodeToUTF16()
132 state = transitionTable[state + ((codeUnit & 0xFF) >>> 4)]; in transcodeToUTF16()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2_32.java128 public int getFromU16SingleLead(char codeUnit){ in getFromU16SingleLead() argument
132 ix = index[codeUnit >> UTRIE2_SHIFT_2]; in getFromU16SingleLead()
133 ix = (ix << UTRIE2_INDEX_SHIFT) + (codeUnit & UTRIE2_DATA_MASK); in getFromU16SingleLead()
DTrie2_16.java129 public int getFromU16SingleLead(char codeUnit) { in getFromU16SingleLead() argument
135 ix = index[codeUnit >> UTRIE2_SHIFT_2]; in getFromU16SingleLead()
136 ix = (ix << UTRIE2_INDEX_SHIFT) + (codeUnit & UTRIE2_DATA_MASK); in getFromU16SingleLead()
DTrie2Writable.java556 public Trie2Writable setForLeadSurrogateCodeUnit(char codeUnit, int value) { in setForLeadSurrogateCodeUnit() argument
558 set(codeUnit, false, value); in setForLeadSurrogateCodeUnit()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2_16.java131 public int getFromU16SingleLead(char codeUnit) { in getFromU16SingleLead() argument
137 ix = index[codeUnit >> UTRIE2_SHIFT_2]; in getFromU16SingleLead()
138 ix = (ix << UTRIE2_INDEX_SHIFT) + (codeUnit & UTRIE2_DATA_MASK); in getFromU16SingleLead()
DTrie2_32.java130 public int getFromU16SingleLead(char codeUnit){ in getFromU16SingleLead() argument
134 ix = index[codeUnit >> UTRIE2_SHIFT_2]; in getFromU16SingleLead()
135 ix = (ix << UTRIE2_INDEX_SHIFT) + (codeUnit & UTRIE2_DATA_MASK); in getFromU16SingleLead()
DTrie2Writable.java558 public Trie2Writable setForLeadSurrogateCodeUnit(char codeUnit, int value) { in setForLeadSurrogateCodeUnit() argument
560 set(codeUnit, false, value); in setForLeadSurrogateCodeUnit()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DStringSearch.java1251 char codeUnit = iter.setIndex(index); in codePointAt() local
1252 int cp = codeUnit; in codePointAt()
1253 if (Character.isHighSurrogate(codeUnit)) { in codePointAt()
1256 cp = Character.toCodePoint(codeUnit, nextUnit); in codePointAt()
1266 char codeUnit = iter.previous(); in codePointBefore() local
1267 int cp = codeUnit; in codePointBefore()
1268 if (Character.isLowSurrogate(codeUnit)) { in codePointBefore()
1271 cp = Character.toCodePoint(prevUnit, codeUnit); in codePointBefore()