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

1 2 3 4 5

  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
IterCollationIterator.java 59 int trail = iter.next(); local
60 if(!isTrailSurrogate(trail) && trail >= 0) { iter.previous(); }
61 return (char)trail;
UTF16CollationIterator.java 74 char trail; local
76 Character.isLowSurrogate(trail = seq.charAt(pos))) {
78 return Character.toCodePoint(c, trail);
112 char trail; local
113 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; }
114 return trail;
FCDIterCollationIterator.java 69 int trail = iter.next(); local
70 if(isTrailSurrogate(trail)) {
71 return Character.toCodePoint((char)c, (char)trail);
72 } else if(trail >= 0) {
117 // hasLccc(trail)=true for all trail surrogates
186 int trail = iter.next(); local
187 if(isTrailSurrogate(trail)) {
189 } else if(trail >= 0) {
192 return (char)trail;
    [all...]
  /hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/
utils.c 16 uint32_t bytes_left=n,trail = 0; local
22 trail = ((uint32_t)ptr8_frm) & 0x3;
23 if((trail == (((uint32_t)ptr8_to) & 0x3)) && (n > 4))
26 bytes_left -= trail;
29 trail--;
32 trail = bytes_left & 0x3;
44 while(trail > 0){
46 trail--;
77 uint32_t trail=0; local
78 trail = 4 - (((uint32_t)ptr8) & 0x3)
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
CharacterIteration.java 30 // If the current position is at a surrogate pair, move to the trail surrogate
43 // If we might have a lead surrogate, we need to peak ahead to get the trail
87 char trail = ci.previous(); local
88 int retVal = trail;
89 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) {
93 ((int)trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
109 int trail = (int)ci.next(); local
111 if (UTF16.isTrailSurrogate((char)trail)) {
113 (trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
CharTrie.java 137 * 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)
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)
190 (char)(trail & SURROGATE_MASK_))]
    [all...]
BMPSet.java 34 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead)
134 * sufficient length for trail unit for each surrogate pair. Handle single surrogates as surrogate code points
329 int trail = start & 0x3f; // Named for UTF-8 2-byte trail byte with lower 6 bits. local
334 table[trail] |= bits;
343 while (trail < limitTrail) {
344 table[trail++] |= bits;
350 if (trail > 0) {
352 table[trail++] |= bits
    [all...]
IntTrie.java 135 * 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)
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
    [all...]
  /bionic/libc/bionic/
mbrtoc16.cpp 43 char16_t trail = (c32 & 0x3ff) | 0xdc00; local
45 mbstate_set_byte(state, 0, trail & 0x00ff);
46 mbstate_set_byte(state, 1, (trail & 0xff00) >> 8);
55 char16_t trail = mbstate_get_byte(state, 1) << 8 | local
57 *pc16 = trail;
  /external/icu/icu4c/source/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 130 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>0x3f) { break;
    [all...]
bmpset.cpp 71 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<64; ++trail)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
GestureTrailsDrawingPreview.java 46 private final Rect mGestureTrailBoundsRect = new Rect(); // per trail
109 final GestureTrailDrawingPoints trail = mGestureTrails.valueAt(index); local
110 needsUpdatingGestureTrail |= trail.drawGestureTrail(offscreenCanvas, paint,
112 // {@link #mGestureTrailBoundsRect} has bounding box of the trail.
161 GestureTrailDrawingPoints trail; local
163 trail = mGestureTrails.get(tracker.mPointerId);
164 if (trail == null) {
165 trail = new GestureTrailDrawingPoints();
166 mGestureTrails.put(tracker.mPointerId, trail);
169 trail.addStroke(tracker.getGestureStrokeDrawingPoints(), tracker.getDownTime())
    [all...]
  /external/icu/icu4c/source/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...]
  /external/icu/icu4c/source/i18n/
uitercollationiterator.cpp 53 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 = normalized[pos])) { ++pos;
    [all...]
utf16collationiterator.cpp 70 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);
  /bionic/libc/tzcode/
strftime.c 706 register int trail; local
709 trail = a % DIVISOR + b % DIVISOR;
710 lead = a / DIVISOR + b / DIVISOR + trail / DIVISOR;
711 trail %= DIVISOR;
712 if (trail < 0 && lead > 0) {
713 trail += DIVISOR;
715 } else if (lead < 0 && trail > 0) {
716 trail -= DIVISOR;
720 if (lead == 0 && trail < 0)
725 pt = _conv(((trail < 0) ? -trail : trail), getformat(modifier, "%02d", "%2d", "%d", "%02d"), pt, ptlim)
    [all...]
  /bionic/libc/upstream-openbsd/lib/libc/time/
wcsftime.c 533 register int trail; local
536 trail = a % DIVISOR + b % DIVISOR;
537 lead = a / DIVISOR + b / DIVISOR + trail / DIVISOR;
538 trail %= DIVISOR;
539 if (trail < 0 && lead > 0) {
540 trail += DIVISOR;
542 } else if (lead < 0 && trail > 0) {
543 trail -= DIVISOR;
547 if (lead == 0 && trail < 0)
552 pt = _conv(((trail < 0) ? -trail : trail), L"%02d", pt, ptlim)
    [all...]
  /frameworks/base/core/java/android/text/format/
TimeFormatter.java 419 int trail; local
422 trail = value % DIVISOR;
423 lead = value / DIVISOR + trail / DIVISOR;
424 trail %= DIVISOR;
425 if (trail < 0 && lead > 0) {
426 trail += DIVISOR;
428 } else if (lead < 0 && trail > 0) {
429 trail -= DIVISOR;
433 if (lead == 0 && trail < 0) {
440 int n = ((trail < 0) ? -trail : trail)
    [all...]
  /external/v8/src/
unicode.h 82 static inline bool IsSurrogatePair(int lead, int trail) {
83 return IsLeadSurrogate(lead) && IsTrailSurrogate(trail);
94 static inline int CombineSurrogatePair(uchar lead, uchar trail) {
95 return 0x10000 + ((lead & 0x3ff) << 10) + (trail & 0x3ff);
101 // trail produces 1 byte net, because the encoding of the pair is
  /libcore/luni/src/main/java/java/util/concurrent/
LinkedBlockingQueue.java 489 * Unlinks interior Node p with predecessor trail.
491 void unlink(Node<E> p, Node<E> trail) {
496 trail.next = p.next;
498 last = trail;
518 for (Node<E> trail = head, p = trail.next;
520 trail = p, p = p.next) {
522 unlink(p, trail);
816 for (Node<E> trail = head, p = trail.next
    [all...]
  /external/linux-tools-perf/src/tools/perf/util/
color.c 171 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);
  /external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
CharsetUTF16.java 210 char trail = (char) (((toUBytesArray[2 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK))); local
212 if (!UTF16.isTrailSurrogate(trail)) {
228 target.put(trail);
232 charErrorBufferArray[0] = trail;
297 char trail = UTF16.getTrailSurrogate(fromUChar32); local
303 temp[2 ^ endianXOR] = (byte) (trail >>> 8);
304 temp[3 ^ endianXOR] = (byte) (trail);
  /external/icu/icu4c/source/tools/tzcode/
zdump.c 885 register int trail; local
909 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
911 trail / DIVISOR;
912 trail %= DIVISOR;
913 if (trail < 0 && lead > 0) {
914 trail += DIVISOR;
916 } else if (lead < 0 && trail > 0) {
917 trail -= DIVISOR;
921 (void) printf("%d", trail);
922 else (void) printf("%d%d", lead, ((trail < 0) ? -trail : trail))
988 register int trail; local
    [all...]
  /external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
UTF16Util.java 177 hadLeadSurrogate = false; // count valid trail as zero
205 hadLeadSurrogate = false; // count valid trail as zero
247 * Trail surrogate minimum value
252 * Trail surrogate maximum value
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]; local
334 if (isTrailSurrogate(trail)) {
335 return getRawSupplementary(single, trail);
369 * @param trail trailing surrogate characte
    [all...]

Completed in 667 milliseconds

1 2 3 4 5