Home
last modified time | relevance | path

Searched refs:UTF16 (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUTF16Test.java21 import com.ibm.icu.text.UTF16;
22 import com.ibm.icu.text.UTF16.StringComparator;
58 UTF16.append(strbuff, i); in TestAppend()
59 arraysize = UTF16.append(array, arraysize, i); in TestAppend()
73 if (UTF16.countCodePoint(strbuff) != strsize + (i / 100) + 1) { in TestAppend()
82 UTF16.appendCodePoint(strbuff, 0x10000); in TestAppend()
99 int boundtype[] = {UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
100 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
101 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
102 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUTF16Test.java22 import android.icu.text.UTF16;
23 import android.icu.text.UTF16.StringComparator;
61 UTF16.append(strbuff, i); in TestAppend()
62 arraysize = UTF16.append(array, arraysize, i); in TestAppend()
76 if (UTF16.countCodePoint(strbuff) != strsize + (i / 100) + 1) { in TestAppend()
85 UTF16.appendCodePoint(strbuff, 0x10000); in TestAppend()
102 int boundtype[] = {UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
103 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
104 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
105 UTF16.SINGLE_CHAR_BOUNDARY, in TestBounds()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCharacterIteration.java14 import android.icu.text.UTF16;
39 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE && c<=UTF16.LEAD_SURROGATE_MAX_VALUE) { in next32()
41 if (c<UTF16.TRAIL_SURROGATE_MIN_VALUE || c>UTF16.TRAIL_SURROGATE_MAX_VALUE) { in next32()
51 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE) { in next32()
55 if (c >= UTF16.SUPPLEMENTARY_MIN_VALUE && c != DONE32) { in next32()
76 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { in nextTrail32()
78 if (UTF16.isTrailSurrogate(cTrail)) { in nextTrail32()
79 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + in nextTrail32()
80 (cTrail - UTF16.TRAIL_SURROGATE_MIN_VALUE) + in nextTrail32()
81 UTF16.SUPPLEMENTARY_MIN_VALUE; in nextTrail32()
[all …]
DPatternTokenizer.java12 import android.icu.text.UTF16;
170 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { in quoteLiteral()
171 cp = UTF16.charAt(string, i); in quoteLiteral()
185 UTF16.append(result, cp); in quoteLiteral()
194 UTF16.append(result, cp); in quoteLiteral()
204 UTF16.append(result, cp); in quoteLiteral()
218 UTF16.append(result, cp); in quoteLiteral()
268 for (int i = start; i < limit; i += UTF16.getCharCount(cp)) { in next()
269 cp = UTF16.charAt(pattern, i); in next()
286 UTF16.append(buffer, cp); in next()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCharacterIteration.java13 import com.ibm.icu.text.UTF16;
35 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE && c<=UTF16.LEAD_SURROGATE_MAX_VALUE) { in next32()
37 if (c<UTF16.TRAIL_SURROGATE_MIN_VALUE || c>UTF16.TRAIL_SURROGATE_MAX_VALUE) { in next32()
47 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE) { in next32()
51 if (c >= UTF16.SUPPLEMENTARY_MIN_VALUE && c != DONE32) { in next32()
72 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { in nextTrail32()
74 if (UTF16.isTrailSurrogate(cTrail)) { in nextTrail32()
75 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + in nextTrail32()
76 (cTrail - UTF16.TRAIL_SURROGATE_MIN_VALUE) + in nextTrail32()
77 UTF16.SUPPLEMENTARY_MIN_VALUE; in nextTrail32()
[all …]
DPatternTokenizer.java11 import com.ibm.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/unicode/
DConvertUTF.h91 typedef unsigned short UTF16; /* at least 16 bits */ typedef
121 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
124 const UTF16** sourceStart, const UTF16* sourceEnd,
136 const UTF16** sourceStart, const UTF16* sourceEnd,
141 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
DConvertUTF.c63 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16()
66 UTF16* target = *targetStart; in ConvertUTF32toUTF16()
84 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
99 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
100 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
111 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32()
114 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32()
118 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32()
215 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF8()
218 const UTF16* source = *sourceStart; in ConvertUTF16toUTF8()
[all …]
/external/google-breakpad/src/common/
Dconvert_UTF.h112 typedef unsigned short UTF16; /* at least 16 bits */ typedef
136 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
138 ConversionResult ConvertUTF16toUTF8 (const UTF16** sourceStart, const UTF16* sourceEnd,
147 ConversionResult ConvertUTF16toUTF32 (const UTF16** sourceStart, const UTF16* sourceEnd,
151 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
Dconvert_UTF.cc84UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16()
87 UTF16* target = *targetStart; in ConvertUTF32toUTF16()
105 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
120 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
121 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
131 ConversionResult ConvertUTF16toUTF32 (const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32()
134 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32()
138 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32()
238 ConversionResult ConvertUTF16toUTF8 (const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF8()
241 const UTF16* source = *sourceStart; in ConvertUTF16toUTF8()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCanonicalIterator.java137 int i = UTF16.findOffsetFromCodePoint(source, 1); in setSource()
174 if (source.length() <= 2 && UTF16.countCodePoint(source) <= 1) { in permute()
182 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { in permute()
183 cp = UTF16.charAt(source, i); in permute()
196 + source.substring(i + UTF16.getCharCount(cp)), skipZeros, subpermute); in permute()
199 String chStr = UTF16.valueOf(source, i); in permute()
318 prefix += UTF16.valueOf(cp2); in getEquivalents2()
369 if (PROGRESS) System.out.println(" extract: " + Utility.hex(UTF16.valueOf(comp)) in extract()
374 decomp = UTF16.valueOf(comp); in extract()
381 int decompCp = UTF16.charAt(decomp,0); in extract()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCanonicalIterator.java133 int i = UTF16.findOffsetFromCodePoint(source, 1); in setSource()
170 if (source.length() <= 2 && UTF16.countCodePoint(source) <= 1) { in permute()
178 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { in permute()
179 cp = UTF16.charAt(source, i); in permute()
192 + source.substring(i + UTF16.getCharCount(cp)), skipZeros, subpermute); in permute()
195 String chStr = UTF16.valueOf(source, i); in permute()
314 prefix += UTF16.valueOf(cp2); in getEquivalents2()
365 if (PROGRESS) System.out.println(" extract: " + Utility.hex(UTF16.valueOf(comp)) in extract()
370 decomp = UTF16.valueOf(comp); in extract()
377 int decompCp = UTF16.charAt(decomp,0); in extract()
[all …]
/external/antlr/runtime/C/include/
Dantlr3convertutf.h107 typedef ANTLR3_UINT16 UTF16; /* at least 16 bits */ typedef
144 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
147 const UTF16** sourceStart, const UTF16* sourceEnd,
159 const UTF16** sourceStart, const UTF16* sourceEnd,
164 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
/external/llvm/include/llvm/Support/
DConvertUTF.h102 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);
283 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out);
291 SmallVectorImpl<UTF16> &DstUTF16);
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DConvertUTF.h110 typedef unsigned short UTF16; /* at least 16 bits */ typedef
140 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
159 const UTF16** sourceStart, const UTF16* sourceEnd,
167 const UTF16** sourceStart, const UTF16* sourceEnd,
172 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
279 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out);
287 SmallVectorImpl<UTF16> &DstUTF16);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
DTestUCharacterIterator.java21 import com.ibm.icu.text.UTF16;
112 if (UTF16.getLeadSurrogate(ch) != iterator.next() || in TestIteration()
113 UTF16.getTrailSurrogate(ch) != iterator.next()) { in TestIteration()
132 if (UTF16.getLeadSurrogate(ch) != iterator.previous() || in TestIteration()
133 UTF16.getTrailSurrogate(ch) != iterator.previous()) { in TestIteration()
155 if (iter.currentCodePoint() != UTF16.charAt(text,1)) in TestIterationUChar32()
163 if(c != UTF16.charAt(text,1) || i!=1) in TestIterationUChar32()
164 …veCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + … in TestIterationUChar32()
168 if(c != UTF16.charAt(text,4) || i!=4) in TestIterationUChar32()
169 …veCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,4)) + … in TestIterationUChar32()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/
DTestUCharacterIterator.java22 import android.icu.text.UTF16;
115 if (UTF16.getLeadSurrogate(ch) != iterator.next() || in TestIteration()
116 UTF16.getTrailSurrogate(ch) != iterator.next()) { in TestIteration()
135 if (UTF16.getLeadSurrogate(ch) != iterator.previous() || in TestIteration()
136 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/antlr/runtime/C/src/
Dantlr3convertutf.c54 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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DConvertUTF.h110 typedef unsigned short UTF16; /* at least 16 bits */ typedef
140 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
159 const UTF16** sourceStart, const UTF16* sourceEnd,
167 const UTF16** sourceStart, const UTF16* sourceEnd,
172 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
279 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out);
287 SmallVectorImpl<UTF16> &DstUTF16);
/external/llvm-project/llvm/include/llvm/Support/
DConvertUTF.h110 typedef unsigned short UTF16; /* at least 16 bits */ typedef
140 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
159 const UTF16** sourceStart, const UTF16* sourceEnd,
167 const UTF16** sourceStart, const UTF16* sourceEnd,
172 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
279 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out);
287 SmallVectorImpl<UTF16> &DstUTF16);
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
DWriteIndicCharts.java18 import com.ibm.icu.text.UTF16;
86 arr[0]=UTF16.valueOf(i+ 0xE000); in writeIICharts()
87 table.put(UTF16.valueOf(i),arr); in writeIICharts()
105 String[] temp = (String[])table.get(UTF16.valueOf(i)); in writeIICharts()
108 … if(UCharacter.getExtendedName(UTF16.charAt(temp[k],0)).indexOf("unassigned")<0 || in writeIICharts()
146 nameBuf.append(UCharacter.getExtendedName(UTF16.charAt(str,f))); in writeIICharts()
151 … if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ in writeIICharts()
159 … if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ in writeIICharts()
165 … if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ in writeIICharts()
210 arr[0]=UTF16.valueOf((i&0xFF) + 0xE000); in writeCharts()
[all …]
/external/llvm-project/llvm/lib/Support/
DConvertUTFWrapper.cpp37 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide()
97 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String()
98 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); in convertUTF16ToUTF8String()
100 assert((uintptr_t)Src % sizeof(UTF16) == 0); in convertUTF16ToUTF8String()
103 std::vector<UTF16> ByteSwapped; in convertUTF16ToUTF8String()
137 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) in convertUTF16ToUTF8String()
141 Src.size() * sizeof(UTF16)), Out); in convertUTF16ToUTF8String()
145 SmallVectorImpl<UTF16> &DstUTF16) { in convertUTF8ToUTF16String()
164 UTF16 *Dst = &DstUTF16[0]; in convertUTF8ToUTF16String()
165 UTF16 *DstEnd = Dst + DstUTF16.size(); in convertUTF8ToUTF16String()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DUnicodeSetPrettyPrinter.java20 import com.ibm.icu.text.UTF16;
21 import com.ibm.icu.text.UTF16.StringComparator;
29 …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()
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 …]
/external/llvm/lib/Support/
DConvertUTFWrapper.cpp38 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide()
98 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String()
99 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); in convertUTF16ToUTF8String()
102 std::vector<UTF16> ByteSwapped; in convertUTF16ToUTF8String()
136 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) in convertUTF16ToUTF8String()
140 Src.size() * sizeof(UTF16)), Out); in convertUTF16ToUTF8String()
144 SmallVectorImpl<UTF16> &DstUTF16) { in convertUTF8ToUTF16String()
163 UTF16 *Dst = &DstUTF16[0]; in convertUTF8ToUTF16String()
164 UTF16 *DstEnd = Dst + DstUTF16.size(); in convertUTF8ToUTF16String()
226 llvm::ArrayRef<UTF16>(reinterpret_cast<const UTF16 *>(Source.data()), in convertWideToUTF8()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DConvertUTFWrapper.cpp38 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide()
98 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String()
99 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); in convertUTF16ToUTF8String()
102 std::vector<UTF16> ByteSwapped; in convertUTF16ToUTF8String()
136 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) in convertUTF16ToUTF8String()
140 Src.size() * sizeof(UTF16)), Out); in convertUTF16ToUTF8String()
144 SmallVectorImpl<UTF16> &DstUTF16) { in convertUTF8ToUTF16String()
163 UTF16 *Dst = &DstUTF16[0]; in convertUTF8ToUTF16String()
164 UTF16 *DstEnd = Dst + DstUTF16.size(); in convertUTF8ToUTF16String()
226 llvm::ArrayRef<UTF16>(reinterpret_cast<const UTF16 *>(Source.data()), in convertWideToUTF8()

12345678910>>...16