Home
last modified time | relevance | path

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

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_Unicode.java36 static int adjustConfidence(int codeUnit, int confidence) { in adjustConfidence() argument
37 if (codeUnit == 0) { in adjustConfidence()
39 } else if ((codeUnit >= 0x20 && codeUnit <= 0xff) || codeUnit == 0x0a) { in adjustConfidence()
64 int codeUnit = codeUnit16FromBytes(input[charIndex], input[charIndex + 1]); in match() local
65 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
69 confidence = adjustConfidence(codeUnit, confidence); in match()
98 int codeUnit = codeUnit16FromBytes(input[charIndex+1], input[charIndex]); in match() local
99 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
103 confidence = adjustConfidence(codeUnit, confidence); in match()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_Unicode.java37 static int adjustConfidence(int codeUnit, int confidence) { in adjustConfidence() argument
38 if (codeUnit == 0) { in adjustConfidence()
40 } else if ((codeUnit >= 0x20 && codeUnit <= 0xff) || codeUnit == 0x0a) { in adjustConfidence()
65 int codeUnit = codeUnit16FromBytes(input[charIndex], input[charIndex + 1]); in match() local
66 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
70 confidence = adjustConfidence(codeUnit, confidence); in match()
99 int codeUnit = codeUnit16FromBytes(input[charIndex+1], input[charIndex]); in match() local
100 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
104 confidence = adjustConfidence(codeUnit, confidence); in match()
DStringSearch.java1234 char codeUnit = iter.setIndex(index); in codePointAt() local
1235 int cp = codeUnit; in codePointAt()
1236 if (Character.isHighSurrogate(codeUnit)) { in codePointAt()
1239 cp = Character.toCodePoint(codeUnit, nextUnit); in codePointAt()
1249 char codeUnit = iter.previous(); in codePointBefore() local
1250 int cp = codeUnit; in codePointBefore()
1251 if (Character.isLowSurrogate(codeUnit)) { in codePointBefore()
1254 cp = Character.toCodePoint(prevUnit, codeUnit); in codePointBefore()
/external/icu/icu4c/source/i18n/
Dcsrucode.cpp38 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { in adjustConfidence() argument
39 if (codeUnit == 0) { in adjustConfidence()
41 } else if ((codeUnit >= 0x20 && codeUnit <= 0xff) || codeUnit == 0x0a) { in adjustConfidence()
61 UChar codeUnit = (input[charIndex] << 8) | input[charIndex + 1]; in match() local
62 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
66 confidence = adjustConfidence(codeUnit, confidence); in match()
96 UChar codeUnit = input[charIndex] | (input[charIndex + 1] << 8); in match() local
97 if (charIndex == 0 && codeUnit == 0xFEFF) { in match()
104 confidence = adjustConfidence(codeUnit, confidence); in match()
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/
DInstructionCodec.java74 codeUnit(insn.getOpcodeUnit(), in FORMAT_12X()
93 codeUnit(insn.getOpcodeUnit(), in FORMAT_11N()
110 out.write(codeUnit(insn.getOpcode(), insn.getA())); in FORMAT_11X()
127 out.write(codeUnit(insn.getOpcode(), relativeTarget)); in FORMAT_10T()
163 codeUnit(insn.getOpcode(), insn.getLiteralByte()), in FORMAT_20BC()
182 codeUnit(insn.getOpcode(), insn.getA()), in FORMAT_22X()
202 out.write(codeUnit(insn.getOpcode(), insn.getA()), relativeTarget); in FORMAT_21T()
220 codeUnit(insn.getOpcode(), insn.getA()), in FORMAT_21S()
251 out.write(codeUnit(opcode, insn.getA()), literal); in FORMAT_21H()
270 codeUnit(insn.getOpcode(), insn.getA()), in FORMAT_21C()
[all …]
DShortArrayCodeOutput.java57 public void write(short codeUnit) { in write() argument
58 array[cursor()] = codeUnit; in write()
DCodeOutput.java26 public void write(short codeUnit); in write() argument
/external/icu/android_icu4j/src/main/java/android/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/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2_32.java126 public int getFromU16SingleLead(char codeUnit){ in getFromU16SingleLead() argument
130 ix = index[codeUnit >> UTRIE2_SHIFT_2]; in getFromU16SingleLead()
131 ix = (ix << UTRIE2_INDEX_SHIFT) + (codeUnit & UTRIE2_DATA_MASK); in getFromU16SingleLead()
DTrie2_16.java127 public int getFromU16SingleLead(char codeUnit) { in getFromU16SingleLead() argument
133 ix = index[codeUnit >> UTRIE2_SHIFT_2]; in getFromU16SingleLead()
134 ix = (ix << UTRIE2_INDEX_SHIFT) + (codeUnit & UTRIE2_DATA_MASK); in getFromU16SingleLead()
DTrie2Writable.java554 public Trie2Writable setForLeadSurrogateCodeUnit(char codeUnit, int value) { in setForLeadSurrogateCodeUnit() argument
556 set(codeUnit, false, value); in setForLeadSurrogateCodeUnit()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DStringSearch.java1250 char codeUnit = iter.setIndex(index); in codePointAt() local
1251 int cp = codeUnit; in codePointAt()
1252 if (Character.isHighSurrogate(codeUnit)) { in codePointAt()
1255 cp = Character.toCodePoint(codeUnit, nextUnit); in codePointAt()
1265 char codeUnit = iter.previous(); in codePointBefore() local
1266 int cp = codeUnit; in codePointBefore()
1267 if (Character.isLowSurrogate(codeUnit)) { in codePointBefore()
1270 cp = Character.toCodePoint(prevUnit, codeUnit); in codePointBefore()
/external/dexmaker/src/dx/java/com/android/dx/dex/code/
DOddSpacer.java51 out.writeShort(InsnFormat.codeUnit(Opcodes.NOP, 0)); in writeTo()
DInsnFormat.java525 protected static short codeUnit(int low, int high) { in codeUnit() method in InsnFormat
546 protected static short codeUnit(int n0, int n1, int n2, int n3) { in codeUnit() method in InsnFormat
/external/dexmaker/src/dx/java/com/android/dx/dex/code/form/
DForm23x.java94 codeUnit(regs.get(1).getReg(), regs.get(2).getReg())); in writeTo()
DForm33x.java98 codeUnit(regs.get(0).getReg(), regs.get(1).getReg()), in writeTo()
DForm22b.java111 codeUnit(regs.get(1).getReg(), value & 0xff)); in writeTo()
DForm32s.java115 codeUnit(regs.get(0).getReg(), regs.get(1).getReg()), in writeTo()
DForm35c.java136 codeUnit(r0, r1, r2, r3)); in writeTo()
/external/v8/test/mjsunit/asm/embenchen/
Dcopy.js831 var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
832 if (codeUnit == 0)
836 str += String.fromCharCode(codeUnit);
846 var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
847 HEAP16[(((outPtr)+(i*2))>>1)]=codeUnit;
883 var codeUnit = str.charCodeAt(iCodeUnit); // possibly a lead surrogate
884 if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
886 codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
888 HEAP32[(((outPtr)+(iChar*4))>>2)]=codeUnit;
Dcorrections.js831 var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
832 if (codeUnit == 0)
836 str += String.fromCharCode(codeUnit);
846 var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
847 HEAP16[(((outPtr)+(i*2))>>1)]=codeUnit;
883 var codeUnit = str.charCodeAt(iCodeUnit); // possibly a lead surrogate
884 if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
886 codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
888 HEAP32[(((outPtr)+(iChar*4))>>2)]=codeUnit;
Dprimes.js831 var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
832 if (codeUnit == 0)
836 str += String.fromCharCode(codeUnit);
846 var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
847 HEAP16[(((outPtr)+(i*2))>>1)]=codeUnit;
883 var codeUnit = str.charCodeAt(iCodeUnit); // possibly a lead surrogate
884 if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
886 codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
888 HEAP32[(((outPtr)+(iChar*4))>>2)]=codeUnit;
Dfannkuch.js862 var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
863 if (codeUnit == 0)
867 str += String.fromCharCode(codeUnit);
877 var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
878 HEAP16[(((outPtr)+(i*2))>>1)]=codeUnit;
914 var codeUnit = str.charCodeAt(iCodeUnit); // possibly a lead surrogate
915 if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
917 codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
919 HEAP32[(((outPtr)+(iChar*4))>>2)]=codeUnit;

12