Home
last modified time | relevance | path

Searched refs:UTF16 (Results 1 - 25 of 236) sorted by relevance

12345678910

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUTF16Test.java21 import com.ibm.icu.text.UTF16;
22 import com.ibm.icu.text.UTF16.StringComparator;
25 * Testing class for UTF16
44 * Testing UTF16 class methods append
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()
89 * Testing UTF16 class methods bounds
99 int boundtype[] = {UTF16 in TestBounds()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/
H A DUTF16Test.java22 import ohos.global.icu.text.UTF16;
23 import ohos.global.icu.text.UTF16.StringComparator;
27 * Testing class for UTF16
47 * Testing UTF16 class methods append
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()
92 * Testing UTF16 class methods bounds
102 int boundtype[] = {UTF16 in TestBounds()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A 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 in nextTrail32()
[all...]
H A 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 in next()
[all...]
H A DTrie.java16 import com.ibm.icu.text.UTF16;
239 * Index or UTF16 characters
311 return (ch >= UTF16.LEAD_SURROGATE_MIN_VALUE in getBMPOffset()
312 && ch <= UTF16.LEAD_SURROGATE_MAX_VALUE) in getBMPOffset()
344 } else if (ch < UTF16.LEAD_SURROGATE_MIN_VALUE) { in getCodePointOffset()
347 } else if (ch < UTF16.SUPPLEMENTARY_MIN_VALUE) { in getCodePointOffset()
353 return getSurrogateOffset(UTF16.getLeadSurrogate(ch), in getCodePointOffset()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DCharacterIteration.java14 import ohos.global.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 in nextTrail32()
[all...]
H A DPatternTokenizer.java12 import ohos.global.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 in next()
[all...]
H A DTrie.java17 import ohos.global.icu.text.UTF16;
241 * Index or UTF16 characters
313 return (ch >= UTF16.LEAD_SURROGATE_MIN_VALUE in getBMPOffset()
314 && ch <= UTF16.LEAD_SURROGATE_MAX_VALUE) in getBMPOffset()
346 } else if (ch < UTF16.LEAD_SURROGATE_MIN_VALUE) { in getCodePointOffset()
349 } else if (ch < UTF16.SUPPLEMENTARY_MIN_VALUE) { in getCodePointOffset()
355 return getSurrogateOffset(UTF16.getLeadSurrogate(ch), in getCodePointOffset()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A 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()
189 //System.out.println("Skipping " + Utility.hex(UTF16.valueOf(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()
334 for (int i = 0; i < segment.length(); i += UTF16.getCharCount(cp)) { in getEquivalents2()
336 cp = UTF16 in getEquivalents2()
[all...]
H A DBidiWriter.java57 c = UTF16.charAt(src, i); in doWriteForward()
58 i += UTF16.getCharCount(c); in doWriteForward()
59 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward()
84 c = UTF16.charAt(src, i); in doWriteForward()
85 i += UTF16.getCharCount(c); in doWriteForward()
87 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward()
135 * XXX: or dest = UTF16.reverse(new StringBuffer(src)); in writeReverse()
147 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse()
175 c = UTF16 in writeReverse()
[all...]
H A DUCharacterIterator.java156 if (UTF16.isLeadSurrogate(ch)) { in currentCodePoint()
168 if (UTF16.isTrailSurrogate(ch2)) { in currentCodePoint()
194 * Returns the UTF16 code unit at index, and increments to the next code unit (post-increment semantics). If index
197 * @return the next UTF16 code unit, or DONE if the index is at the limit of the text.
214 if (UTF16.isLeadSurrogate(ch1)) { in nextCodePoint()
216 if (UTF16.isTrailSurrogate(ch2)) { in nextCodePoint()
246 if (UTF16.isTrailSurrogate(ch1)) { in previousCodePoint()
248 if (UTF16.isLeadSurrogate(ch2)) { in previousCodePoint()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A 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()
185 //System.out.println("Skipping " + Utility.hex(UTF16.valueOf(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()
330 for (int i = 0; i < segment.length(); i += UTF16.getCharCount(cp)) { in getEquivalents2()
332 cp = UTF16 in getEquivalents2()
[all...]
H A DBidiWriter.java58 c = UTF16.charAt(src, i); in doWriteForward()
59 i += UTF16.getCharCount(c); in doWriteForward()
60 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward()
85 c = UTF16.charAt(src, i); in doWriteForward()
86 i += UTF16.getCharCount(c); in doWriteForward()
88 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward()
136 * XXX: or dest = UTF16.reverse(new StringBuffer(src)); in writeReverse()
148 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse()
176 c = UTF16 in writeReverse()
[all...]
H A DStringReplacer.java159 int len = UTF16.getCharCount(text.char32At(start-1)); in replace()
179 int c = UTF16.charAt(output, oOutput); in replace()
185 int nextIndex = oOutput + UTF16.getCharCount(c); in replace()
187 tempExtra = UTF16.getCharCount(text.char32At(limit)); in replace()
194 UTF16.append(buf, c); in replace()
241 newStart -= UTF16.getCharCount(text.char32At(newStart-1)); in replace()
250 newStart += UTF16.getCharCount(text.char32At(newStart)); in replace()
327 for (int i=0; i<output.length(); i+=UTF16.getCharCount(ch)) { in addReplacementSetTo()
328 ch = UTF16.charAt(output, i); in addReplacementSetTo()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A 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);
188 * Convert an UTF8 StringRef to UTF8, UTF16, o
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/iterator/
H A DTestUCharacterIterator.java22 import ohos.global.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 errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + " i= " + i); in TestIterationUChar32()
171 if(c != UTF16.charAt(text,4) || i!=4) in TestIterationUChar32()
172 errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16 in TestIterationUChar32()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
H A 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 errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + " i= " + i); in TestIterationUChar32()
168 if(c != UTF16.charAt(text,4) || i!=4) in TestIterationUChar32()
169 errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16 in TestIterationUChar32()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A 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> in convertUTF8ToUTF16String()
[all...]
H A DConvertUTF.cpp120 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* oldSourc in ConvertUTF16toUTF32()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A 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()
101 std::vector<UTF16> ByteSwapped; in convertUTF16ToUTF8String()
135 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) in convertUTF16ToUTF8String()
139 Src.size() * sizeof(UTF16)), Out); in convertUTF16ToUTF8String()
143 SmallVectorImpl<UTF16> in convertUTF8ToUTF16String()
[all...]
H A DConvertUTF.cpp146 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16()
149 UTF16* target = *targetStart; in ConvertUTF32toUTF16()
167 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
182 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
183 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
194 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32()
197 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32()
201 const UTF16* oldSourc in ConvertUTF16toUTF32()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A 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);
188 * Convert an UTF8 StringRef to UTF8, UTF16, o
[all...]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
H A 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 in writeCharts()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
H A DWindowsResource.h102 ArrayRef<UTF16> getTypeString() const { return Type; } in getTypeString()
105 ArrayRef<UTF16> getNameString() const { return Name; } in getNameString()
127 ArrayRef<UTF16> Type;
130 ArrayRef<UTF16> Name;
164 const ArrayRef<std::vector<UTF16>> getStringTable() const { in getStringTable()
205 std::vector<std::vector<UTF16>> &StringTable,
208 std::vector<std::vector<UTF16>> &StringTable);
210 std::vector<std::vector<UTF16>> &StringTable);
218 TreeNode &addNameChild(ArrayRef<UTF16> NameRef,
219 std::vector<std::vector<UTF16>>
[all...]
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
H A DStringReplacer.java158 int len = UTF16.getCharCount(text.char32At(start-1)); in replace()
178 int c = UTF16.charAt(output, oOutput); in replace()
184 int nextIndex = oOutput + UTF16.getCharCount(c); in replace()
186 tempExtra = UTF16.getCharCount(text.char32At(limit)); in replace()
193 UTF16.append(buf, c); in replace()
240 newStart -= UTF16.getCharCount(text.char32At(newStart-1)); in replace()
249 newStart += UTF16.getCharCount(text.char32At(newStart)); in replace()
326 for (int i=0; i<output.length(); i+=UTF16.getCharCount(ch)) { in addReplacementSetTo()
327 ch = UTF16.charAt(output, i); in addReplacementSetTo()

Completed in 19 milliseconds

12345678910