/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
CharacterIteration.java | 12 import android.icu.text.UTF16; 37 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE && c<=UTF16.LEAD_SURROGATE_MAX_VALUE) { 39 if (c<UTF16.TRAIL_SURROGATE_MIN_VALUE || c>UTF16.TRAIL_SURROGATE_MAX_VALUE) { 49 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE) { 53 if (c >= UTF16.SUPPLEMENTARY_MIN_VALUE && c != DONE32) { 74 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 76 if (UTF16.isTrailSurrogate(cTrail)) { 77 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) [all...] |
PatternTokenizer.java | 10 import android.icu.text.UTF16; 168 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { 169 cp = UTF16.charAt(string, i); 183 UTF16.append(result, cp); 192 UTF16.append(result, cp); 202 UTF16.append(result, cp); 216 UTF16.append(result, cp); 266 for (int i = start; i < limit; i += UTF16.getCharCount(cp)) { 267 cp = UTF16.charAt(pattern, i); 284 UTF16.append(buffer, cp) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
CharacterIteration.java | 11 import com.ibm.icu.text.UTF16; 33 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE && c<=UTF16.LEAD_SURROGATE_MAX_VALUE) { 35 if (c<UTF16.TRAIL_SURROGATE_MIN_VALUE || c>UTF16.TRAIL_SURROGATE_MAX_VALUE) { 45 if (c >= UTF16.LEAD_SURROGATE_MIN_VALUE) { 49 if (c >= UTF16.SUPPLEMENTARY_MIN_VALUE && c != DONE32) { 70 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 72 if (UTF16.isTrailSurrogate(cTrail)) { 73 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) [all...] |
PatternTokenizer.java | 9 import com.ibm.icu.text.UTF16; 166 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { 167 cp = UTF16.charAt(string, i); 181 UTF16.append(result, cp); 190 UTF16.append(result, cp); 200 UTF16.append(result, cp); 214 UTF16.append(result, cp); 264 for (int i = start; i < limit; i += UTF16.getCharCount(cp)) { 265 cp = UTF16.charAt(pattern, i); 282 UTF16.append(buffer, cp) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
UTF16Test.java | 16 import android.icu.text.UTF16; 17 import android.icu.text.UTF16.StringComparator; 22 * Testing class for UTF16 41 * Testing UTF16 class methods append 54 UTF16.append(strbuff, i); 55 arraysize = UTF16.append(array, arraysize, i); 69 if (UTF16.countCodePoint(strbuff) != strsize + (i / 100) + 1) { 78 UTF16.appendCodePoint(strbuff, 0x10000); 85 * Testing UTF16 class methods bounds 94 int boundtype[] = {UTF16.SINGLE_CHAR_BOUNDARY [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
UTF16Test.java | 15 import com.ibm.icu.text.UTF16; 16 import com.ibm.icu.text.UTF16.StringComparator; 19 * Testing class for UTF16 37 * Testing UTF16 class methods append 50 UTF16.append(strbuff, i); 51 arraysize = UTF16.append(array, arraysize, i); 65 if (UTF16.countCodePoint(strbuff) != strsize + (i / 100) + 1) { 74 UTF16.appendCodePoint(strbuff, 0x10000); 81 * Testing UTF16 class methods bounds 90 int boundtype[] = {UTF16.SINGLE_CHAR_BOUNDARY [all...] |
/external/google-breakpad/src/common/ |
convert_UTF.h | 110 typedef unsigned short UTF16; /* at least 16 bits */ 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);
|
/external/antlr/antlr-3.4/runtime/C/include/ |
antlr3convertutf.h | 97 // typedef unsigned short UTF16; /* at least 16 bits */ 107 typedef ANTLR3_UINT16 UTF16; /* at least 16 bits */ 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) [all...] |
/external/llvm/include/llvm/Support/ |
ConvertUTF.h | 102 typedef unsigned short UTF16; /* at least 16 bits */ 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); 189 * Convert an UTF8 StringRef to UTF8, UTF16, or UTF32 depending o [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
UnicodeTransform.java | 11 import android.icu.text.UTF16; 51 return transform(UTF16.valueOf(source)); 57 return isTransformed(UTF16.valueOf(source));
|
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)); 161 if (UTF16.hasMoreCodePointsThan(s, 1)) { 167 appendUnicodeSetItem(UTF16.charAt(s, 0)); 191 int cp = UTF16.charAt(s,0); 196 } else if (type == UCharacter.SURROGATE && cp >= UTF16.TRAIL_SURROGATE_MIN_VALUE) { 204 addSpaceAsNeededBefore(UTF16.valueOf(codepoint)); 219 lastString = UTF16.valueOf(lastCodePoint) [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
UnicodeTransform.java | 10 import com.ibm.icu.text.UTF16; 50 return transform(UTF16.valueOf(source)); 56 return isTransformed(UTF16.valueOf(source));
|
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)); 160 if (UTF16.hasMoreCodePointsThan(s, 1)) { 166 appendUnicodeSetItem(UTF16.charAt(s, 0)); 190 int cp = UTF16.charAt(s,0); 195 } else if (type == UCharacter.SURROGATE && cp >= UTF16.TRAIL_SURROGATE_MIN_VALUE) { 203 addSpaceAsNeededBefore(UTF16.valueOf(codepoint)); 218 lastString = UTF16.valueOf(lastCodePoint) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
UnicodeFilter.java | 35 offset[0] += UTF16.getCharCount(c); 44 offset[0] -= UTF16.getCharCount(text.char32At(offset[0])) - 1;
|
CanonicalIterator.java | 131 int i = UTF16.findOffsetFromCodePoint(source, 1); 168 if (source.length() <= 2 && UTF16.countCodePoint(source) <= 1) { 176 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { 177 cp = UTF16.charAt(source, i); 183 //System.out.println("Skipping " + Utility.hex(UTF16.valueOf(source, i))); 190 + source.substring(i + UTF16.getCharCount(cp)), skipZeros, subpermute); 193 String chStr = UTF16.valueOf(source, i); 312 prefix += UTF16.valueOf(cp2); 328 for (int i = 0; i < segment.length(); i += UTF16.getCharCount(cp)) { 330 cp = UTF16.charAt(segment, i) [all...] |
UCharacterIterator.java | 136 if(UTF16.isLeadSurrogate((char)ch)){ 148 if(UTF16.isTrailSurrogate((char)ch2)){ 172 * Returns the UTF16 code unit at index, and increments to the next 176 * @return the next UTF16 code unit, or DONE if the index is at the limit 193 if(UTF16.isLeadSurrogate((char)ch1)){ 195 if(UTF16.isTrailSurrogate((char)ch2)){ 228 if(UTF16.isTrailSurrogate((char)ch1)){ 230 if(UTF16.isLeadSurrogate((char)ch2)){
|
BidiWriter.java | 56 c = UTF16.charAt(src, i); 57 i += UTF16.getCharCount(c); 58 UTF16.append(dest, UCharacter.getMirror(c)); 83 c = UTF16.charAt(src, i); 84 i += UTF16.getCharCount(c); 86 UTF16.append(dest, UCharacter.getMirror(c)); 134 * XXX: or dest = UTF16.reverse(new StringBuffer(src)); 146 srcLength -= UTF16.getCharCount(UTF16.charAt(src, 174 c = UTF16.charAt(src, srcLength - 1) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
UnicodeFilter.java | 41 offset[0] += UTF16.getCharCount(c); 50 offset[0] -= UTF16.getCharCount(text.char32At(offset[0])) - 1;
|
CanonicalIterator.java | 135 int i = UTF16.findOffsetFromCodePoint(source, 1); 172 if (source.length() <= 2 && UTF16.countCodePoint(source) <= 1) { 180 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { 181 cp = UTF16.charAt(source, i); 187 //System.out.println("Skipping " + Utility.hex(UTF16.valueOf(source, i))); 194 + source.substring(i + UTF16.getCharCount(cp)), skipZeros, subpermute); 197 String chStr = UTF16.valueOf(source, i); 316 prefix += UTF16.valueOf(cp2); 332 for (int i = 0; i < segment.length(); i += UTF16.getCharCount(cp)) { 334 cp = UTF16.charAt(segment, i) [all...] |
UCharacterIterator.java | 146 if(UTF16.isLeadSurrogate((char)ch)){ 158 if(UTF16.isTrailSurrogate((char)ch2)){ 184 * Returns the UTF16 code unit at index, and increments to the next 188 * @return the next UTF16 code unit, or DONE if the index is at the limit 207 if(UTF16.isLeadSurrogate((char)ch1)){ 209 if(UTF16.isTrailSurrogate((char)ch2)){ 244 if(UTF16.isTrailSurrogate((char)ch1)){ 246 if(UTF16.isLeadSurrogate((char)ch2)){
|
/external/llvm/lib/Support/ |
ConvertUTFWrapper.cpp | 35 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); 95 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); 96 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); 99 std::vector<UTF16> ByteSwapped; 134 SmallVectorImpl<UTF16> &DstUTF16) { 153 UTF16 *Dst = &DstUTF16[0]; 154 UTF16 *DstEnd = Dst + DstUTF16.size() [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/ |
TestUCharacterIterator.java | 16 import android.icu.text.UTF16; 107 if (UTF16.getLeadSurrogate(ch) != iterator.next() || 108 UTF16.getTrailSurrogate(ch) != iterator.next()) { 127 if (UTF16.getLeadSurrogate(ch) != iterator.previous() || 128 UTF16.getTrailSurrogate(ch) != iterator.previous()) { 162 if (iter.currentCodePoint() != UTF16.charAt(text,1)) 170 if(c != UTF16.charAt(text,1) || i!=1) 171 errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + " i= " + i); 175 if(c != UTF16.charAt(text,4) || i!=4) 176 errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,4)) + " i= " + i) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/ |
TestUCharacterIterator.java | 15 import com.ibm.icu.text.UTF16; 103 if (UTF16.getLeadSurrogate(ch) != iterator.next() || 104 UTF16.getTrailSurrogate(ch) != iterator.next()) { 123 if (UTF16.getLeadSurrogate(ch) != iterator.previous() || 124 UTF16.getTrailSurrogate(ch) != iterator.previous()) { 158 if (iter.currentCodePoint() != UTF16.charAt(text,1)) 166 if(c != UTF16.charAt(text,1) || i!=1) 167 errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,1)) + " i= " + i); 171 if(c != UTF16.charAt(text,4) || i!=4) 172 errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(text,4)) + " i= " + i) [all...] |
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/ |
WriteIndicCharts.java | 16 import com.ibm.icu.text.UTF16; 84 arr[0]=UTF16.valueOf(i+ 0xE000); 85 table.put(UTF16.valueOf(i),arr); 103 String[] temp = (String[])table.get(UTF16.valueOf(i)); 106 if(UCharacter.getExtendedName(UTF16.charAt(temp[k],0)).indexOf("unassigned")<0 || 144 nameBuf.append(UCharacter.getExtendedName(UTF16.charAt(str,f))); 149 if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ 157 if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ 163 if(UCharacter.getExtendedName(UTF16.charAt(str,0)).indexOf("unassigned")>0){ 208 arr[0]=UTF16.valueOf((i&0xFF) + 0xE000) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
TestUtility.java | 10 import android.icu.text.UTF16; 56 for (int i = 0; i < source.length(); i += UTF16.getCharCount(cp)) { 57 cp = UTF16.charAt(source,i); 61 UTF16.append(results, cp);
|