Home
last modified time | relevance | path

Searched refs:lead (Results 1 - 25 of 178) sorted by relevance

12345678

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DBMPSet.java36 * 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; in contains()
107 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; in contains()
114 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); in contains()
158 int lead in span()
[all...]
H A DCharacterIteration.java27 * 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 in next32()
53 // of the lead surrogate. in next32()
67 public static int nextTrail32(CharacterIterator ci, int lead) { in nextTrail32() argument
68 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { in nextTrail32()
71 int retVal = lead; in nextTrail32()
72 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { in nextTrail32()
75 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + in nextTrail32()
92 char lead = ci.previous(); in previous32()
93 if (UTF16.isLeadSurrogate(lead)) { in previous32()
[all...]
H A DIntTrie.java56 * 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 */ in IntTrie()
101 /* data for lead surrogate code units */ in IntTrie()
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) in getSurrogateValue() argument
168 if (!UTF16.isLeadSurrogate(lead) || !UTF1 in getSurrogateValue()
270 getSurrogateOffset(char lead, char trail) getSurrogateOffset() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DBMPSet.java38 * 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; in contains()
109 int twoBits = (bmpBlockBits[(c >> 6) & 0x3f] >> lead) & 0x10001; in contains()
116 return containsSlow(c, list4kStarts[lead], list4kStarts[lead + 1]); in contains()
160 int lead in span()
[all...]
H A DCharacterIteration.java31 * 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 in next32()
57 // of the lead surrogate. in next32()
71 public static int nextTrail32(CharacterIterator ci, int lead) { in nextTrail32() argument
72 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { in nextTrail32()
75 int retVal = lead; in nextTrail32()
76 if (lead <= UTF16.LEAD_SURROGATE_MAX_VALUE) { in nextTrail32()
79 retVal = ((lead - UTF16.LEAD_SURROGATE_MIN_VALUE) << 10) + in nextTrail32()
96 char lead = ci.previous(); in previous32()
97 if (UTF16.isLeadSurrogate(lead)) { in previous32()
[all...]
H A DIntTrie.java57 * 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 */ in IntTrie()
102 /* data for lead surrogate code units */ in IntTrie()
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) in getSurrogateValue() argument
169 if (!UTF16.isLeadSurrogate(lead) || !UTF1 in getSurrogateValue()
271 getSurrogateOffset(char lead, char trail) getSurrogateOffset() argument
[all...]
/third_party/icu/icu4c/source/common/
H A Dbmpset.cpp74 int32_t lead=start>>6; // Named for UTF-8 2-byte lead byte with upper 5 bits. in set32x64Bits()
78 uint32_t bits=(uint32_t)1<<lead; in set32x64Bits()
87 if(lead==limitLead) { in set32x64Bits()
100 ++lead; in set32x64Bits()
102 if(lead<limitLead) { in set32x64Bits()
103 bits=~(((unsigned)1<<lead)-1); in set32x64Bits()
298 int lead=c>>12;
299 uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001;
306 return containsSlow(c, list4kStarts[lead], list4kStart
[all...]
H A Ducasemap.cpp227 uint8_t lead = src[srcIndex++]; in toLower() local
228 if (lead <= 0x7f) { in toLower()
229 int8_t d = latinToLower[lead]; in toLower()
232 c = lead; in toLower()
238 char ascii = (char)(lead + d); in toLower()
245 } else if (lead < 0xe3) { in toLower()
247 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLimit && in toLower()
251 c = ((lead - 0xc0) << 6) | t; in toLower()
267 } else if ((lead < in toLower()
335 uint8_t lead = src[srcIndex++]; toUpper() local
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dbmpset.cpp74 int32_t lead=start>>6; // Named for UTF-8 2-byte lead byte with upper 5 bits. in set32x64Bits()
78 uint32_t bits=(uint32_t)1<<lead; in set32x64Bits()
87 if(lead==limitLead) { in set32x64Bits()
100 ++lead; in set32x64Bits()
102 if(lead<limitLead) { in set32x64Bits()
103 bits=~(((unsigned)1<<lead)-1); in set32x64Bits()
298 int lead=c>>12;
299 uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001;
306 return containsSlow(c, list4kStarts[lead], list4kStart
[all...]
H A Ducasemap.cpp227 uint8_t lead = src[srcIndex++]; in toLower() local
228 if (lead <= 0x7f) { in toLower()
229 int8_t d = latinToLower[lead]; in toLower()
232 c = lead; in toLower()
238 char ascii = (char)(lead + d); in toLower()
245 } else if (lead < 0xe3) { in toLower()
247 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLimit && in toLower()
251 c = ((lead - 0xc0) << 6) | t; in toLower()
267 } else if ((lead < in toLower()
335 uint8_t lead = src[srcIndex++]; toUpper() local
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dbmpset.cpp74 int32_t lead=start>>6; // Named for UTF-8 2-byte lead byte with upper 5 bits. in set32x64Bits()
78 uint32_t bits=(uint32_t)1<<lead; in set32x64Bits()
87 if(lead==limitLead) { in set32x64Bits()
100 ++lead; in set32x64Bits()
102 if(lead<limitLead) { in set32x64Bits()
103 bits=~(((unsigned)1<<lead)-1); in set32x64Bits()
298 int lead=c>>12;
299 uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001;
306 return containsSlow(c, list4kStarts[lead], list4kStart
[all...]
H A Ducasemap.cpp228 uint8_t lead = src[srcIndex++]; in toLower() local
229 if (lead <= 0x7f) { in toLower()
230 int8_t d = latinToLower[lead]; in toLower()
233 c = lead; in toLower()
239 char ascii = (char)(lead + d); in toLower()
246 } else if (lead < 0xe3) { in toLower()
248 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLimit && in toLower()
252 c = ((lead - 0xc0) << 6) | t; in toLower()
268 } else if ((lead < in toLower()
336 uint8_t lead = src[srcIndex++]; toUpper() local
[all...]
/third_party/glfw/tests/
H A Dinputlag.c146 void draw_marker(struct nk_command_buffer* canvas, int lead, struct nk_vec2 pos) in draw_marker() argument
150 nk_fill_circle(canvas, rect, colors[lead]); in draw_marker()
245 int lead; in main() local
247 for (lead = show_forecasts ? 3 : 0; lead >= 0; lead--) in main()
248 draw_marker(canvas, lead, nk_vec2(cursor_pos.x + cursor_vel.x * lead, in main()
249 cursor_pos.y + cursor_vel.y * lead)); in main()
254 for (lead in main()
[all...]
/third_party/node/deps/undici/src/lib/fetch/
H A DdataURL.js578 let lead = 0
582 for (; lead < str.length && isHTTPWhiteSpace(str[lead]); lead++);
589 return str.slice(lead, trail + 1)
604 let lead = 0
608 for (; lead < str.length && isASCIIWhitespace(str[lead]); lead++);
615 return str.slice(lead, trai
[all...]
/third_party/mesa3d/src/gtest/src/
H A Dgtest-printers.cc386 unsigned char lead = s[i++]; in IsValidUTF8() local
388 if (lead <= 0x7f) { in IsValidUTF8()
391 if (lead < 0xc2) { in IsValidUTF8()
393 } else if (lead <= 0xdf && (i + 1) <= length && IsUTF8TrailByte(s[i])) { in IsValidUTF8()
395 } else if (0xe0 <= lead && lead <= 0xef && (i + 2) <= length && in IsValidUTF8()
399 (lead != 0xe0 || s[i] >= 0xa0) && in IsValidUTF8()
400 (lead != 0xed || s[i] < 0xa0)) { in IsValidUTF8()
402 } else if (0xf0 <= lead && lead < in IsValidUTF8()
[all...]
/third_party/benchmark/src/
H A Dperf_counters.cc38 for (int lead : leaders) { in Read()
39 auto read_bytes = ::read(lead, ptr, size); in Read()
50 GetErrorLogInstance() << "Error reading lead " << lead << " errno:" << err in Read()
212 for (int lead : leader_ids) { in Create()
213 if (ioctl(lead, PERF_EVENT_IOC_ENABLE) != 0) { in Create()
238 for (int lead : leader_ids_) { in CloseCounters()
239 ioctl(lead, PERF_EVENT_IOC_DISABLE); in CloseCounters()
/third_party/node/test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/
H A Diso2022jp-decoder.js36 var cp, ptr, lead;
176 lead = isoLead;
179 if (lead == 0x28 && byte == 0x42) state = "ascii";
180 if (lead == 0x28 && byte == 0x4a) state = "roman";
181 if (lead == 0x28 && byte == 0x49) state = "katakana";
182 if (lead == 0x24 && (byte == 0x40 || byte == 0x42))
196 // Prepend the sequence (lead, byte) to the stream
197 bytes.unshift(lead, byte);
/third_party/node/test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/
H A Deucjp-decoder.js22 var lead, byte, offset, ptr, cp;
52 lead = eucjpLead;
57 lead >= 0xa1 &&
58 lead <= 0xfe &&
61 ptr = (lead - 0xa1) * 94 + byte - 0xa1;
/third_party/typescript/tests/baselines/reference/
H A DtypeGuardFunctionOfFormThis.js12 lead(): void {};
21 a.lead();
31 b.lead();
38 // a.lead();
45 // a.lead();
120 lead(): void {}
176 LeadGuard.prototype.lead = function () { };
191 a.lead();
198 b.lead();
204 // a.lead();
[all...]
H A DtypeGuardFunctionOfFormThisErrors.js12 lead(): void {};
59 a.lead();
94 LeadGuard.prototype.lead = function () { };
138 a.lead();
148 lead(): void;
/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
H A DUTF8.java10 * 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.
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) { in isValidLead3AndT1() argument
66 return (U8_LEAD3_T1_BITS[lead & 0xf] & (1 << ((t1 & 0xff) >> 5))) != 0; in isValidLead3AndT1()
71 * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence.
84 * @param lead F0..F4
86 * @return true if lead byt
88 isValidLead4AndT1(int lead, byte t1) isValidLead4AndT1() argument
[all...]
H A DCharsetEncoderICU.java847 * a lead surrogate followed by a trail surrogate. This method can change
859 * @param lead
867 final CoderResult handleSurrogates(CharBuffer source, char lead) { in handleSurrogates() argument
868 if (!UTF16.isLeadSurrogate(lead)) { in handleSurrogates()
869 fromUChar32 = lead; in handleSurrogates()
874 fromUChar32 = lead; in handleSurrogates()
881 fromUChar32 = lead; in handleSurrogates()
886 fromUChar32 = UCharacter.getCodePoint(lead, trail); in handleSurrogates()
900 * @param lead
909 int sourceLimit, char lead) { in handleSurrogates()
908 handleSurrogates(char[] sourceArray, int sourceIndex, int sourceLimit, char lead) handleSurrogates() argument
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dbocu1tst.c77 /* number of lead bytes */
93 /* number of lead bytes for positive and negative 2/3/4-byte sequences */
112 /* The lead byte start values. */
123 /* The length of a byte sequence, according to the lead byte (!=BOCU1_RESET). */
124 #define BOCU1_LENGTH_FROM_LEAD(lead) \
125 ((BOCU1_START_NEG_2<=(lead) && (lead)<BOCU1_START_POS_2) ? 1 : \
126 (BOCU1_START_NEG_3<=(lead) && (lead)<BOCU1_START_POS_3) ? 2 : \
127 (BOCU1_START_NEG_4<=(lead)
290 int32_t result, m, lead, count, shift; packDiff() local
[all...]
/third_party/googletest/googletest/src/
H A Dgtest-printers.cc484 unsigned char lead = s[i++]; in IsValidUTF8() local
486 if (lead <= 0x7f) { in IsValidUTF8()
489 if (lead < 0xc2) { in IsValidUTF8()
491 } else if (lead <= 0xdf && (i + 1) <= length && IsUTF8TrailByte(s[i])) { in IsValidUTF8()
493 } else if (0xe0 <= lead && lead <= 0xef && (i + 2) <= length && in IsValidUTF8()
496 (lead != 0xe0 || s[i] >= 0xa0) && in IsValidUTF8()
497 (lead != 0xed || s[i] < 0xa0)) { in IsValidUTF8()
499 } else if (0xf0 <= lead && lead < in IsValidUTF8()
[all...]
/third_party/node/deps/googletest/src/
H A Dgtest-printers.cc487 unsigned char lead = s[i++]; in IsValidUTF8() local
489 if (lead <= 0x7f) { in IsValidUTF8()
492 if (lead < 0xc2) { in IsValidUTF8()
494 } else if (lead <= 0xdf && (i + 1) <= length && IsUTF8TrailByte(s[i])) { in IsValidUTF8()
496 } else if (0xe0 <= lead && lead <= 0xef && (i + 2) <= length && in IsValidUTF8()
499 (lead != 0xe0 || s[i] >= 0xa0) && in IsValidUTF8()
500 (lead != 0xed || s[i] < 0xa0)) { in IsValidUTF8()
502 } else if (0xf0 <= lead && lead < in IsValidUTF8()
[all...]

Completed in 15 milliseconds

12345678