Home
last modified time | relevance | path

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

/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.java1236 char codeUnit = iter.setIndex(index); in codePointAt() local
1237 int cp = codeUnit; in codePointAt()
1238 if (Character.isHighSurrogate(codeUnit)) { in codePointAt()
1241 cp = Character.toCodePoint(codeUnit, nextUnit); in codePointAt()
1251 char codeUnit = iter.previous(); in codePointBefore() local
1252 int cp = codeUnit; in codePointBefore()
1253 if (Character.isLowSurrogate(codeUnit)) { in codePointBefore()
1256 cp = Character.toCodePoint(prevUnit, codeUnit); in codePointBefore()
/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/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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
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()
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()
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.java1252 char codeUnit = iter.setIndex(index); in codePointAt() local
1253 int cp = codeUnit; in codePointAt()
1254 if (Character.isHighSurrogate(codeUnit)) { in codePointAt()
1257 cp = Character.toCodePoint(codeUnit, nextUnit); in codePointAt()
1267 char codeUnit = iter.previous(); in codePointBefore() local
1268 int cp = codeUnit; in codePointBefore()
1269 if (Character.isLowSurrogate(codeUnit)) { in codePointBefore()
1272 cp = Character.toCodePoint(prevUnit, codeUnit); in codePointBefore()