/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | CharacterIteration.java | 31 * For Supplementary chars, the iterator is left positioned at the lead surrogate. 49 // If we might have a lead surrogate, we need to peak ahead to get the trail 57 // of the lead surrogate. 71 public static int nextTrail32(CharacterIterator ci, int lead) { argument 72 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { 75 int retVal = lead; 76 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 79 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + 96 char lead = ci.previous(); 97 if (UTF16.isLeadSurrogate(lead)) { [all...] |
H A D | CharTrie.java | 53 * or the leadUnitValue for lead surrogate code points. 57 * @param leadUnitValue the value for lead surrogate code _units_ that do not 90 /* indexes for lead surrogate code units to the block after Latin-1 */ 98 /* data for lead surrogate code units */ 136 * Gets the value to the data which this lead surrogate character points 141 * @param ch lead surrogate character 163 * @param lead a lead surrogate 166 public final char getSurrogateValue(char lead, char trail) argument 168 int offset = getSurrogateOffset(lead, trai 258 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | IntTrie.java | 57 * or the leadUnitValue for lead surrogate code points. 61 * @param leadUnitValue the value for lead surrogate code _units_ that do not 94 /* indexes for lead surrogate code units to the block after Latin-1 */ 102 /* data for lead surrogate code units */ 137 * Gets the value to the data which this lead surrogate character points 142 * @param ch lead surrogate character 164 * @param lead a lead surrogate 167 public final int getSurrogateValue(char lead, char trail) argument 169 if (!UTF16.isLeadSurrogate(lead) || !UTF1 271 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | Trie.java | 32 * for lead surrogate codepoints, while the fromLead() method get special 33 * "folded" offsets for lead surrogate code units if there is relevant data 40 * that offset from the folded value for the lead surrogate unit.</p> 62 * Called by android.icu.impl.Trie to extract from a lead surrogate's 64 * the index array offset of the indexes for that lead surrogate. 67 * @return data offset or 0 if there is no data for the lead surrogate 227 * Number of index (stage 1) entries per lead surrogate. 264 * @param lead lead surrogate 268 protected abstract int getSurrogateOffset(char lead, cha argument [all...] |
H A D | Trie2.java | 247 * A Trie2 stores two distinct values for input in the lead surrogate 248 * range, one for lead surrogates, which is the value that will be 252 * For code units outside of the lead surrogate range, this function 255 * This function, together with the alternate value for lead surrogates, 262 * code points associated with a lead surrogate. 264 * lead surrogate code _unit_, with Trie2Writable.setForLeadSurrogateCodeUnit(). 267 * data and the code unit is a lead surrogate, then check if a trail surrogate 269 * with Trie2.get(); otherwise reset the lead 272 * If there is only trivial data for lead and trail surrogates, then processing 276 * @param c the code point or lead surrogat 420 iteratorForLeadSurrogate(char lead, ValueMapper mapper) argument 437 iteratorForLeadSurrogate(char lead) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | CharacterIteration.java | 27 * For Supplementary chars, the iterator is left positioned at the lead surrogate. 45 // If we might have a lead surrogate, we need to peak ahead to get the trail 53 // of the lead surrogate. 67 public static int nextTrail32(CharacterIterator ci, int lead) { argument 68 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { 71 int retVal = lead; 72 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 75 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + 92 char lead = ci.previous(); 93 if (UTF16.isLeadSurrogate(lead)) { [all...] |
H A D | CharTrie.java | 52 * or the leadUnitValue for lead surrogate code points. 56 * @param leadUnitValue the value for lead surrogate code _units_ that do not 89 /* indexes for lead surrogate code units to the block after Latin-1 */ 97 /* data for lead surrogate code units */ 135 * Gets the value to the data which this lead surrogate character points 140 * @param ch lead surrogate character 162 * @param lead a lead surrogate 165 public final char getSurrogateValue(char lead, char trail) argument 167 int offset = getSurrogateOffset(lead, trai 257 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | IntTrie.java | 56 * or the leadUnitValue for lead surrogate code points. 60 * @param leadUnitValue the value for lead surrogate code _units_ that do not 93 /* indexes for lead surrogate code units to the block after Latin-1 */ 101 /* data for lead surrogate code units */ 136 * Gets the value to the data which this lead surrogate character points 141 * @param ch lead surrogate character 163 * @param lead a lead surrogate 166 public final int getSurrogateValue(char lead, char trail) argument 168 if (!UTF16.isLeadSurrogate(lead) || !UTF1 270 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | Trie.java | 31 * for lead surrogate codepoints, while the fromLead() method get special 32 * "folded" offsets for lead surrogate code units if there is relevant data 39 * that offset from the folded value for the lead surrogate unit.</p> 61 * Called by com.ibm.icu.impl.Trie to extract from a lead surrogate's 63 * the index array offset of the indexes for that lead surrogate. 66 * @return data offset or 0 if there is no data for the lead surrogate 226 * Number of index (stage 1) entries per lead surrogate. 263 * @param lead lead surrogate 267 protected abstract int getSurrogateOffset(char lead, cha argument [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | utf16collationiterator.cpp | 113 UChar lead; local 114 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { 116 return U16_GET_SUPPLEMENTARY(lead, c); 316 UChar lead; local 317 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { 319 return U16_GET_SUPPLEMENTARY(lead, c);
|
/external/icu/icu4c/source/samples/uciter8/ |
H A D | uit_len8.c | 454 UChar lead=U16_LEAD(iter->reservedField); local 460 return lead;
|
/external/deqp/framework/delibs/debase/ |
H A D | deString.c | 96 deBool deStringBeginsWith (const char* str, const char* lead) argument 99 const char* b = lead;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
H A D | UTF16Util.java | 284 * Determines whether the character is a lead surrogate. 286 * @return true iff the input character is a lead surrogate 346 char lead = source[offset16]; 347 if (isLeadSurrogate(lead)) 348 return getRawSupplementary(lead, single); 353 * Shift value for lead surrogate to form a supplementary character. 371 * @param lead lead surrogate character 375 public static int getRawSupplementary(char lead, char trail) argument 377 return (lead << LEAD_SURROGATE_SHIFT [all...] |
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetASCII.java | 326 * if the character is a lead surrogate, we need to call encodeTrail to attempt to match 334 private final CoderResult encodeTrail(CharBuffer source, char lead, boolean flush) { argument 339 CoderResult cr = handleSurrogates(source, lead);
|
H A D | CharsetUTF16.java | 198 private final CoderResult decodeTrail(ByteBuffer source, CharBuffer target, IntBuffer offsets, char lead) { argument 199 if (!UTF16.isLeadSurrogate(lead)) { 200 // 2 bytes, lead malformed 208 toUnicodeStatus = lead; 221 // 2 bytes, lead malformed 229 target.put(lead); 276 // a note: fromUChar32 will either be 0 or a lead surrogate
|
H A D | CharsetEncoderICU.java | 847 * a lead surrogate followed by a trail surrogate. This method can change 859 * @param lead 867 final CoderResult handleSurrogates(CharBuffer source, char lead) { argument 868 if (!UTF16.isLeadSurrogate(lead)) { 869 fromUChar32 = lead; 874 fromUChar32 = lead; 881 fromUChar32 = lead; 886 fromUChar32 = UCharacter.getCodePoint(lead, trail); 900 * @param lead 909 int sourceLimit, char lead) { 908 handleSurrogates(char[] sourceArray, int sourceIndex, int sourceLimit, char lead) argument [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
H A D | UTF16Util.java | 283 * Determines whether the character is a lead surrogate. 285 * @return true iff the input character is a lead surrogate 345 char lead = source[offset16]; 346 if (isLeadSurrogate(lead)) 347 return getRawSupplementary(lead, single); 352 * Shift value for lead surrogate to form a supplementary character. 370 * @param lead lead surrogate character 374 public static int getRawSupplementary(char lead, char trail) argument 376 return (lead << LEAD_SURROGATE_SHIFT [all...] |
/external/icu/icu4c/source/test/cintltst/ |
H A D | sprpdata.c | 212 UChar lead = U16_LEAD(mapping[i]); local 214 if(mappingData[idx+i] != lead || 216 log_err( "Did not get the expected result. Expected: 0x%04X 0x%04X Got: 0x%04X 0x%04X\n", lead, trail, mappingData[idx+i], mappingData[idx+i+1]); 243 // get data for lead surrogate 247 // get the real data from the folded lead/trail units
|
H A D | bocu1tst.c | 75 /* number of lead bytes */ 91 /* number of lead bytes for positive and negative 2/3/4-byte sequences */ 110 /* The lead byte start values. */ 121 /* The length of a byte sequence, according to the lead byte (!=BOCU1_RESET). */ 122 #define BOCU1_LENGTH_FROM_LEAD(lead) \ 123 ((BOCU1_START_NEG_2<=(lead) && (lead)<BOCU1_START_POS_2) ? 1 : \ 124 (BOCU1_START_NEG_3<=(lead) && (lead)<BOCU1_START_POS_3) ? 2 : \ 125 (BOCU1_START_NEG_4<=(lead) 288 int32_t result, m, lead, count, shift; local [all...] |
H A D | custrtst.c | 712 static const UChar a=0x61, b=0x62, lead=0xd801, trail=0xdc02, nul=0; local 812 first!=u_strchr(s+1, lead) || 813 first!=u_strchr32(s+1, lead) || 814 first!=u_memchr(s+1, lead, 9) || 815 first!=u_memchr32(s+1, lead, 9) || 818 first!=u_strFindFirst(s+1, -1, &lead, 1) || 820 first!=u_strFindFirst(s+1, 9, &lead, 1) || 821 first!=u_strrchr(s+1, lead) || 822 first!=u_strrchr32(s+1, lead) || 823 first!=u_memrchr(s+1, lead, [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | testidn.cpp | 388 UChar lead = U16_LEAD(mapping[i]); local 390 if(mappingData[index+i] != lead || 392 pTestIDNA->errln( "Did not get the expected result. Expected: 0x%04X 0x%04X Got: 0x%04X 0x%04X", lead, trail, mappingData[index+i], mappingData[index+i+1]); 417 // get data for lead surrogate 421 // get the real data from the folded lead/trail units
|
/external/icu/icu4c/source/common/ |
H A D | uiter.cpp | 911 UChar lead=U16_LEAD(iter->reservedField); local 917 return lead;
|
H A D | utrie2.cpp | 605 * Enumerate values for lead surrogate code points, not code units: 731 utrie2_enumForLeadSurrogate(const UTrie2 *trie, UChar32 lead, argument 734 if(!U16_IS_LEAD(lead)) { 737 lead=(lead-0xd7c0)<<10; /* start code point */ 738 enumEitherTrie(trie, lead, lead+0x400, enumValue, enumRange, context);
|
H A D | ucnvscsu.c | 1032 UChar lead, trail; local 1107 lead=(UChar)c; 1118 /* this is an unmatched lead code unit (1st surrogate) */ 1161 /* change to Unicode mode and output this (lead, trail) pair */ 1168 c=((uint32_t)lead<<16)|trail; 1304 lead=(UChar)c; 1315 /* this is an unmatched lead code unit (1st surrogate) */ 1347 } else if(source<sourceLimit && lead==*source && /* too lazy to check trail in same window as source[1] */ 1361 c=((uint32_t)lead<<16)|trail; 1537 UChar lead, trai local [all...] |
/external/v8/src/ |
H A D | unicode.h | 96 static inline bool IsSurrogatePair(int lead, int trail) { argument 97 return IsLeadSurrogate(lead) && IsTrailSurrogate(trail); 108 static inline int CombineSurrogatePair(uchar lead, uchar trail) { argument 109 return 0x10000 + ((lead & 0x3ff) << 10) + (trail & 0x3ff); 116 // 4 bytes and the 3 bytes that were used to encode the lead surrogate
|