/bionic/libc/bionic/ |
c32rtomb.cpp | 67 uint8_t lead; local 70 lead = 0; 73 lead = 0xc0; 76 lead = 0xe0; 79 lead = 0xf0; 94 *s = (c32 & 0xff) | lead;
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
Utf8StringByteConverter.java | 21 char lead = 0; field in class:Utf8StringByteConverter 26 if (lead != 0) { 28 int cp = UCharacter.getCodePoint(lead, ch); 33 lead = 0; 36 // write lead 37 output[bytePosition++] = (byte) (0xE0 | (lead >>> 12)); 38 output[bytePosition++] = (byte) (0x80 | ((lead >>> 6) & 0x3F)); 39 output[bytePosition++] = (byte) (0x80 | (lead & 0x3F)); 40 lead = 0; 48 lead = ch [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
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) { 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(); local 97 if (UTF16.isLeadSurrogate(lead)) { 109 char lead = ci.current(); local [all...] |
BMPSet.java | 38 * correspond to the same bit positions in consecutive table words. With code point parts lead=c{10..6} 39 * 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 108 int lead = c >> 12; local 109 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; 116 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); 160 int lead = c >> 12 local 199 int lead = c >> 12; local 256 int lead = c >> 12; local 296 int lead = c >> 12; local 331 int lead = start >> 6; \/\/ Named for UTF-8 2-byte lead byte with upper 5 bits. local [all...] |
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 151 * Lead surrogate code points are treated as normal code points, with 163 * @param lead a lead surrogate 166 public final char getSurrogateValue(char lead, char trail [all...] |
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 152 * Lead surrogate code points are treated as normal code points, with 164 * @param lead a lead surrogate 167 public final int getSurrogateValue(char lead, char trail [all...] |
StringSegment.java | 58 * Adjusts the offset by the width of the current lead code point, either 1 or 2 chars. 98 char lead = str.charAt(start); 100 if (Character.isHighSurrogate(lead) 103 return Character.toCodePoint(lead, trail); 105 return lead;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
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) { 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(); local 93 if (UTF16.isLeadSurrogate(lead)) { 105 char lead = ci.current(); local [all...] |
BMPSet.java | 36 * correspond to the same bit positions in consecutive table words. With code point parts lead=c{10..6} 37 * 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 106 int lead = c >> 12; local 107 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; 114 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); 158 int lead = c >> 12 local 197 int lead = c >> 12; local 254 int lead = c >> 12; local 294 int lead = c >> 12; local 329 int lead = start >> 6; \/\/ Named for UTF-8 2-byte lead byte with upper 5 bits. local [all...] |
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 150 * Lead surrogate code points are treated as normal code points, with 162 * @param lead a lead surrogate 165 public final char getSurrogateValue(char lead, char trail [all...] |
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 151 * Lead surrogate code points are treated as normal code points, with 163 * @param lead a lead surrogate 166 public final int getSurrogateValue(char lead, char trail [all...] |
StringSegment.java | 56 * Adjusts the offset by the width of the current lead code point, either 1 or 2 chars. 96 char lead = str.charAt(start); 98 if (Character.isHighSurrogate(lead) 101 return Character.toCodePoint(lead, trail); 103 return lead;
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
UTF8.java | 10 * Counts the trail bytes for a UTF-8 lead byte. 27 * Counts the bytes of any whole valid sequence for a UTF-8 lead byte. 48 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence. 49 * Lead byte E0..EF bits 3..0 are used as data int index, 61 * @param lead E0..EF 63 * @return true if lead byte E0..EF and first trail byte 00..FF start a valid sequence. 65 static boolean isValidLead3AndT1(int lead, byte t1) { 66 return (U8_LEAD3_T1_BITS[lead & 0xf] & (1 << ((t1 & 0xff) >> 5))) != 0; 71 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence. 72 * Lead byte F0..F4 bits 2..0 are used as data int index [all...] |
CharsetEncoderICU.java | 847 * a lead surrogate followed by a trail surrogate. This method can change [all...] |
/external/googletest/googletest/src/ |
gtest-printers.cc | 382 unsigned char lead = s[i++]; local 384 if (lead <= 0x7f) { 387 if (lead < 0xc2) { 389 } else if (lead <= 0xdf && (i + 1) <= length && IsUTF8TrailByte(s[i])) { 391 } else if (0xe0 <= lead && lead <= 0xef && (i + 2) <= length && 395 (lead != 0xe0 || s[i] >= 0xa0) && 396 (lead != 0xed || s[i] < 0xa0)) { 398 } else if (0xf0 <= lead && lead <= 0xf4 && (i + 3) <= length & [all...] |
/external/libvpx/libvpx/third_party/googletest/src/src/ |
gtest-printers.cc | 383 unsigned char lead = s[i++]; local 385 if (lead <= 0x7f) { 388 if (lead < 0xc2) { 390 } else if (lead <= 0xdf && (i + 1) <= length && IsUTF8TrailByte(s[i])) { 392 } else if (0xe0 <= lead && lead <= 0xef && (i + 2) <= length && 396 (lead != 0xe0 || s[i] >= 0xa0) && 397 (lead != 0xed || s[i] < 0xa0)) { 399 } else if (0xf0 <= lead && lead <= 0xf4 && (i + 3) <= length & [all...] |
/external/icu/icu4c/source/common/ |
bmpset.cpp | 74 int32_t lead=start>>6; // Named for UTF-8 2-byte lead byte with upper 5 bits. 78 uint32_t bits=(uint32_t)1<<lead; 87 if(lead==limitLead) { 100 ++lead; 102 if(lead<limitLead) { 103 bits=~(((unsigned)1<<lead)-1); 234 bits=3; // Lead bytes 0xC0 and 0xC1. 239 bits=1; // Lead byte 0xE0. 244 mask= static_cast<uint32_t>(~(0x10001<<0xd)); // Lead byte 0xED [all...] |
ucasemap.cpp | 228 uint8_t lead = src[srcIndex++]; local 229 if (lead <= 0x7f) { 230 int8_t d = latinToLower[lead]; 233 c = lead; 239 char ascii = (char)(lead + d); 246 } else if (lead < 0xe3) { 248 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLimit && 252 c = ((lead - 0xc0) << 6) | t; 268 } else if ((lead <= 0xe9 || lead == 0xeb || lead == 0xec) & 336 uint8_t lead = src[srcIndex++]; local [all...] |
/external/strace/ |
strace-graph | 302 my ($pid, $lead) = @_; 326 print "$lead [$elapsed] $pid @$argv\n"; 329 print "$lead $pid @$argv\n"; 333 if ($lead =~ /-$/) { 334 display_pid_trace($$elem[1], "$lead--+--"); 336 display_pid_trace($$elem[1], "$lead +--"); 339 display_pid_trace($$elem[1], "$lead `--"); 341 display_pid_trace($$elem[1], "$lead +--"); 345 $lead =~ s/\`--/ /g; 346 $lead =~ s/-/ /g [all...] |
/external/libchrome/base/third_party/icu/ |
icu_utf.h | 106 * is it a lead surrogate? 117 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence. 118 * Lead byte E0..EF bits 3..0 are used as byte index, 127 * Non-zero if lead byte E0..EF and first trail byte 00..FF start a valid sequence. 130 #define CBU8_IS_VALID_LEAD3_AND_T1(lead, t1) (CBU8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5))) 134 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence. 136 * lead byte F0..F4 bits 2..0 are used as bit index into that byte. 144 * Non-zero if lead byte F0..F4 and first trail byte 00..FF start a valid sequence. 147 #define CBU8_IS_VALID_LEAD4_AND_T1(lead, t1) (CBU8_LEAD4_T1_BITS[(uint8_t)(t1)>>4]&(1<<((lead)&7)) [all...] |
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/ |
LZMA2Decoder.java | 56 final int lead = Integer.numberOfLeadingZeros(dictSize); local 57 final int secondBit = (dictSize >>> (30 - lead)) - 2; 59 (byte) ((19 - lead) * 2 + secondBit)
|
/external/icu/icu4c/source/i18n/ |
numparse_stringsegment.cpp | 73 char16_t lead = fStr.charAt(fStart); local 74 if (U16_IS_LEAD(lead) && fStart + 1 < fEnd) { 76 } else if (U16_IS_SURROGATE(lead)) { 79 return lead;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
UTF16CollationIterator.java | 94 char lead; local 96 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { 98 return Character.toCodePoint(lead, c);
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
UTF16CollationIterator.java | 92 char lead; local 94 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) { 96 return Character.toCodePoint(lead, c);
|
/external/icu/icu4c/source/test/cintltst/ |
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) && (lead)<BOCU1_START_POS_4) ? 3 : 4 288 int32_t result, m, lead, count, shift; local [all...] |