Searched defs:lead (Results 1 - 25 of 58) sorted by relevance

123

/external/icu/android_icu4j/src/main/java/android/icu/impl/
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
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 DCharTrie.java53 * 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 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 */
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 DTrie.java32 * 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 DTrie2.java247 * 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 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
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 DCharTrie.java52 * 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 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 */
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 DTrie.java31 * 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 Dutf16collationiterator.cpp113 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 Duit_len8.c454 UChar lead=U16_LEAD(iter->reservedField); local
460 return lead;
/external/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) { argument
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.
84 * @param lead F0..F4
86 * @return true if lead byt
88 isValidLead4AndT1(int lead, byte t1) argument
[all...]
H A DCharsetASCII.java326 * 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 DCharsetUTF16.java198 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 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) { 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/deqp/framework/delibs/debase/
H A DdeString.c96 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 DUTF16Util.java287 * Determines whether the character is a lead surrogate.
289 * @return true iff the input character is a lead surrogate
349 char lead = source[offset16];
350 if (isLeadSurrogate(lead))
351 return getRawSupplementary(lead, single);
356 * Shift value for lead surrogate to form a supplementary character.
374 * @param lead lead surrogate character
378 public static int getRawSupplementary(char lead, char trail) argument
380 return (lead << LEAD_SURROGATE_SHIFT
[all...]
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
H A DUTF16Util.java283 * 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 Dsprpdata.c212 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
/external/icu/icu4c/source/test/intltest/
H A Dtestidn.cpp388 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/tools/gennorm2/
H A Dnorms.cpp197 UChar32 lead=m.char32At(0); local
199 if(norms.getCC(lead)!=0) {
204 (long)start, (long)lead);
209 // Insert (trail, composite) pair into compositions list for the lead character.
211 Norm *leadNorm=norms.createNorm(lead);
226 (long)start, (long)lead, (long)trail);
/external/icu/icu4c/source/common/
H A Duiter.cpp911 UChar lead=U16_LEAD(iter->reservedField); local
917 return lead;
H A Dutrie2.cpp605 * 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);
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
H A Dpa_avx.cpp482 simdvector& lead = pa.leadingVertex.attrib[slot]; local
483 verts[0] = swizzleLane0(lead);
/external/v8/src/
H A Dunicode.h96 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

Completed in 545 milliseconds

123