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

12

/external/icu/icu4c/source/i18n/
H A Duitercollationiterator.cpp53 UChar32 trail = iter.next(&iter); local
54 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); }
55 return (UChar)trail;
144 UChar32 trail = iter.next(&iter); local
145 if(U16_IS_TRAIL(trail)) {
147 } else if(trail >= 0) {
150 return (UChar)trail;
153 UChar trail;
154 if(U16_IS_TRAIL(trail
[all...]
H A Dutf16collationiterator.cpp70 UChar trail; local
71 if(U16_IS_TRAIL(trail = *pos)) { ++pos; }
72 return trail;
96 UChar trail; local
97 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
99 return U16_GET_SUPPLEMENTARY(c, trail);
278 UChar trail; local
279 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
281 return U16_GET_SUPPLEMENTARY(c, trail);
H A Dcollationweights.cpp47 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { argument
49 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length));
263 uint32_t trail=getWeightTrail(weight, length); local
264 if(trail<maxBytes[length]) {
268 lower[length].count=maxBytes[length]-trail;
282 uint32_t trail=getWeightTrail(weight, length); local
283 if(trail>minBytes[length]) {
287 upper[length].count=trail-minBytes[length];
H A Dcollationiterator.cpp409 UChar trail; local
410 if(U16_IS_TRAIL(trail = handleGetTrailSurrogate())) {
411 c = U16_GET_SUPPLEMENTARY(c, trail);
/external/icu/icu4c/source/common/
H A Dustrtrns.cpp267 * *ps points to after the lead byte and will be moved to after the last trail byte.
274 uint8_t trail, illegal=0; local
278 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
283 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
287 trail=(uint8_t)(*s++ - 0x80);
288 c=(c<<6)|trail;
289 if(trail>0x3f || c>=0x110) {
290 /* not a trail byte, or code point>0x10ffff (outside Unicode) */
295 trail=(uint8_t)(*s++ - 0x80);
296 if(trail>
[all...]
H A Dutf_impl.c130 uint8_t trail; local
133 /* support NUL-terminated strings: do not read beyond the first non-trail byte */
137 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
140 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
143 trail=s[i++]-0x80;
144 c=(c<<6)|trail;
146 if(c>=0x110 || trail>0x3f) { break; }
148 trail=s[i++]-0x80;
149 c=(c<<6)|trail;
154 if(((c&0xffe0)==0x360 && strict!=-2) || trail>
[all...]
H A Ducnv_u16.c56 UChar c, trail; local
91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
97 target[2]=(uint8_t)(trail>>8);
98 target[3]=(uint8_t)trail;
129 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
134 target[2]=(uint8_t)(trail>>8);
135 target[3]=(uint8_t)trail;
151 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
156 target[2]=(uint8_t)(trail>>8);
157 target[3]=(uint8_t)trail;
260 UChar c, trail; local
524 UChar trail; local
655 UChar c, trail; local
859 UChar c, trail; local
1123 UChar trail; local
[all...]
H A Ducnvlat1.c273 UChar trail=*source; local
274 if(U16_IS_TRAIL(trail)) {
276 cp=U16_GET_SUPPLEMENTARY(cp, trail);
289 /* this is an unmatched trail code unit (2nd surrogate) */
363 * For Latin-1, adjust sourceLimit only for 1 trail byte because
H A Ducnvbocu.cpp66 /* adjust trail byte counts for the use of some C0 control byte values */
70 /* number of trail bytes */
144 * but are also used as trail bytes in difference encoding
152 * to trail byte values 0..19 (0..0x13) as used in the difference calculation.
153 * External byte values that are illegal as trail bytes are mapped to -1.
175 * 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);
723 UChar trail local
[all...]
H A Ducnvhz.c209 /* if the first byte is equal to TILDE and the trail byte
250 /* trail byte */
379 /* we can only use lead bytes 21..7D and trail bytes 21..7E */
451 /*look ahead to find the trail surrogate*/
454 UChar trail=(UChar) args->source[mySourceIndex]; local
455 if(U16_IS_TRAIL(trail)) {
457 mySourceChar=U16_GET_SUPPLEMENTARY(args->converter->fromUChar32, trail);
472 /* this is an unmatched trail code unit (2nd surrogate) */
H A Duiter.cpp874 UChar trail=U16_TRAIL(iter->reservedField); local
879 return trail;
H A Ducnv_ct.c361 /*look ahead to find the trail surrogate*/
364 UChar trail=(UChar) *source; local
365 if(U16_IS_TRAIL(trail)) {
367 sourceChar=U16_GET_SUPPLEMENTARY(sourceChar, trail);
384 /* this is an unmatched trail code unit (2nd surrogate) */
H A Ducnvscsu.c1030 UChar lead, trail; local
1108 trail=*source;
1109 if(U16_IS_TRAIL(trail)) {
1112 c=U16_GET_SUPPLEMENTARY(c, trail);
1126 /* this is an unmatched trail code unit (2nd surrogate) */
1159 /* change to Unicode mode and output this (lead, trail) pair */
1166 c=((uint32_t)lead<<16)|trail;
1305 trail=*source;
1306 if(U16_IS_TRAIL(trail)) {
1309 c=U16_GET_SUPPLEMENTARY(c, trail);
1520 UChar lead, trail; local
[all...]
/external/icu/icu4c/source/samples/uciter8/
H A Duit_len8.c411 UChar trail=U16_TRAIL(iter->reservedField); local
416 return trail;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCharTrie.java137 * This method does not guarantee correct results for trail surrogates.
161 * @param trail a trail surrogate
163 public final char getSurrogateValue(char lead, char trail) argument
165 int offset = getSurrogateOffset(lead, trail);
174 * and a trail surrogate.</p>
178 * @param trail surrogate
179 * @return trie data value associated with the trail character
181 public final char getTrailValue(int leadvalue, char trail) argument
190 (char)(trail
254 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DIntTrie.java135 * This method does not guarantee correct results for trail surrogates.
159 * @param trail a trail surrogate
161 public final int getSurrogateValue(char lead, char trail) argument
163 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
167 // get fold position for the next trail surrogate
168 int offset = getSurrogateOffset(lead, trail);
170 // get the real data from the folded lead/trail units
181 * and a trail surrogate.
184 * @param trail surrogat
187 getTrailValue(int leadvalue, char trail) argument
264 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DTrie.java218 /** Number of bits of a trail surrogate that are used in index table lookups. */
222 * Same as number of index entries for 1024 trail surrogates,
259 * @param trail trailing surrogate
262 protected abstract int getSurrogateOffset(char lead, char trail); argument
285 * surrogates lead and trail. Then we would have to call getRawOffset()
347 // trail forms the ends of it.
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
H A DUTF16Util.java177 hadLeadSurrogate = false; // count valid trail as zero
205 hadLeadSurrogate = false; // count valid trail as zero
269 * Determines whether the character is a trail surrogate.
271 * @return true iff the input character is a trail surrogate.
333 char trail = source[offset16];
334 if (isTrailSurrogate(trail)) {
335 return getRawSupplementary(single, trail);
369 * @param trail trailing surrogate character
372 public static int getRawSupplementary(char lead, char trail) argument
374 return (lead << LEAD_SURROGATE_SHIFT_) + trail
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dsprpdata.c211 UChar trail = U16_TRAIL(mapping[i]); local
213 mappingData[idx+i+1] != trail){
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]);
245 // get the real data from the folded lead/trail units
H A Dcustrtst.c710 static const UChar a=0x61, b=0x62, lead=0xd801, trail=0xdc02, nul=0; local
835 first!=u_strchr(s+1, trail) ||
836 first!=u_strchr32(s+1, trail) ||
837 first!=u_memchr(s+1, trail, 9) ||
838 first!=u_memchr32(s+1, trail, 9) ||
841 first!=u_strFindFirst(s+1, -1, &trail, 1) ||
843 first!=u_strFindFirst(s+1, 9, &trail, 1) ||
844 first!=u_strrchr(s+1, trail) ||
845 first!=u_strrchr32(s+1, trail) ||
846 first!=u_memrchr(s+1, trail,
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dtestidn.cpp387 UChar trail = U16_TRAIL(mapping[i]); local
389 mappingData[index+i+1] != trail){
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]);
419 // 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.java193 private static long setWeightTrail(long weight, int length, int trail) { argument
195 return (weight&(0xffffff00L<<length))|((long)trail<<length);
332 int trail=getWeightTrail(weight, length);
333 if(trail<maxBytes[length]) {
338 lower[length].count=maxBytes[length]-trail;
352 int trail=getWeightTrail(weight, length);
353 if(trail>minBytes[length]) {
358 upper[length].count=trail-minBytes[length];
/external/linux-tools-perf/src/tools/perf/util/
H A Dcolor.c171 const char *fmt, va_list args, const char *trail)
190 if (trail)
191 r += scnprintf(bf + r, size - r, "%s", trail);
196 va_list args, const char *trail)
215 if (trail)
216 r += fprintf(fp, "%s", trail);
170 __color_vsnprintf(char *bf, size_t size, const char *color, const char *fmt, va_list args, const char *trail) argument
195 __color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args, const char *trail) argument
/external/v8/src/
H A Dunicode.h82 static inline bool IsSurrogatePair(int lead, int trail) { argument
83 return IsLeadSurrogate(lead) && IsTrailSurrogate(trail);
94 static inline int CombineSurrogatePair(uchar lead, uchar trail) { argument
95 return 0x10000 + ((lead & 0x3ff) << 10) + (trail & 0x3ff);
101 // trail produces 1 byte net, because the encoding of the pair is
/external/icu/icu4c/source/layout/
H A DHangulLayoutEngine.cpp111 static le_int32 compose(LEUnicode lead, LEUnicode vowel, LEUnicode trail, LEUnicode &syllable) argument
115 le_int32 tIndex = trail - TJMO_FIRST;
132 static le_int32 decompose(LEUnicode syllable, LEUnicode &lead, LEUnicode &vowel, LEUnicode &trail) argument
142 trail = TJMO_FIRST + (sIndex % TJMO_COUNT);
144 if (trail == TJMO_FIRST) {
151 static le_int32 getCharClass(LEUnicode ch, LEUnicode &lead, LEUnicode &vowel, LEUnicode &trail) argument
155 trail = TJMO_FIRST;
168 trail = ch;
172 le_int32 c = decompose(ch, lead, vowel, trail);
182 trail
250 LEUnicode trail = 0; local
310 LEUnicode trail = outLength == 3? outChars[outStart + 2] : TJMO_FIRST; local
[all...]

Completed in 537 milliseconds

12