HomeSort by relevance Sort by last modified time
    Searched refs:trail (Results 1 - 25 of 45) sorted by null

1 2

  /external/chromium/base/third_party/icu/
icu_utf.cc 141 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=s[(i)++]
    [all...]
icu_utf.h 108 * 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)-CBU16_SURROGATE_OFFSET
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/haiku/
GlyphPageTreeNodeHaiku.cpp 51 UChar trail = characterBuffer[i * 2 + 1]; local
52 character = U16_GET_SUPPLEMENTARY(lead, trail);
  /external/webkit/Source/WebCore/platform/graphics/wx/
GlyphMapWx.cpp 47 UChar trail = buffer[i * 2 + 1]; local
48 character = U16_GET_SUPPLEMENTARY(lead, trail);
  /external/icu4c/common/
ucnv_u16.c 56 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...]
utf_impl.c 112 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=s[(i)++]
    [all...]
bmpset.cpp 65 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...]
ustrtrns.c 263 * *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>0x3f)
338 uint8_t trail, illegal=0; local
    [all...]
ucnvscsu.c 1029 UChar lead, trail; local
1519 UChar lead, trail; local
    [all...]
ustring.c 222 UChar cs, lead=U16_LEAD(c), trail=U16_TRAIL(c); local
225 if(cs==lead && *s==trail) {
265 const UChar *limit=s+count-1; /* -1 so that we do not need a separate check for the trail unit */
266 UChar lead=U16_LEAD(c), trail=U16_TRAIL(c); local
269 if(*s==lead && *(s+1)==trail) {
397 UChar cs, lead=U16_LEAD(c), trail=U16_TRAIL(c); local
400 if(cs==lead && *s==trail) {
441 UChar lead=U16_LEAD(c), trail=U16_TRAIL(c); local
444 if(*limit==trail && *(limit-1)==lead) {
507 stringCh = c; /* unpaired trail surrogate *
    [all...]
  /external/icu4c/layout/
HangulLayoutEngine.cpp 111 static le_int32 compose(LEUnicode lead, LEUnicode vowel, LEUnicode trail, LEUnicode &syllable)
115 le_int32 tIndex = trail - TJMO_FIRST;
132 static le_int32 decompose(LEUnicode syllable, LEUnicode &lead, LEUnicode &vowel, LEUnicode &trail)
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)
155 trail = TJMO_FIRST;
168 trail = ch;
172 le_int32 c = decompose(ch, lead, vowel, trail);
182 trail = ch
250 LEUnicode trail = 0; local
310 LEUnicode trail = outLength == 3? outChars[outStart + 2] : TJMO_FIRST; local
    [all...]
  /bionic/libc/tzcode/
strftime.c 745 register int trail; local
748 trail = a % DIVISOR + b % DIVISOR;
749 lead = a / DIVISOR + b / DIVISOR + trail / DIVISOR;
750 trail %= DIVISOR;
751 if (trail < 0 && lead > 0) {
752 trail += DIVISOR;
754 } else if (lead < 0 && trail > 0) {
755 trail -= DIVISOR;
759 if (lead == 0 && trail < 0)
766 pt = _conv(((trail < 0) ? -trail : trail)
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
LinkedBlockingQueue.java 492 * Unlinks interior Node p with predecessor trail.
494 void unlink(Node<E> p, Node<E> trail) {
499 trail.next = p.next;
501 last = trail;
521 for (Node<E> trail = head, p = trail.next;
523 trail = p, p = p.next) {
525 unlink(p, trail);
817 for (Node<E> trail = head, p = trail.next
    [all...]
  /external/icu4c/tools/tzcode/
zdump.c 829 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 < 0) ? -trail : trail))
932 register int trail; local
    [all...]
  /system/core/libcutils/
tzstrftime.c 695 register int trail; local
698 trail = a % DIVISOR + b % DIVISOR;
699 lead = a / DIVISOR + b / DIVISOR + trail / DIVISOR;
700 trail %= DIVISOR;
701 if (trail < 0 && lead > 0) {
702 trail += DIVISOR;
704 } else if (lead < 0 && trail > 0) {
705 trail -= DIVISOR;
709 if (lead == 0 && trail < 0)
716 pt = _conv(((trail < 0) ? -trail : trail)
    [all...]
  /external/icu4c/tools/gennorm2/
n2builder.cpp 94 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...]
n2builder.h 86 UChar32 combine(const Norm &norm, UChar32 trail) const;
  /external/icu4c/i18n/
ucol_wgt.cpp 57 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) {
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/webkit/Source/JavaScriptCore/wtf/unicode/
UnicodeMacrosFromICU.h 15 #define U16_GET_SUPPLEMENTARY(lead, trail) \
16 (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  /external/webkit/Source/WebCore/platform/android/
KeyEventAndroid.cpp 205 UChar trail = U16_TRAIL(c); local
206 UChar utf16[2] = {lead, trail};
  /external/icu4c/test/cintltst/
sprpdata.c 210 UChar trail = UTF16_TRAIL(mapping[i]); local
212 mappingData[index+i+1] != trail){
213 log_err( "Did not get the expected result. Expected: 0x%04X 0x%04X Got: 0x%04X 0x%04X\n", lead, trail, mappingData[index+i], mappingData[index+i+1]);
244 // get the real data from the folded lead/trail units
  /external/icu4c/test/intltest/
testidn.cpp 385 UChar trail = UTF16_TRAIL(mapping[i]); local
387 mappingData[index+i+1] != trail){
388 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 the real data from the folded lead/trail units
  /external/icu4c/common/unicode/
utf16.h 61 * Is this code unit a trail surrogate (U+dc00..U+dfff)?
87 * is it a trail surrogate?
102 * from its lead and trail surrogates.
104 * lead and trail surrogates.
107 * @param trail trail surrogate (U+dc00..U+dfff)
111 #define U16_GET_SUPPLEMENTARY(lead, trail) \
112 (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
125 * Get the trail surrogate (0xdc00..0xdfff) for a
128 * @return trail surrogate (U+dc00..U+dfff) for supplementar
    [all...]
  /external/webkit/Source/JavaScriptCore/icu/unicode/
utf16.h 61 * Is this code unit a trail surrogate (U+dc00..U+dfff)?
93 * from its lead and trail surrogates.
95 * lead and trail surrogates.
98 * @param trail trail surrogate (U+dc00..U+dfff)
102 #define U16_GET_SUPPLEMENTARY(lead, trail) \
103 (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
116 * Get the trail surrogate (0xdc00..0xdfff) for a
119 * @return trail surrogate (U+dc00..U+dfff) for supplementary
145 * The offset may point to either the lead or trail surrogate uni
    [all...]
  /external/webkit/Source/JavaScriptGlue/icu/unicode/
utf16.h 61 * Is this code unit a trail surrogate (U+dc00..U+dfff)?
93 * from its lead and trail surrogates.
95 * lead and trail surrogates.
98 * @param trail trail surrogate (U+dc00..U+dfff)
102 #define U16_GET_SUPPLEMENTARY(lead, trail) \
103 (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
116 * Get the trail surrogate (0xdc00..0xdfff) for a
119 * @return trail surrogate (U+dc00..U+dfff) for supplementary
145 * The offset may point to either the lead or trail surrogate uni
    [all...]

Completed in 562 milliseconds

1 2