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

12345

/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/libweave/third_party/chromium/base/third_party/icu/
H A Dicu_utf.cc145 uint8_t trail, illegal=0; local
148 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
153 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
157 trail=s[(i)++];
158 (c)=((c)<<6)|(trail&0x3f);
160 illegal|=(trail&0xc0)^0x80;
167 trail=s[(i)++];
168 (c)=((c)<<6)|(trail&0x3f);
169 illegal|=(trail&0xc0)^0x80;
171 trail
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DIterCollationIterator.java61 int trail = iter.next();
62 if(!isTrailSurrogate(trail) && trail >= 0) { iter.previous(); }
63 return (char)trail;
H A DUTF16CollationIterator.java76 char trail;
78 Character.isLowSurrogate(trail = seq.charAt(pos))) {
80 return Character.toCodePoint(c, trail);
114 char trail;
115 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; }
116 return trail;
H A DFCDIterCollationIterator.java71 int trail = iter.next();
72 if(isTrailSurrogate(trail)) {
73 return Character.toCodePoint((char)c, (char)trail);
74 } else if(trail >= 0) {
119 // hasLccc(trail)=true for all trail surrogates
188 int trail = iter.next();
189 if(isTrailSurrogate(trail)) {
191 } else if(trail >= 0) {
194 return (char)trail;
[all...]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DIterCollationIterator.java59 int trail = iter.next();
60 if(!isTrailSurrogate(trail) && trail >= 0) { iter.previous(); }
61 return (char)trail;
H A DUTF16CollationIterator.java74 char trail;
76 Character.isLowSurrogate(trail = seq.charAt(pos))) {
78 return Character.toCodePoint(c, trail);
112 char trail;
113 if(Character.isLowSurrogate(trail = seq.charAt(pos))) { ++pos; }
114 return trail;
H A DFCDIterCollationIterator.java69 int trail = iter.next();
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();
187 if(isTrailSurrogate(trail)) {
189 } else if(trail >= 0) {
192 return (char)trail;
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DCharacterIteration.java34 // If the current position is at a surrogate pair, move to the trail surrogate
47 // If we might have a lead surrogate, we need to peak ahead to get the trail
91 char trail = ci.previous();
92 int retVal = trail;
93 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) {
97 ((int)trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
113 int trail = (int)ci.next();
115 if (UTF16.isTrailSurrogate((char)trail)) {
117 (trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
H A DCharTrie.java138 * This method does not guarantee correct results for trail surrogates.
162 * @param trail a trail surrogate
164 public final char getSurrogateValue(char lead, char trail) argument
166 int offset = getSurrogateOffset(lead, trail);
175 * and a trail surrogate.</p>
179 * @param trail surrogate
180 * @return trie data value associated with the trail character
182 public final char getTrailValue(int leadvalue, char trail) argument
191 (char)(trail
252 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DBMPSet.java36 * trail=c{5..0} it is set.contains(c)==(table7FF[trail] bit lead)
136 * sufficient length for trail unit for each surrogate pair. Handle single surrogates as surrogate code points
331 int trail = start & 0x3f; // Named for UTF-8 2-byte trail byte with lower 6 bits.
336 table[trail] |= bits;
345 while (trail < limitTrail) {
346 table[trail++] |= bits;
352 if (trail > 0) {
354 table[trail
[all...]
H A DIntTrie.java139 * This method does not guarantee correct results for trail surrogates.
163 * @param trail a trail surrogate
165 public final int getSurrogateValue(char lead, char trail) argument
167 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
171 // get fold position for the next trail surrogate
172 int offset = getSurrogateOffset(lead, trail);
174 // get the real data from the folded lead/trail units
185 * and a trail surrogate.
188 * @param trail surrogat
191 getTrailValue(int leadvalue, char trail) argument
265 getSurrogateOffset(char lead, char trail) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCharacterIteration.java30 // 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();
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();
111 if (UTF16.isTrailSurrogate((char)trail)) {
113 (trail - UTF16.TRAIL_SURROGATE_MIN_VALUE) +
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
251 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DBMPSet.java34 * 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.
334 table[trail] |= bits;
343 while (trail < limitTrail) {
344 table[trail++] |= bits;
350 if (trail > 0) {
352 table[trail
[all...]
H A DIntTrie.java138 * This method does not guarantee correct results for trail surrogates.
162 * @param trail a trail surrogate
164 public final int getSurrogateValue(char lead, char trail) argument
166 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
170 // get fold position for the next trail surrogate
171 int offset = getSurrogateOffset(lead, trail);
173 // get the real data from the folded lead/trail units
184 * and a trail surrogate.
187 * @param trail surrogat
190 getTrailValue(int leadvalue, char trail) argument
264 getSurrogateOffset(char lead, char trail) argument
[all...]
/external/icu/icu4c/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
652 UChar c, trail; local
856 UChar c, trail; local
1120 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...]
/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...]
/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);
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/cloudtrail/
H A Dtest_cloudtrail.py48 self.fail('A trail already exists on this account!')
66 cloudtrail.create_trail(trail={'Name': 'test', 'S3BucketName': bucket_name})
68 cloudtrail.update_trail(trail={'Name': 'test', 'IncludeGlobalServiceEvents': False})
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
H A DCharsetUTF16.java210 char trail = (char) (((toUBytesArray[2 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK)));
212 if (!UTF16.isTrailSurrogate(trail)) {
228 target.put(trail);
232 charErrorBufferArray[0] = trail;
297 char trail = UTF16.getTrailSurrogate(fromUChar32);
303 temp[2 ^ endianXOR] = (byte) (trail >>> 8);
304 temp[3 ^ endianXOR] = (byte) (trail);
/external/icu/icu4c/source/tools/tzcode/
H A Dzdump.c885 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 <
988 register int trail; local
[all...]

Completed in 744 milliseconds

12345