/external/libchrome/base/third_party/icu/ |
H A D | icu_utf.cc | 140 uint8_t trail, illegal = 0; local 143 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */ 148 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */ 152 trail=s[(i)++]; 153 (c)=((c)<<6)|(trail&0x3f); 155 illegal|=(trail&0xc0)^0x80; 162 trail=s[(i)++]; 163 (c)=((c)<<6)|(trail&0x3f); 164 illegal|=(trail&0xc0)^0x80; 166 trail [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
H A D | IterCollationIterator.java | 63 int trail = iter.next(); 64 if(!isTrailSurrogate(trail) && trail >= 0) { iter.previous(); } 65 return (char)trail;
|
H A D | UTF16CollationIterator.java | 78 char trail; 80 Character.isLowSurrogate(trail = seq.charAt(pos))) { 82 return Character.toCodePoint(c, trail); 116 char trail; 117 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; } 118 return trail;
|
H A D | FCDIterCollationIterator.java | 73 int trail = iter.next(); 74 if(isTrailSurrogate(trail)) { 75 return Character.toCodePoint((char)c, (char)trail); 76 } else if(trail >= 0) { 121 // hasLccc(trail)=true for all trail surrogates 190 int trail = iter.next(); 191 if(isTrailSurrogate(trail)) { 193 } else if(trail >= 0) { 196 return (char)trail; [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | IterCollationIterator.java | 61 int trail = iter.next(); 62 if(!isTrailSurrogate(trail) && trail >= 0) { iter.previous(); } 63 return (char)trail;
|
H A D | UTF16CollationIterator.java | 76 char trail; 78 Character.isLowSurrogate(trail = seq.charAt(pos))) { 80 return Character.toCodePoint(c, trail); 114 char trail; 115 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; } 116 return trail;
|
H A D | FCDIterCollationIterator.java | 71 int trail = iter.next(); 72 if(isTrailSurrogate(trail)) { 73 return Character.toCodePoint((char)c, (char)trail); 74 } else if(trail >= 0) { 119 // hasLccc(trail)=true for all trail surrogates 188 int trail = iter.next(); 189 if(isTrailSurrogate(trail)) { 191 } else if(trail >= 0) { 194 return (char)trail; [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | CharacterIteration.java | 36 // If the current position is at a surrogate pair, move to the trail surrogate 49 // If we might have a lead surrogate, we need to peak ahead to get the trail 93 char trail = ci.previous(); 94 int retVal = trail; 95 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) { 99 ((int)trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) + 115 int trail = (int)ci.next(); 117 if (UTF16.isTrailSurrogate((char)trail)) { 119 (trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
|
H A D | CharTrie.java | 140 * This method does not guarantee correct results for trail surrogates. 164 * @param trail a trail surrogate 166 public final char getSurrogateValue(char lead, char trail) argument 168 int offset = getSurrogateOffset(lead, trail); 177 * and a trail surrogate.</p> 181 * @param trail surrogate 182 * @return trie data value associated with the trail character 184 public final char getTrailValue(int leadvalue, char trail) argument 193 (char)(trail 258 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | BMPSet.java | 39 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead) 137 * sufficient length for trail unit for each surrogate pair. Handle single surrogates as surrogate code points 332 int trail = start & 0x3f; // Named for UTF-8 2-byte trail byte with lower 6 bits. 337 table[trail] |= bits; 346 while (trail < limitTrail) { 347 table[trail++] |= bits; 353 if (trail > 0) { 355 table[trail [all...] |
H A D | IntTrie.java | 141 * This method does not guarantee correct results for trail surrogates. 165 * @param trail a trail surrogate 167 public final int getSurrogateValue(char lead, char trail) argument 169 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) { 173 // get fold position for the next trail surrogate 174 int offset = getSurrogateOffset(lead, trail); 176 // get the real data from the folded lead/trail units 187 * and a trail surrogate. 190 * @param trail surrogat 193 getTrailValue(int leadvalue, char trail) argument 271 getSurrogateOffset(char lead, char trail) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | CharacterIteration.java | 32 // If the current position is at a surrogate pair, move to the trail surrogate 45 // If we might have a lead surrogate, we need to peak ahead to get the trail 89 char trail = ci.previous(); 90 int retVal = trail; 91 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) { 95 ((int)trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) + 111 int trail = (int)ci.next(); 113 if (UTF16.isTrailSurrogate((char)trail)) { 115 (trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
|
H A D | CharTrie.java | 139 * This method does not guarantee correct results for trail surrogates. 163 * @param trail a trail surrogate 165 public final char getSurrogateValue(char lead, char trail) argument 167 int offset = getSurrogateOffset(lead, trail); 176 * and a trail surrogate.</p> 180 * @param trail surrogate 181 * @return trie data value associated with the trail character 183 public final char getTrailValue(int leadvalue, char trail) argument 192 (char)(trail 257 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | BMPSet.java | 37 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead) 135 * sufficient length for trail unit for each surrogate pair. Handle single surrogates as surrogate code points 330 int trail = start & 0x3f; // Named for UTF-8 2-byte trail byte with lower 6 bits. 335 table[trail] |= bits; 344 while (trail < limitTrail) { 345 table[trail++] |= bits; 351 if (trail > 0) { 353 table[trail [all...] |
H A D | IntTrie.java | 140 * This method does not guarantee correct results for trail surrogates. 164 * @param trail a trail surrogate 166 public final int getSurrogateValue(char lead, char trail) argument 168 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) { 172 // get fold position for the next trail surrogate 173 int offset = getSurrogateOffset(lead, trail); 175 // get the real data from the folded lead/trail units 186 * and a trail surrogate. 189 * @param trail surrogat 192 getTrailValue(int leadvalue, char trail) argument 270 getSurrogateOffset(char lead, char trail) argument [all...] |
/external/icu/icu4c/source/common/ |
H A D | ucnv_u16.cpp | 60 UChar c, trail; local 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { 101 target[2]=(uint8_t)(trail>>8); 102 target[3]=(uint8_t)trail; 133 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { 138 target[2]=(uint8_t)(trail>>8); 139 target[3]=(uint8_t)trail; 155 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { 160 target[2]=(uint8_t)(trail>>8); 161 target[3]=(uint8_t)trail; 264 UChar c, trail; local 528 UChar trail; local 661 UChar c, trail; local 865 UChar c, trail; local 1129 UChar trail; local [all...] |
H A D | bmpset.cpp | 75 int32_t trail=start&0x3f; // Named for UTF-8 2-byte trail byte with lower 6 bits. 80 table[trail]|=bits; 89 while(trail<limitTrail) { 90 table[trail++]|=bits; 96 if(trail>0) { 98 table[trail++]|=bits; 99 } while(trail<64); 107 for(trail=0; trail<6 [all...] |
/external/icu/icu4c/source/tools/gennorm2/ |
H A D | norms.cpp | 55 UChar32 Norm::combine(UChar32 trail) const { 59 if(trail==pairs[i].trail) { 62 if(trail<pairs[i].trail) { 147 uint8_t trailCC=getCC(pairs[i].trail); 198 UChar32 trail=m.char32At(m.length()-1); local 208 norms.createNorm(trail)->combinesBack=TRUE; 209 // Insert (trail, composite) pair into compositions list for the lead character. 218 // Insertion sort, and check for duplicate trail character [all...] |
H A D | extradata.cpp | 145 if(pair.trail<Normalizer2Impl::COMP_1_TRAIL_LIMIT) { 147 firstUnit=pair.trail<<1; 151 firstUnit=(pair.trail<<1)|Normalizer2Impl::COMP_1_TRIPLE; 157 (pair.trail>>Normalizer2Impl::COMP_1_TRAIL_SHIFT))| 159 secondUnit=(pair.trail<<Normalizer2Impl::COMP_2_TRAIL_SHIFT)|
|
/external/icu/icu4c/source/i18n/ |
H A D | uitercollationiterator.cpp | 55 UChar32 trail = iter.next(&iter); local 56 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); } 57 return (UChar)trail; 146 UChar32 trail = iter.next(&iter); local 147 if(U16_IS_TRAIL(trail)) { 149 } else if(trail >= 0) { 152 return (UChar)trail; 155 UChar trail; 156 if(U16_IS_TRAIL(trail [all...] |
H A D | utf16collationiterator.cpp | 72 UChar trail; local 73 if(U16_IS_TRAIL(trail = *pos)) { ++pos; } 74 return trail; 98 UChar trail; local 99 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) { 101 return U16_GET_SUPPLEMENTARY(c, trail); 280 UChar trail; local 281 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) { 283 return U16_GET_SUPPLEMENTARY(c, trail);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetUTF16.java | 214 char trail = (char) (((toUBytesArray[2 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK))); 216 if (!UTF16.isTrailSurrogate(trail)) { 232 target.put(trail); 236 charErrorBufferArray[0] = trail; 303 char trail = UTF16.getTrailSurrogate(fromUChar32); 309 temp[2 ^ endianXOR] = (byte) (trail >>> 8); 310 temp[3 ^ endianXOR] = (byte) (trail);
|
/external/icu/icu4c/source/tools/tzcode/ |
H A D | zdump.c | 885 register int trail; local 909 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; 911 trail / DIVISOR; 912 trail %= DIVISOR; 913 if (trail < 0 && lead > 0) { 914 trail += DIVISOR; 916 } else if (lead < 0 && trail > 0) { 917 trail -= DIVISOR; 921 (void) printf("%d", trail); 922 else (void) printf("%d%d", lead, ((trail < 988 register int trail; local [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
H A D | UTF16Util.java | 183 hadLeadSurrogate = false; // count valid trail as zero 211 hadLeadSurrogate = false; // count valid trail as zero 275 * Determines whether the character is a trail surrogate. 277 * @return true iff the input character is a trail surrogate. 339 char trail = source[offset16]; 340 if (isTrailSurrogate(trail)) { 341 return getRawSupplementary(single, trail); 375 * @param trail trailing surrogate character 378 public static int getRawSupplementary(char lead, char trail) argument 380 return (lead << LEAD_SURROGATE_SHIFT_) + trail [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
H A D | UTF16Util.java | 179 hadLeadSurrogate = false; // count valid trail as zero 207 hadLeadSurrogate = false; // count valid trail as zero 271 * Determines whether the character is a trail surrogate. 273 * @return true iff the input character is a trail surrogate. 335 char trail = source[offset16]; 336 if (isTrailSurrogate(trail)) { 337 return getRawSupplementary(single, trail); 371 * @param trail trailing surrogate character 374 public static int getRawSupplementary(char lead, char trail) argument 376 return (lead << LEAD_SURROGATE_SHIFT_) + trail [all...] |