Searched refs:trail (Results 1 - 25 of 101) sorted by relevance

12345

/external/chromium/base/third_party/icu/
H A Dicu_utf.cc141 uint8 trail, illegal=0; local
144 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
149 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
153 trail=s[(i)++];
154 (c)=((c)<<6)|(trail&0x3f);
156 illegal|=(trail&0xc0)^0x80;
163 trail=s[(i)++];
164 (c)=((c)<<6)|(trail&0x3f);
165 illegal|=(trail&0xc0)^0x80;
167 trail
[all...]
H A Dicu_utf.h108 * Count the trail bytes for a UTF-8 lead byte.
136 * Is this code unit (byte) a UTF-8 trail byte?
182 * If the offset points to a trail byte or an illegal UTF-8 sequence, then
255 * Is this code unit a trail surrogate (U+dc00..U+dfff)?
287 * from its lead and trail surrogates.
289 * lead and trail surrogates.
292 * @param trail trail surrogate (U+dc00..U+dfff)
296 #define CBU16_GET_SUPPLEMENTARY(lead, trail) \
297 (((base_icu::UChar32)(lead)<<10UL)+(base_icu::UChar32)(trail)
[all...]
/external/chromium_org/base/third_party/icu/
H A Dicu_utf.cc141 uint8 trail, illegal=0; local
144 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
149 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
153 trail=s[(i)++];
154 (c)=((c)<<6)|(trail&0x3f);
156 illegal|=(trail&0xc0)^0x80;
163 trail=s[(i)++];
164 (c)=((c)<<6)|(trail&0x3f);
165 illegal|=(trail&0xc0)^0x80;
167 trail
[all...]
/external/chromium_org/third_party/icu/source/common/
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 Dutf_impl.c112 uint8_t trail, illegal=0; local
115 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
120 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
124 trail=s[(i)++];
125 (c)=((c)<<6)|(trail&0x3f);
127 illegal|=(trail&0xc0)^0x80;
134 trail=s[(i)++];
135 (c)=((c)<<6)|(trail&0x3f);
136 illegal|=(trail&0xc0)^0x80;
138 trail
[all...]
H A Dbmpset.cpp65 int32_t trail=start&0x3f; local
70 table[trail]|=bits;
79 while(trail<limitTrail) {
80 table[trail++]|=bits;
86 if(trail>0) {
88 table[trail++]|=bits;
89 } while(trail<64);
97 for(trail=0; trail<64; ++trail) {
[all...]
H A Dustrtrns.c263 * *ps points to after the lead byte and will be moved to after the last trail byte.
270 uint8_t trail, illegal=0; local
273 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
278 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
282 trail=(uint8_t)(*s++ - 0x80);
283 c=(c<<6)|trail;
284 if(trail>0x3f || c>=0x110) {
285 /* not a trail byte, or code point>0x10ffff (outside Unicode) */
290 trail=(uint8_t)(*s++ - 0x80);
291 if(trail>
338 uint8_t trail, illegal=0; local
[all...]
/external/icu4c/common/
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 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 Dbmpset.cpp71 int32_t trail=start&0x3f; // Named for UTF-8 2-byte trail byte with lower 6 bits.
76 table[trail]|=bits;
85 while(trail<limitTrail) {
86 table[trail++]|=bits;
92 if(trail>0) {
94 table[trail++]|=bits;
95 } while(trail<64);
103 for(trail=0; trail<6
[all...]
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...]
/external/icu4c/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...]
/external/linux-tools-perf/util/
H A Dcolor.c170 const char *fmt, va_list args, const char *trail)
189 if (trail)
190 r += snprintf(bf + r, size - r, "%s", trail);
195 va_list args, const char *trail)
214 if (trail)
215 r += fprintf(fp, "%s", trail);
169 __color_vsnprintf(char *bf, size_t size, const char *color, const char *fmt, va_list args, const char *trail) argument
194 __color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args, const char *trail) argument
/external/chromium_org/third_party/icu/source/tools/tzcode/
H A Dzdump.c829 register int trail; local
853 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
855 trail / DIVISOR;
856 trail %= DIVISOR;
857 if (trail < 0 && lead > 0) {
858 trail += DIVISOR;
860 } else if (lead < 0 && trail > 0) {
861 trail -= DIVISOR;
865 (void) printf("%d", trail);
866 else (void) printf("%d%d", lead, ((trail <
932 register int trail; local
[all...]
/external/icu4c/tools/tzcode/
H A Dzdump.c829 register int trail; local
853 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
855 trail / DIVISOR;
856 trail %= DIVISOR;
857 if (trail < 0 && lead > 0) {
858 trail += DIVISOR;
860 } else if (lead < 0 && trail > 0) {
861 trail -= DIVISOR;
865 (void) printf("%d", trail);
866 else (void) printf("%d%d", lead, ((trail <
932 register int trail; local
[all...]
/external/chromium_org/third_party/icu/source/tools/gennorm2/
H A Dn2builder.cpp94 CompositionPair(UChar32 t, UChar32 c) : trail(t), composite(c) {}
95 UChar32 trail, composite; member in struct:CompositionPair
128 UVector32 *compositions; // (trail, composite) pairs
341 UChar32 trail=m.char32At(m.length()-1); local
351 createNorm(trail)->combinesBack=TRUE;
352 // Insert (trail, composite) pair into compositions list for the lead character.
361 // Insertion sort, and check for duplicate trail characters.
365 if(trail==pairs[i].trail) {
369 (long)start, (long)lead, (long)trail);
[all...]
/external/icu4c/tools/gennorm2/
H A Dn2builder.cpp94 CompositionPair(UChar32 t, UChar32 c) : trail(t), composite(c) {}
95 UChar32 trail, composite; member in struct:CompositionPair
129 UVector32 *compositions; // (trail, composite) pairs
366 UChar32 trail=m.char32At(m.length()-1); local
376 createNorm(trail)->combinesBack=TRUE;
377 // Insert (trail, composite) pair into compositions list for the lead character.
386 // Insertion sort, and check for duplicate trail characters.
390 if(trail==pairs[i].trail) {
394 (long)start, (long)lead, (long)trail);
[all...]
/external/chromium_org/third_party/mesa/src/src/mapi/glapi/gen/
H A Dgl_SPARC_asm.py256 (args, trail) = getopt.getopt(sys.argv[1:], "m:f:")
H A Dgl_gentable.py191 (args, trail) = getopt.getopt(sys.argv[1:], "m:f:")
H A Dgl_offsets.py106 (args, trail) = getopt.getopt(sys.argv[1:], "f:c")
/external/mesa3d/src/mapi/glapi/gen/
H A Dgl_SPARC_asm.py256 (args, trail) = getopt.getopt(sys.argv[1:], "m:f:")
H A Dgl_gentable.py191 (args, trail) = getopt.getopt(sys.argv[1:], "m:f:")
H A Dgl_offsets.py106 (args, trail) = getopt.getopt(sys.argv[1:], "f:c")
/external/chromium_org/third_party/icu/source/i18n/
H A Ducol_wgt.cpp57 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { argument
59 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length));
147 uint32_t weight, trail; local
200 trail=getWeightTrail(weight, length);
201 if(trail<maxByte) {
205 lower[length].count=maxByte-trail;
213 trail=getWeightTrail(weight, length);
214 if(trail>UCOL_BYTE_FIRST_TAILORED) {
218 upper[length].count=trail-UCOL_BYTE_FIRST_TAILORED;
/external/icu4c/i18n/
H A Ducol_wgt.cpp57 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { argument
59 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length));
160 uint32_t weight, trail; local
213 trail=getWeightTrail(weight, length);
214 if(trail<maxByte) {
218 lower[length].count=maxByte-trail;
226 trail=getWeightTrail(weight, length);
227 if(trail>UCOL_BYTE_FIRST_TAILORED) {
231 upper[length].count=trail-UCOL_BYTE_FIRST_TAILORED;

Completed in 579 milliseconds

12345