/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | CharacterIteration.java | 29 * For Supplementary chars, the iterator is left positioned at the lead surrogate. 47 // If we might have a lead surrogate, we need to peak ahead to get the trail 55 // of the lead surrogate. 69 public static int nextTrail32(CharacterIterator ci, int lead) { argument 70 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { 73 int retVal = lead; 74 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 77 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + 94 char lead = ci.previous(); 95 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 | 51 * or the leadUnitValue for lead surrogate code points. 55 * @param leadUnitValue the value for lead surrogate code _units_ that do not 88 /* indexes for lead surrogate code units to the block after Latin-1 */ 96 /* data for lead surrogate code units */ 134 * Gets the value to the data which this lead surrogate character points 139 * @param ch lead surrogate character 161 * @param lead a lead surrogate 164 public final char getSurrogateValue(char lead, char trail) argument 166 int offset = getSurrogateOffset(lead, trai 252 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | IntTrie.java | 55 * or the leadUnitValue for lead surrogate code points. 59 * @param leadUnitValue the value for lead surrogate code _units_ that do not 92 /* indexes for lead surrogate code units to the block after Latin-1 */ 100 /* 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 int getSurrogateValue(char lead, char trail) argument 167 if (!UTF16.isLeadSurrogate(lead) || !UTF1 265 getSurrogateOffset(char lead, char trail) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | CharacterIteration.java | 25 * For Supplementary chars, the iterator is left positioned at the lead surrogate. 43 // If we might have a lead surrogate, we need to peak ahead to get the trail 51 // of the lead surrogate. 65 public static int nextTrail32(CharacterIterator ci, int lead) { argument 66 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { 69 int retVal = lead; 70 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 73 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + 90 char lead = ci.previous(); 91 if (UTF16.isLeadSurrogate(lead)) { [all...] |
H A D | BMPSet.java | 33 * correspond to the same bit positions in consecutive table words. With code point parts lead=c{10..6} 34 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead) 43 * correspond to the same bit position in consecutive table words. With code point parts lead=c{15..12} 44 * t1=c{11..6} test bits (lead+16) and lead in bmpBlockBits[t1]. If the upper bit is 0, then the lower bit 105 int lead = c >> 12; 106 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; 113 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); 157 int lead [all...] |
H A D | CharTrie.java | 50 * or the leadUnitValue for lead surrogate code points. 54 * @param leadUnitValue the value for lead surrogate code _units_ that do not 87 /* indexes for lead surrogate code units to the block after Latin-1 */ 95 /* data for lead surrogate code units */ 133 * Gets the value to the data which this lead surrogate character points 138 * @param ch lead surrogate character 160 * @param lead a lead surrogate 163 public final char getSurrogateValue(char lead, char trail) argument 165 int offset = getSurrogateOffset(lead, trai 251 getSurrogateOffset(char lead, char trail) argument [all...] |
H A D | IntTrie.java | 54 * or the leadUnitValue for lead surrogate code points. 58 * @param leadUnitValue the value for lead surrogate code _units_ that do not 91 /* indexes for lead surrogate code units to the block after Latin-1 */ 99 /* data for lead surrogate code units */ 134 * Gets the value to the data which this lead surrogate character points 139 * @param ch lead surrogate character 161 * @param lead a lead surrogate 164 public final int getSurrogateValue(char lead, char trail) argument 166 if (!UTF16.isLeadSurrogate(lead) || !UTF1 264 getSurrogateOffset(char lead, char trail) argument [all...] |
/external/strace/ |
H A D | strace-graph | 277 my ($pid, $lead) = @_; 301 print "$lead [$elapsed] @$argv\n"; 304 print "$lead @$argv\n"; 308 if ($lead =~ /-$/) { 309 display_pid_trace($$elem[1], "$lead--+--"); 311 display_pid_trace($$elem[1], "$lead +--"); 314 display_pid_trace($$elem[1], "$lead `--"); 316 display_pid_trace($$elem[1], "$lead +--"); 320 $lead =~ s/\`--/ /g; 321 $lead [all...] |
/external/icu/icu4c/source/common/ |
H A D | bmpset.cpp | 70 int32_t lead=start>>6; // Named for UTF-8 2-byte lead byte with upper 5 bits. 74 uint32_t bits=(uint32_t)1<<lead; 83 if(lead==limitLead) { 96 ++lead; 98 if(lead<limitLead) { 99 bits=~((1<<lead)-1); 283 int lead=c>>12; 284 uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001; 291 return containsSlow(c, list4kStarts[lead], list4kStart [all...] |
/external/icu/icu4c/source/layout/ |
H A D | HangulLayoutEngine.cpp | 111 static le_int32 compose(LEUnicode lead, LEUnicode vowel, LEUnicode trail, LEUnicode &syllable) argument 113 le_int32 lIndex = lead - LJMO_FIRST; 132 static le_int32 decompose(LEUnicode syllable, LEUnicode &lead, LEUnicode &vowel, LEUnicode &trail) argument 140 lead = LJMO_FIRST + (sIndex / HSYL_LVCNT); 151 static le_int32 getCharClass(LEUnicode ch, LEUnicode &lead, LEUnicode &vowel, LEUnicode &trail) argument 153 lead = LJMO_FILL; 158 lead = ch; 172 le_int32 c = decompose(ch, lead, vowel, trail); 248 LEUnicode lead = 0; local 251 int32_t chClass = getCharClass(chars[i], lead, vowe 308 LEUnicode lead = outChars[outStart]; local [all...] |
/external/icu/android_icu4j/src/main/java/android/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/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetEncoderICU.java | 838 * a lead surrogate followed by a trail surrogate. This method can change 850 * @param lead 858 final CoderResult handleSurrogates(CharBuffer source, char lead) { argument 859 if (!UTF16.isLeadSurrogate(lead)) { 860 fromUChar32 = lead; 865 fromUChar32 = lead; 872 fromUChar32 = lead; 877 fromUChar32 = UCharacter.getCodePoint(lead, trail); 891 * @param lead 900 int sourceLimit, char lead) { 899 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 | 90 char lead; 92 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { 94 return Character.toCodePoint(lead, c);
|
/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/icu4c/source/test/cintltst/ |
H A D | bocu1tst.c | 73 /* number of lead bytes */ 89 /* number of lead bytes for positive and negative 2/3/4-byte sequences */ 108 /* The lead byte start values. */ 119 /* The length of a byte sequence, according to the lead byte (!=BOCU1_RESET). */ 120 #define BOCU1_LENGTH_FROM_LEAD(lead) \ 121 ((BOCU1_START_NEG_2<=(lead) && (lead)<BOCU1_START_POS_2) ? 1 : \ 122 (BOCU1_START_NEG_3<=(lead) && (lead)<BOCU1_START_POS_3) ? 2 : \ 123 (BOCU1_START_NEG_4<=(lead) 286 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 | 282 * Determines whether the character is a lead surrogate. 284 * @return true iff the input character is a lead surrogate 344 char lead = source[offset16]; 345 if (isLeadSurrogate(lead)) 346 return getRawSupplementary(lead, single); 351 * Shift value for lead surrogate to form a supplementary character. 369 * @param lead lead surrogate character 373 public static int getRawSupplementary(char lead, char trail) argument 375 return (lead << LEAD_SURROGATE_SHIFT [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
H A D | UTF16Util.java | 281 * Determines whether the character is a lead surrogate. 283 * @return true iff the input character is a lead surrogate 343 char lead = source[offset16]; 344 if (isLeadSurrogate(lead)) 345 return getRawSupplementary(lead, single); 350 * Shift value for lead surrogate to form a supplementary character. 368 * @param lead lead surrogate character 372 public static int getRawSupplementary(char lead, char trail) argument 374 return (lead << LEAD_SURROGATE_SHIFT [all...] |
/external/deqp/framework/delibs/debase/ |
H A D | deString.c | 100 deBool deStringBeginsWith (const char* str, const char* lead) argument 103 const char* b = lead;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
H A D | TrieTest.java | 172 // unlike the c version lead is 0 if c is non-supplementary 173 char lead = UTF16.getLeadSurrogate(c); 175 if (lead == 0 177 : !UTF16.isLeadSurrogate(lead) 178 || !UTF16.isTrailSurrogate(trail) || lead != s.charAt(p - 2) 180 errln("wrong (lead, trail) from UTRIE_NEXT(U+" 184 if (lead != 0) { 185 value = trie.getLeadValue(lead); 187 if (value != trie.getSurrogateValue(lead, trail) 502 /* test that the lead surrogat [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | TrieTest.java | 168 // unlike the c version lead is 0 if c is non-supplementary 169 char lead = UTF16.getLeadSurrogate(c); 171 if (lead == 0 173 : !UTF16.isLeadSurrogate(lead) 174 || !UTF16.isTrailSurrogate(trail) || lead != s.charAt(p - 2) 176 errln("wrong (lead, trail) from UTRIE_NEXT(U+" 180 if (lead != 0) { 181 value = trie.getLeadValue(lead); 183 if (value != trie.getSurrogateValue(lead, trail) 498 /* 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 | 111 UChar lead; local 112 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { 114 return U16_GET_SUPPLEMENTARY(lead, c); 314 UChar lead; local 315 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { 317 return U16_GET_SUPPLEMENTARY(lead, c);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | UTF16.java | 224 char lead = source.charAt(offset16); 225 if (lead >= LEAD_SURROGATE_MIN_VALUE && lead <= LEAD_SURROGATE_MAX_VALUE) { 226 return Character.toCodePoint(lead, single); 278 char lead = source.charAt(offset16); 279 if (lead >= UTF16.LEAD_SURROGATE_MIN_VALUE 280 && lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { 281 return Character.toCodePoint(lead, single); 328 char lead = source.charAt(offset16); 329 if (isLeadSurrogate(lead)) { [all...] |
/external/icu/icu4c/source/tools/gennorm2/ |
H A D | n2builder.cpp | 366 UChar32 lead=m.char32At(0); local 368 if(getCC(lead)!=0) { 373 (long)start, (long)lead); 378 // Insert (trail, composite) pair into compositions list for the lead character. 380 Norm *leadNorm=createNorm(lead); 395 (long)start, (long)lead, (long)trail); 703 UChar32 lead= c<=0xffff ? c : U16_LEAD(c); local 704 smallFCD[lead>>8]|=(uint8_t)1<<((lead>>5)&7); 845 UChar32 lead local [all...] |