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

123

/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DCharacterIteration.java29 * 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 DCharTrie.java51 * 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 DIntTrie.java55 * 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...]
H A DTrie.java30 * for lead surrogate codepoints, while the fromLead() method get special
31 * "folded" offsets for lead surrogate code units if there is relevant data
38 * that offset from the folded value for the lead surrogate unit.</p>
60 * Called by android.icu.impl.Trie to extract from a lead surrogate's
62 * the index array offset of the indexes for that lead surrogate.
65 * @return data offset or 0 if there is no data for the lead surrogate
222 * Number of index (stage 1) entries per lead surrogate.
259 * @param lead lead surrogate
263 protected abstract int getSurrogateOffset(char lead, cha argument
[all...]
H A DTrie2.java245 * A Trie2 stores two distinct values for input in the lead surrogate
246 * range, one for lead surrogates, which is the value that will be
250 * For code units outside of the lead surrogate range, this function
253 * This function, together with the alternate value for lead surrogates,
260 * code points associated with a lead surrogate.
262 * lead surrogate code _unit_, with Trie2Writable.setForLeadSurrogateCodeUnit().
265 * data and the code unit is a lead surrogate, then check if a trail surrogate
267 * with Trie2.get(); otherwise reset the lead
270 * If there is only trivial data for lead and trail surrogates, then processing
274 * @param c the code point or lead surrogat
412 iteratorForLeadSurrogate(char lead, ValueMapper mapper) argument
429 iteratorForLeadSurrogate(char lead) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCharacterIteration.java25 * 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 DCharTrie.java50 * 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 DIntTrie.java54 * 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...]
H A DTrie.java29 * for lead surrogate codepoints, while the fromLead() method get special
30 * "folded" offsets for lead surrogate code units if there is relevant data
37 * that offset from the folded value for the lead surrogate unit.</p>
59 * Called by com.ibm.icu.impl.Trie to extract from a lead surrogate's
61 * the index array offset of the indexes for that lead surrogate.
64 * @return data offset or 0 if there is no data for the lead surrogate
221 * Number of index (stage 1) entries per lead surrogate.
258 * @param lead lead surrogate
262 protected abstract int getSurrogateOffset(char lead, cha argument
[all...]
/external/icu/icu4c/source/i18n/
H A Dutf16collationiterator.cpp111 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/icu4c/source/samples/uciter8/
H A Duit_len8.c448 UChar lead=U16_LEAD(iter->reservedField); local
454 return lead;
/external/deqp/framework/delibs/debase/
H A DdeString.c100 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/
H A DUTF16Util.java282 * 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/classes/charset/src/com/ibm/icu/charset/
H A DCharsetASCII.java321 * if the character is a lead surrogate, we need to call encodeTrail to attempt to match
329 private final CoderResult encodeTrail(CharBuffer source, char lead, boolean flush) { argument
334 CoderResult cr = handleSurrogates(source, lead);
H A DCharsetUTF16.java194 private final CoderResult decodeTrail(ByteBuffer source, CharBuffer target, IntBuffer offsets, char lead) { argument
195 if (!UTF16.isLeadSurrogate(lead)) {
196 // 2 bytes, lead malformed
204 toUnicodeStatus = lead;
217 // 2 bytes, lead malformed
225 target.put(lead);
270 // a note: fromUChar32 will either be 0 or a lead surrogate
H A DCharsetEncoderICU.java838 * 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/tests/framework/src/com/ibm/icu/dev/test/
H A DUTF16Util.java281 * 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/icu/icu4c/source/test/cintltst/
H A Dsprpdata.c210 UChar lead = U16_LEAD(mapping[i]); local
212 if(mappingData[idx+i] != lead ||
214 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]);
241 // get data for lead surrogate
245 // get the real data from the folded lead/trail units
H A Dbocu1tst.c73 /* 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/icu4c/source/test/intltest/
H A Dtestidn.cpp386 UChar lead = U16_LEAD(mapping[i]); local
388 if(mappingData[index+i] != lead ||
390 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]);
415 // get data for lead surrogate
419 // get the real data from the folded lead/trail units
/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
/external/icu/icu4c/source/common/
H A Duiter.cpp909 UChar lead=U16_LEAD(iter->reservedField); local
915 return lead;
H A Dutrie2.cpp603 * Enumerate values for lead surrogate code points, not code units:
729 utrie2_enumForLeadSurrogate(const UTrie2 *trie, UChar32 lead, argument
732 if(!U16_IS_LEAD(lead)) {
735 lead=(lead-0xd7c0)<<10; /* start code point */
736 enumEitherTrie(trie, lead, lead+0x400, enumValue, enumRange, context);
H A Ducnvscsu.c1030 UChar lead, trail; local
1105 lead=(UChar)c;
1116 /* this is an unmatched lead code unit (1st surrogate) */
1159 /* change to Unicode mode and output this (lead, trail) pair */
1166 c=((uint32_t)lead<<16)|trail;
1302 lead=(UChar)c;
1313 /* this is an unmatched lead code unit (1st surrogate) */
1345 } else if(source<sourceLimit && lead==*source && /* too lazy to check trail in same window as source[1] */
1359 c=((uint32_t)lead<<16)|trail;
1520 UChar lead, trai local
[all...]
/external/icu/icu4c/source/layout/
H A DHangulLayoutEngine.cpp111 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...]

Completed in 384 milliseconds

123