/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 | BMPSet.java | 37 * correspond to the same bit positions in consecutive table words. With code point parts lead=c{10..6} 38 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead) 47 * correspond to the same bit position in consecutive table words. With code point parts lead=c{15..12} 48 * t1=c{11..6} test bits (lead+16) and lead in bmpBlockBits[t1]. If the upper bit is 0, then the lower bit 109 int lead = c >> 12; 110 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; 117 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); 161 int 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...] |
/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 | BMPSet.java | 35 * correspond to the same bit positions in consecutive table words. With code point parts lead=c{10..6} 36 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead) 45 * correspond to the same bit position in consecutive table words. With code point parts lead=c{15..12} 46 * t1=c{11..6} test bits (lead+16) and lead in bmpBlockBits[t1]. If the upper bit is 0, then the lower bit 107 int lead = c >> 12; 108 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; 115 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); 159 int 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...] |
/external/icu/icu4c/source/common/ |
H A D | bmpset.cpp | 72 int32_t lead=start>>6; // Named for UTF-8 2-byte lead byte with upper 5 bits. 76 uint32_t bits=(uint32_t)1<<lead; 85 if(lead==limitLead) { 98 ++lead; 100 if(lead<limitLead) { 101 bits=~((1<<lead)-1); 285 int lead=c>>12; 286 uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001; 293 return containsSlow(c, list4kStarts[lead], list4kStart [all...] |
/external/strace/ |
H A D | strace-graph | 293 my ($pid, $lead) = @_; 317 print "$lead [$elapsed] $pid @$argv\n"; 320 print "$lead $pid @$argv\n"; 324 if ($lead =~ /-$/) { 325 display_pid_trace($$elem[1], "$lead--+--"); 327 display_pid_trace($$elem[1], "$lead +--"); 330 display_pid_trace($$elem[1], "$lead `--"); 332 display_pid_trace($$elem[1], "$lead +--"); 336 $lead =~ s/\`--/ /g; 337 $lead [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
H A D | UTF16CollationIterator.java | 94 char lead; 96 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { 98 return Character.toCodePoint(lead, c);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
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/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | UTF16CollationIterator.java | 92 char lead; 94 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { 96 return Character.toCodePoint(lead, c);
|
/external/icu/icu4c/source/test/cintltst/ |
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...] |
/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/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/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/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
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
H A D | TrieTest.java | 163 // unlike the c version lead is 0 if c is non-supplementary 164 char lead = UTF16.getLeadSurrogate(c); 166 if (lead == 0 168 : !UTF16.isLeadSurrogate(lead) 169 || !UTF16.isTrailSurrogate(trail) || lead != s.charAt(p - 2) 171 errln("wrong (lead, trail) from UTRIE_NEXT(U+" 175 if (lead != 0) { 176 value = trie.getLeadValue(lead); 178 if (value != trie.getSurrogateValue(lead, trail) 495 /* test that the lead surrogat [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | TrieTest.java | 162 // unlike the c version lead is 0 if c is non-supplementary 163 char lead = UTF16.getLeadSurrogate(c); 165 if (lead == 0 167 : !UTF16.isLeadSurrogate(lead) 168 || !UTF16.isTrailSurrogate(trail) || lead != s.charAt(p - 2) 170 errln("wrong (lead, trail) from UTRIE_NEXT(U+" 174 if (lead != 0) { 175 value = trie.getLeadValue(lead); 177 if (value != trie.getSurrogateValue(lead, trail) 494 /* test that the lead surrogat [all...] |
/external/icu/icu4c/source/tools/tzcode/ |
H A D | zdump.c | 884 register int lead; local 910 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + 913 if (trail < 0 && lead > 0) { 915 --lead; 916 } else if (lead < 0 && trail > 0) { 918 ++lead; 920 if (lead == 0) 922 else (void) printf("%d%d", lead, ((trail < 0) ? -trail : trail)); 987 register int lead; local 995 lead [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/android_icu4j/src/main/java/android/icu/text/ |
H A D | UTF16.java | 228 char lead = source.charAt(offset16); 229 if (lead >= LEAD_SURROGATE_MIN_VALUE && lead <= LEAD_SURROGATE_MAX_VALUE) { 230 return Character.toCodePoint(lead, single); 282 char lead = source.charAt(offset16); 283 if (lead >= UTF16.LEAD_SURROGATE_MIN_VALUE 284 && lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 285 return Character.toCodePoint(lead, single); 332 char lead = source.charAt(offset16); 333 if (isLeadSurrogate(lead)) { [all...] |
/external/icu/icu4c/source/tools/gennorm2/ |
H A D | n2builder.cpp | 368 UChar32 lead=m.char32At(0); local 370 if(getCC(lead)!=0) { 375 (long)start, (long)lead); 380 // Insert (trail, composite) pair into compositions list for the lead character. 382 Norm *leadNorm=createNorm(lead); 397 (long)start, (long)lead, (long)trail); 705 UChar32 lead= c<=0xffff ? c : U16_LEAD(c); local 706 smallFCD[lead>>8]|=(uint8_t)1<<((lead>>5)&7); 847 UChar32 lead local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | UTF16.java | 248 char lead = source.charAt(offset16); 249 if (lead >= LEAD_SURROGATE_MIN_VALUE && lead <= LEAD_SURROGATE_MAX_VALUE) { 250 return Character.toCodePoint(lead, single); 303 char lead = source.charAt(offset16); 304 if (lead >= UTF16.LEAD_SURROGATE_MIN_VALUE 305 && lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 306 return Character.toCodePoint(lead, single); 354 char lead = source.charAt(offset16); 355 if (isLeadSurrogate(lead)) { [all...] |