Searched defs:trail (Results 1 - 25 of 62) sorted by relevance

123

/external/icu/icu4c/source/i18n/
H A Duitercollationiterator.cpp55 UChar32 trail = iter.next(&iter); local
56 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); }
57 return (UChar)trail;
146 UChar32 trail = iter.next(&iter); local
147 if(U16_IS_TRAIL(trail)) {
149 } else if(trail >= 0) {
152 return (UChar)trail;
155 UChar trail;
156 if(U16_IS_TRAIL(trail
[all...]
H A Dutf16collationiterator.cpp72 UChar trail; local
73 if(U16_IS_TRAIL(trail = *pos)) { ++pos; }
74 return trail;
98 UChar trail; local
99 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
101 return U16_GET_SUPPLEMENTARY(c, trail);
280 UChar trail; local
281 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
283 return U16_GET_SUPPLEMENTARY(c, trail);
H A Dcollationweights.cpp49 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { argument
51 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length));
265 uint32_t trail=getWeightTrail(weight, length); local
266 if(trail<maxBytes[length]) {
270 lower[length].count=maxBytes[length]-trail;
284 uint32_t trail=getWeightTrail(weight, length); local
285 if(trail>minBytes[length]) {
289 upper[length].count=trail-minBytes[length];
/external/libchrome/base/third_party/icu/
H A Dicu_utf.cc140 uint8_t trail, illegal = 0; local
143 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
148 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
152 trail=s[(i)++];
153 (c)=((c)<<6)|(trail&0x3f);
155 illegal|=(trail&0xc0)^0x80;
162 trail=s[(i)++];
163 (c)=((c)<<6)|(trail&0x3f);
164 illegal|=(trail&0xc0)^0x80;
166 trail
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DCharTrie.java140 * This method does not guarantee correct results for trail surrogates.
164 * @param trail a trail surrogate
166 public final char getSurrogateValue(char lead, char trail) argument
168 int offset = getSurrogateOffset(lead, trail);
177 * and a trail surrogate.</p>
181 * @param trail surrogate
182 * @return trie data value associated with the trail character
184 public final char getTrailValue(int leadvalue, char trail) argument
193 (char)(trail
258 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DIntTrie.java141 * This method does not guarantee correct results for trail surrogates.
165 * @param trail a trail surrogate
167 public final int getSurrogateValue(char lead, char trail) argument
169 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
173 // get fold position for the next trail surrogate
174 int offset = getSurrogateOffset(lead, trail);
176 // get the real data from the folded lead/trail units
187 * and a trail surrogate.
190 * @param trail surrogat
193 getTrailValue(int leadvalue, char trail) argument
271 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DTrie.java224 /** Number of bits of a trail surrogate that are used in index table lookups. */
228 * Same as number of index entries for 1024 trail surrogates,
265 * @param trail trailing surrogate
268 protected abstract int getSurrogateOffset(char lead, char trail); argument
291 * surrogates lead and trail. Then we would have to call getRawOffset()
353 // trail forms the ends of it.
/external/icu/icu4c/source/common/
H A Dustrtrns.cpp269 * *ps points to after the lead byte and will be moved to after the last trail byte.
276 uint8_t trail, illegal=0; local
280 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
285 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
289 trail=(uint8_t)(*s++ - 0x80);
290 c=(c<<6)|trail;
291 if(trail>0x3f || c>=0x110) {
292 /* not a trail byte, or code point>0x10ffff (outside Unicode) */
298 trail=(uint8_t)(*s++ - 0x80);
299 if(trail>
[all...]
H A Dutf_impl.c132 uint8_t trail; local
135 /* support NUL-terminated strings: do not read beyond the first non-trail byte */
139 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
142 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
145 trail=s[i++]-0x80;
146 c=(c<<6)|trail;
148 if(c>=0x110 || trail>0x3f) { break; }
150 trail=s[i++]-0x80;
151 c=(c<<6)|trail;
156 if(((c&0xffe0)==0x360 && strict!=-2) || trail>
[all...]
H A Ducnv_u16.c58 UChar c, trail; local
93 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
99 target[2]=(uint8_t)(trail>>8);
100 target[3]=(uint8_t)trail;
131 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
136 target[2]=(uint8_t)(trail>>8);
137 target[3]=(uint8_t)trail;
153 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
158 target[2]=(uint8_t)(trail>>8);
159 target[3]=(uint8_t)trail;
262 UChar c, trail; local
526 UChar trail; local
657 UChar c, trail; local
861 UChar c, trail; local
1125 UChar trail; local
[all...]
H A Ducnvlat1.c275 UChar trail=*source; local
276 if(U16_IS_TRAIL(trail)) {
278 cp=U16_GET_SUPPLEMENTARY(cp, trail);
291 /* this is an unmatched trail code unit (2nd surrogate) */
365 * For Latin-1, adjust sourceLimit only for 1 trail byte because
H A Ducnvbocu.cpp68 /* adjust trail byte counts for the use of some C0 control byte values */
72 /* number of trail bytes */
146 * but are also used as trail bytes in difference encoding
154 * to trail byte values 0..19 (0..0x13) as used in the difference calculation.
155 * External byte values that are illegal as trail bytes are mapped to -1.
177 * from trail byte values 0..19 (0..0x13) as used in the difference calculation
488 UChar trail=*source; local
489 if(U16_IS_TRAIL(trail)) {
492 c=U16_GET_SUPPLEMENTARY(c, trail);
732 UChar trail local
[all...]
H A Ducnvhz.c211 /* if the first byte is equal to TILDE and the trail byte
252 /* trail byte */
381 /* we can only use lead bytes 21..7D and trail bytes 21..7E */
453 /*look ahead to find the trail surrogate*/
456 UChar trail=(UChar) args->source[mySourceIndex]; local
457 if(U16_IS_TRAIL(trail)) {
459 mySourceChar=U16_GET_SUPPLEMENTARY(args->converter->fromUChar32, trail);
474 /* this is an unmatched trail code unit (2nd surrogate) */
H A Duiter.cpp876 UChar trail=U16_TRAIL(iter->reservedField); local
881 return trail;
/external/icu/icu4c/source/samples/uciter8/
H A Duit_len8.c417 UChar trail=U16_TRAIL(iter->reservedField); local
422 return trail;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
H A DUTF16Util.java180 hadLeadSurrogate = false; // count valid trail as zero
208 hadLeadSurrogate = false; // count valid trail as zero
272 * Determines whether the character is a trail surrogate.
274 * @return true iff the input character is a trail surrogate.
336 char trail = source[offset16];
337 if (isTrailSurrogate(trail)) {
338 return getRawSupplementary(single, trail);
372 * @param trail trailing surrogate character
375 public static int getRawSupplementary(char lead, char trail) argument
377 return (lead << LEAD_SURROGATE_SHIFT_) + trail
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCharTrie.java139 * This method does not guarantee correct results for trail surrogates.
163 * @param trail a trail surrogate
165 public final char getSurrogateValue(char lead, char trail) argument
167 int offset = getSurrogateOffset(lead, trail);
176 * and a trail surrogate.</p>
180 * @param trail surrogate
181 * @return trie data value associated with the trail character
183 public final char getTrailValue(int leadvalue, char trail) argument
192 (char)(trail
257 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DIntTrie.java140 * This method does not guarantee correct results for trail surrogates.
164 * @param trail a trail surrogate
166 public final int getSurrogateValue(char lead, char trail) argument
168 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
172 // get fold position for the next trail surrogate
173 int offset = getSurrogateOffset(lead, trail);
175 // get the real data from the folded lead/trail units
186 * and a trail surrogate.
189 * @param trail surrogat
192 getTrailValue(int leadvalue, char trail) argument
270 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DTrie.java223 /** Number of bits of a trail surrogate that are used in index table lookups. */
227 * Same as number of index entries for 1024 trail surrogates,
264 * @param trail trailing surrogate
267 protected abstract int getSurrogateOffset(char lead, char trail); argument
290 * surrogates lead and trail. Then we would have to call getRawOffset()
352 // trail forms the ends of it.
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
H A DUTF16Util.java179 hadLeadSurrogate = false; // count valid trail as zero
207 hadLeadSurrogate = false; // count valid trail as zero
271 * Determines whether the character is a trail surrogate.
273 * @return true iff the input character is a trail surrogate.
335 char trail = source[offset16];
336 if (isTrailSurrogate(trail)) {
337 return getRawSupplementary(single, trail);
371 * @param trail trailing surrogate character
374 public static int getRawSupplementary(char lead, char trail) argument
376 return (lead << LEAD_SURROGATE_SHIFT_) + trail
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DCollationWeights.java197 private static long setWeightTrail(long weight, int length, int trail) { argument
199 return (weight&(0xffffff00L<<length))|((long)trail<<length);
336 int trail=getWeightTrail(weight, length);
337 if(trail<maxBytes[length]) {
342 lower[length].count=maxBytes[length]-trail;
356 int trail=getWeightTrail(weight, length);
357 if(trail>minBytes[length]) {
362 upper[length].count=trail-minBytes[length];
/external/icu/icu4c/source/test/cintltst/
H A Dsprpdata.c213 UChar trail = U16_TRAIL(mapping[i]); local
215 mappingData[idx+i+1] != trail){
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]);
247 // get the real data from the folded lead/trail units
/external/icu/icu4c/source/test/intltest/
H A Dtestidn.cpp389 UChar trail = U16_TRAIL(mapping[i]); local
391 mappingData[index+i+1] != trail){
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]);
421 // get the real data from the folded lead/trail units
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationWeights.java195 private static long setWeightTrail(long weight, int length, int trail) { argument
197 return (weight&(0xffffff00L<<length))|((long)trail<<length);
334 int trail=getWeightTrail(weight, length);
335 if(trail<maxBytes[length]) {
340 lower[length].count=maxBytes[length]-trail;
354 int trail=getWeightTrail(weight, length);
355 if(trail>minBytes[length]) {
360 upper[length].count=trail-minBytes[length];
/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);
115 // trail produces 1 byte net, because the encoding of the pair is

Completed in 333 milliseconds

123