/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UTF16Test.java | 15 import com.ibm.icu.text.UTF16; 16 import com.ibm.icu.text.UTF16.StringComparator; 50 UTF16.append(strbuff, i); in TestAppend() 51 arraysize = UTF16.append(array, arraysize, i); in TestAppend() 65 if (UTF16.countCodePoint(strbuff) != strsize + (i / 100) + 1) { in TestAppend() 74 UTF16.appendCodePoint(strbuff, 0x10000); in TestAppend() 90 int boundtype[] = {UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() 91 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() 92 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() 93 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UTF16Test.java | 16 import android.icu.text.UTF16; 17 import android.icu.text.UTF16.StringComparator; 54 UTF16.append(strbuff, i); in TestAppend() 55 arraysize = UTF16.append(array, arraysize, i); in TestAppend() 69 if (UTF16.countCodePoint(strbuff) != strsize + (i / 100) + 1) { in TestAppend() 78 UTF16.appendCodePoint(strbuff, 0x10000); in TestAppend() 94 int boundtype[] = {UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() 95 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() 96 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() 97 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CharacterIteration.java | 11 import com.ibm.icu.text.UTF16; 33 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE && c<=UTF16.LEAD_SURROGATE_MAX_VALUE) { in next32() 35 if (c<UTF16.TRAIL_SURROGATE_MIN_VALUE || c>UTF16.TRAIL_SURROGATE_MAX_VALUE) { in next32() 45 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE) { in next32() 49 if (c >= UTF16.SUPPLEMENTARY_MIN_VALUE && c != DONE32) { in next32() 70 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { in nextTrail32() 72 if (UTF16.isTrailSurrogate(cTrail)) { in nextTrail32() 73 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + in nextTrail32() 74 (cTrail - UTF16.TRAIL_SURROGATE_MIN_VALUE) + in nextTrail32() 75 UTF16.SUPPLEMENTARY_MIN_VALUE; in nextTrail32() [all …]
|
D | PatternTokenizer.java | 9 import com.ibm.icu.text.UTF16; 166 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { in quoteLiteral() 167 cp = UTF16.charAt(string, i); in quoteLiteral() 181 UTF16.append(result, cp); in quoteLiteral() 190 UTF16.append(result, cp); in quoteLiteral() 200 UTF16.append(result, cp); in quoteLiteral() 214 UTF16.append(result, cp); in quoteLiteral() 264 for (int i = start; i < limit; i += UTF16.getCharCount(cp)) { in next() 265 cp = UTF16.charAt(pattern, i); in next() 282 UTF16.append(buffer, cp); in next() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | CharacterIteration.java | 12 import android.icu.text.UTF16; 37 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE && c<=UTF16.LEAD_SURROGATE_MAX_VALUE) { in next32() 39 if (c<UTF16.TRAIL_SURROGATE_MIN_VALUE || c>UTF16.TRAIL_SURROGATE_MAX_VALUE) { in next32() 49 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE) { in next32() 53 if (c >= UTF16.SUPPLEMENTARY_MIN_VALUE && c != DONE32) { in next32() 74 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { in nextTrail32() 76 if (UTF16.isTrailSurrogate(cTrail)) { in nextTrail32() 77 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + in nextTrail32() 78 (cTrail - UTF16.TRAIL_SURROGATE_MIN_VALUE) + in nextTrail32() 79 UTF16.SUPPLEMENTARY_MIN_VALUE; in nextTrail32() [all …]
|
D | PatternTokenizer.java | 10 import android.icu.text.UTF16; 168 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { in quoteLiteral() 169 cp = UTF16.charAt(string, i); in quoteLiteral() 183 UTF16.append(result, cp); in quoteLiteral() 192 UTF16.append(result, cp); in quoteLiteral() 202 UTF16.append(result, cp); in quoteLiteral() 216 UTF16.append(result, cp); in quoteLiteral() 266 for (int i = start; i < limit; i += UTF16.getCharCount(cp)) { in next() 267 cp = UTF16.charAt(pattern, i); in next() 284 UTF16.append(buffer, cp); in next() [all …]
|
/external/google-breakpad/src/common/ |
D | convert_UTF.h | 110 typedef unsigned short UTF16; /* at least 16 bits */ typedef 139 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags); 141 ConversionResult ConvertUTF16toUTF8 (const UTF16** sourceStart, const UTF16* sourceEnd, 150 ConversionResult ConvertUTF16toUTF32 (const UTF16** sourceStart, const UTF16* sourceEnd, 154 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
|
D | convert_UTF.c | 83 … UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16() 86 UTF16* target = *targetStart; in ConvertUTF32toUTF16() 104 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16() 119 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16() 120 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16() 130 ConversionResult ConvertUTF16toUTF32 (const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32() 133 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32() 137 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32() 233 ConversionResult ConvertUTF16toUTF8 (const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF8() 236 const UTF16* source = *sourceStart; in ConvertUTF16toUTF8() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/ |
D | TestUCharacterIterator.java | 15 import com.ibm.icu.text.UTF16; 103 if (UTF16.getLeadSurrogate(ch) != iterator.next() || in TestIteration() 104 UTF16.getTrailSurrogate(ch) != iterator.next()) { in TestIteration() 123 if (UTF16.getLeadSurrogate(ch) != iterator.previous() || in TestIteration() 124 UTF16.getTrailSurrogate(ch) != iterator.previous()) { in TestIteration() 158 if (iter.currentCodePoint() != UTF16.charAt(text,1)) in TestIterationUChar32() 166 if(c != UTF16.charAt(text,1) || i!=1) in TestIterationUChar32() 167 …veCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + … in TestIterationUChar32() 171 if(c != UTF16.charAt(text,4) || i!=4) in TestIterationUChar32() 172 …veCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,4)) + … in TestIterationUChar32() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CanonicalIterator.java | 135 int i = UTF16.findOffsetFromCodePoint(source, 1); in setSource() 172 if (source.length() <= 2 && UTF16.countCodePoint(source) <= 1) { in permute() 180 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { in permute() 181 cp = UTF16.charAt(source, i); in permute() 194 + source.substring(i + UTF16.getCharCount(cp)), skipZeros, subpermute); in permute() 197 String chStr = UTF16.valueOf(source, i); in permute() 316 prefix += UTF16.valueOf(cp2); in getEquivalents2() 367 if (PROGRESS) System.out.println(" extract: " + Utility.hex(UTF16.valueOf(comp)) in extract() 372 decomp = UTF16.valueOf(comp); in extract() 379 int decompCp = UTF16.charAt(decomp,0); in extract() [all …]
|
D | BidiWriter.java | 55 c = UTF16.charAt(src, i); in doWriteForward() 56 i += UTF16.getCharCount(c); in doWriteForward() 57 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward() 82 c = UTF16.charAt(src, i); in doWriteForward() 83 i += UTF16.getCharCount(c); in doWriteForward() 85 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward() 145 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse() 173 c = UTF16.charAt(src, srcLength - 1); in writeReverse() 174 srcLength -= UTF16.getCharCount(c); in writeReverse() 199 int c = UTF16.charAt(src, srcLength - 1); in writeReverse() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CanonicalIterator.java | 131 int i = UTF16.findOffsetFromCodePoint(source, 1); in setSource() 168 if (source.length() <= 2 && UTF16.countCodePoint(source) <= 1) { in permute() 176 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { in permute() 177 cp = UTF16.charAt(source, i); in permute() 190 + source.substring(i + UTF16.getCharCount(cp)), skipZeros, subpermute); in permute() 193 String chStr = UTF16.valueOf(source, i); in permute() 312 prefix += UTF16.valueOf(cp2); in getEquivalents2() 363 if (PROGRESS) System.out.println(" extract: " + Utility.hex(UTF16.valueOf(comp)) in extract() 368 decomp = UTF16.valueOf(comp); in extract() 375 int decompCp = UTF16.charAt(decomp,0); in extract() [all …]
|
D | BidiWriter.java | 56 c = UTF16.charAt(src, i); in doWriteForward() 57 i += UTF16.getCharCount(c); in doWriteForward() 58 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward() 83 c = UTF16.charAt(src, i); in doWriteForward() 84 i += UTF16.getCharCount(c); in doWriteForward() 86 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward() 146 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse() 174 c = UTF16.charAt(src, srcLength - 1); in writeReverse() 175 srcLength -= UTF16.getCharCount(c); in writeReverse() 200 int c = UTF16.charAt(src, srcLength - 1); in writeReverse() [all …]
|
/external/antlr/antlr-3.4/runtime/C/include/ |
D | antlr3convertutf.h | 107 typedef ANTLR3_UINT16 UTF16; /* at least 16 bits */ typedef 146 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags); 149 const UTF16** sourceStart, const UTF16* sourceEnd, 161 const UTF16** sourceStart, const UTF16* sourceEnd, 166 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/ |
D | TestUCharacterIterator.java | 16 import android.icu.text.UTF16; 107 if (UTF16.getLeadSurrogate(ch) != iterator.next() || in TestIteration() 108 UTF16.getTrailSurrogate(ch) != iterator.next()) { in TestIteration() 127 if (UTF16.getLeadSurrogate(ch) != iterator.previous() || in TestIteration() 128 UTF16.getTrailSurrogate(ch) != iterator.previous()) { in TestIteration() 162 if (iter.currentCodePoint() != UTF16.charAt(text,1)) in TestIterationUChar32() 170 if(c != UTF16.charAt(text,1) || i!=1) in TestIterationUChar32() 171 …veCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + … in TestIterationUChar32() 175 if(c != UTF16.charAt(text,4) || i!=4) in TestIterationUChar32() 176 …veCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,4)) + … in TestIterationUChar32() [all …]
|
/external/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3convertutf.c | 54 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16() 57 UTF16* target = *targetStart; in ConvertUTF32toUTF16() 75 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16() 90 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16() 91 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16() 102 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32() 105 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32() 109 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32() 206 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF8() 209 const UTF16* source = *sourceStart; in ConvertUTF16toUTF8() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ConvertUTF.h | 102 typedef unsigned short UTF16; /* at least 16 bits */ typedef 137 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags); 156 const UTF16** sourceStart, const UTF16* sourceEnd, 164 const UTF16** sourceStart, const UTF16* sourceEnd, 169 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags); 260 SmallVectorImpl<UTF16> &DstUTF16);
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/ |
D | WriteIndicCharts.java | 16 import com.ibm.icu.text.UTF16; 84 arr[0]=UTF16.valueOf(i+ 0xE000); in writeIICharts() 85 table.put(UTF16.valueOf(i),arr); in writeIICharts() 103 String[] temp = (String[])table.get(UTF16.valueOf(i)); in writeIICharts() 106 … if(UCharacter.getExtendedName(UTF16.charAt(temp[k],0)).indexOf("unassigned")<0 || in writeIICharts() 144 nameBuf.append(UCharacter.getExtendedName(UTF16.charAt(str,f))); in writeIICharts() 149 … if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ in writeIICharts() 157 … if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ in writeIICharts() 163 … if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ in writeIICharts() 208 arr[0]=UTF16.valueOf((i&0xFF) + 0xE000); in writeCharts() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | PrettyPrinter.java | 21 import android.icu.text.UTF16; 22 import android.icu.text.UTF16.StringComparator; 29 … private static final StringComparator CODEPOINT_ORDER = new UTF16.StringComparator(true,false,0); 131 orderedStrings.add(UTF16.valueOf(i)); in format() 161 if (UTF16.hasMoreCodePointsThan(s, 1)) { in appendUnicodeSetItem() 167 appendUnicodeSetItem(UTF16.charAt(s, 0)); in appendUnicodeSetItem() 191 int cp = UTF16.charAt(s,0); in addSpaceAsNeededBefore() 196 } else if (type == UCharacter.SURROGATE && cp >= UTF16.TRAIL_SURROGATE_MIN_VALUE) { in addSpaceAsNeededBefore() 204 addSpaceAsNeededBefore(UTF16.valueOf(codepoint)); in addSpaceAsNeededBefore() 219 lastString = UTF16.valueOf(lastCodePoint); in flushLast() [all …]
|
D | ICUPropertyFactory.java | 28 import android.icu.text.UTF16; 61 return UTF16.valueOf(UCharacter.getMirror(codePoint)); in _getValue() 63 return UCharacter.foldCase(UTF16.valueOf(codePoint), true); in _getValue() 67 return UCharacter.toLowerCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() 71 return UTF16.valueOf(UCharacter.foldCase(codePoint, true)); in _getValue() 73 return UTF16.valueOf(UCharacter.toLowerCase(codePoint)); in _getValue() 75 return UTF16.valueOf(UCharacter.toTitleCase(codePoint)); in _getValue() 77 return UTF16.valueOf(UCharacter.toUpperCase(codePoint)); in _getValue() 79 return UCharacter.toTitleCase(Locale.ENGLISH, UTF16.valueOf(codePoint), null); in _getValue() 83 return UCharacter.toUpperCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() [all …]
|
D | Tokenizer.java | 18 import android.icu.text.UTF16; 174 index -= UTF16.getCharCount(cp); // BACKUP! in next() 189 UTF16.append(buffer, QUOTE); in next() 198 index -= UTF16.getCharCount(cp); // BACKUP! in next() 200 } else UTF16.append(buffer,cp); in next() 204 else UTF16.append(buffer,cp); in next() 212 UTF16.append(buffer,cp); in next() 241 int cp = UTF16.charAt(source,index); in nextChar() 242 index += UTF16.getCharCount(cp); in nextChar() 310 for (i = start; i < limit; i += UTF16.getCharCount(cp)) { in parseReference() [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | PrettyPrinter.java | 20 import com.ibm.icu.text.UTF16; 21 import com.ibm.icu.text.UTF16.StringComparator; 28 … private static final StringComparator CODEPOINT_ORDER = new UTF16.StringComparator(true,false,0); 130 orderedStrings.add(UTF16.valueOf(i)); in format() 160 if (UTF16.hasMoreCodePointsThan(s, 1)) { in appendUnicodeSetItem() 166 appendUnicodeSetItem(UTF16.charAt(s, 0)); in appendUnicodeSetItem() 190 int cp = UTF16.charAt(s,0); in addSpaceAsNeededBefore() 195 } else if (type == UCharacter.SURROGATE && cp >= UTF16.TRAIL_SURROGATE_MIN_VALUE) { in addSpaceAsNeededBefore() 203 addSpaceAsNeededBefore(UTF16.valueOf(codepoint)); in addSpaceAsNeededBefore() 218 lastString = UTF16.valueOf(lastCodePoint); in flushLast() [all …]
|
/external/llvm/lib/Support/ |
D | ConvertUTF.c | 120 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16() 123 UTF16* target = *targetStart; in ConvertUTF32toUTF16() 141 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16() 156 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16() 157 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16() 168 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32() 171 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32() 175 … const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32() 222 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF8() 225 const UTF16* source = *sourceStart; in ConvertUTF16toUTF8() [all …]
|
D | ConvertUTFWrapper.cpp | 35 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide() 95 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String() 96 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); in convertUTF16ToUTF8String() 99 std::vector<UTF16> ByteSwapped; in convertUTF16ToUTF8String() 134 SmallVectorImpl<UTF16> &DstUTF16) { in convertUTF8ToUTF16String() 153 UTF16 *Dst = &DstUTF16[0]; in convertUTF8ToUTF16String() 154 UTF16 *DstEnd = Dst + DstUTF16.size(); in convertUTF8ToUTF16String()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | ICUPropertyFactory.java | 27 import com.ibm.icu.text.UTF16; 60 return UTF16.valueOf(UCharacter.getMirror(codePoint)); in _getValue() 62 return UCharacter.foldCase(UTF16.valueOf(codePoint), true); in _getValue() 66 return UCharacter.toLowerCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() 70 return UTF16.valueOf(UCharacter.foldCase(codePoint, true)); in _getValue() 72 return UTF16.valueOf(UCharacter.toLowerCase(codePoint)); in _getValue() 74 return UTF16.valueOf(UCharacter.toTitleCase(codePoint)); in _getValue() 76 return UTF16.valueOf(UCharacter.toUpperCase(codePoint)); in _getValue() 78 return UCharacter.toTitleCase(Locale.ENGLISH, UTF16.valueOf(codePoint), null); in _getValue() 82 return UCharacter.toUpperCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() [all …]
|