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

123

/external/icu/icu4c/source/i18n/
H A Duitercollationiterator.cpp55 UChar32 trail = iter.next(&iter); local
56 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); }
57 return (UChar)trail;
146 UChar32 trail = iter.next(&iter); local
147 if(U16_IS_TRAIL(trail)) {
149 } else if(trail >= 0) {
152 return (UChar)trail;
155 UChar trail;
156 if(U16_IS_TRAIL(trail
[all...]
H A Dutf16collationiterator.cpp72 UChar trail; local
73 if(U16_IS_TRAIL(trail = *pos)) { ++pos; }
74 return trail;
98 UChar trail; local
99 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
101 return U16_GET_SUPPLEMENTARY(c, trail);
280 UChar trail; local
281 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
283 return U16_GET_SUPPLEMENTARY(c, trail);
H A Dcollationweights.cpp49 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { argument
51 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length));
265 uint32_t trail=getWeightTrail(weight, length); local
266 if(trail<maxBytes[length]) {
270 lower[length].count=maxBytes[length]-trail;
284 uint32_t trail=getWeightTrail(weight, length); local
285 if(trail>minBytes[length]) {
289 upper[length].count=trail-minBytes[length];
/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/icu/android_icu4j/src/main/java/android/icu/impl/
H A DCharTrie.java140 * This method does not guarantee correct results for trail surrogates.
164 * @param trail a trail surrogate
166 public final char getSurrogateValue(char lead, char trail) argument
168 int offset = getSurrogateOffset(lead, trail);
177 * and a trail surrogate.</p>
181 * @param trail surrogate
182 * @return trie data value associated with the trail character
184 public final char getTrailValue(int leadvalue, char trail) argument
193 (char)(trail
258 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DIntTrie.java141 * This method does not guarantee correct results for trail surrogates.
165 * @param trail a trail surrogate
167 public final int getSurrogateValue(char lead, char trail) argument
169 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
173 // get fold position for the next trail surrogate
174 int offset = getSurrogateOffset(lead, trail);
176 // get the real data from the folded lead/trail units
187 * and a trail surrogate.
190 * @param trail surrogat
193 getTrailValue(int leadvalue, char trail) argument
271 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DTrie.java224 /** Number of bits of a trail surrogate that are used in index table lookups. */
228 * Same as number of index entries for 1024 trail surrogates,
265 * @param trail trailing surrogate
268 protected abstract int getSurrogateOffset(char lead, char trail); argument
291 * surrogates lead and trail. Then we would have to call getRawOffset()
353 // trail forms the ends of it.
/external/icu/icu4c/source/samples/uciter8/
H A Duit_len8.c417 UChar trail=U16_TRAIL(iter->reservedField); local
422 return trail;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
H A DUTF16Util.java183 hadLeadSurrogate = false; // count valid trail as zero
211 hadLeadSurrogate = false; // count valid trail as zero
275 * Determines whether the character is a trail surrogate.
277 * @return true iff the input character is a trail surrogate.
339 char trail = source[offset16];
340 if (isTrailSurrogate(trail)) {
341 return getRawSupplementary(single, trail);
375 * @param trail trailing surrogate character
378 public static int getRawSupplementary(char lead, char trail) argument
380 return (lead << LEAD_SURROGATE_SHIFT_) + trail
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCharTrie.java139 * This method does not guarantee correct results for trail surrogates.
163 * @param trail a trail surrogate
165 public final char getSurrogateValue(char lead, char trail) argument
167 int offset = getSurrogateOffset(lead, trail);
176 * and a trail surrogate.</p>
180 * @param trail surrogate
181 * @return trie data value associated with the trail character
183 public final char getTrailValue(int leadvalue, char trail) argument
192 (char)(trail
257 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DIntTrie.java140 * This method does not guarantee correct results for trail surrogates.
164 * @param trail a trail surrogate
166 public final int getSurrogateValue(char lead, char trail) argument
168 if (!UTF16.isLeadSurrogate(lead) || !UTF16.isTrailSurrogate(trail)) {
172 // get fold position for the next trail surrogate
173 int offset = getSurrogateOffset(lead, trail);
175 // get the real data from the folded lead/trail units
186 * and a trail surrogate.
189 * @param trail surrogat
192 getTrailValue(int leadvalue, char trail) argument
270 getSurrogateOffset(char lead, char trail) argument
[all...]
H A DTrie.java223 /** Number of bits of a trail surrogate that are used in index table lookups. */
227 * Same as number of index entries for 1024 trail surrogates,
264 * @param trail trailing surrogate
267 protected abstract int getSurrogateOffset(char lead, char trail); argument
290 * surrogates lead and trail. Then we would have to call getRawOffset()
352 // trail forms the ends of it.
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
H A DUTF16Util.java179 hadLeadSurrogate = false; // count valid trail as zero
207 hadLeadSurrogate = false; // count valid trail as zero
271 * Determines whether the character is a trail surrogate.
273 * @return true iff the input character is a trail surrogate.
335 char trail = source[offset16];
336 if (isTrailSurrogate(trail)) {
337 return getRawSupplementary(single, trail);
371 * @param trail trailing surrogate character
374 public static int getRawSupplementary(char lead, char trail) argument
376 return (lead << LEAD_SURROGATE_SHIFT_) + trail
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DCollationWeights.java197 private static long setWeightTrail(long weight, int length, int trail) { argument
199 return (weight&(0xffffff00L<<length))|((long)trail<<length);
336 int trail=getWeightTrail(weight, length);
337 if(trail<maxBytes[length]) {
342 lower[length].count=maxBytes[length]-trail;
356 int trail=getWeightTrail(weight, length);
357 if(trail>minBytes[length]) {
362 upper[length].count=trail-minBytes[length];
/external/icu/icu4c/source/common/
H A Ducnv_u16.cpp60 UChar c, trail; local
95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
101 target[2]=(uint8_t)(trail>>8);
102 target[3]=(uint8_t)trail;
133 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
138 target[2]=(uint8_t)(trail>>8);
139 target[3]=(uint8_t)trail;
155 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
160 target[2]=(uint8_t)(trail>>8);
161 target[3]=(uint8_t)trail;
264 UChar c, trail; local
528 UChar trail; local
661 UChar c, trail; local
865 UChar c, trail; local
1129 UChar trail; local
[all...]
H A Ducnvlat1.cpp277 UChar trail=*source; local
278 if(U16_IS_TRAIL(trail)) {
280 cp=U16_GET_SUPPLEMENTARY(cp, trail);
293 /* this is an unmatched trail code unit (2nd surrogate) */
367 * For Latin-1, adjust sourceLimit only for 1 trail byte because
H A Ducnvbocu.cpp68 /* adjust trail byte counts for the use of some C0 control byte values */
72 /* number of trail bytes */
146 * but are also used as trail bytes in difference encoding
154 * to trail byte values 0..19 (0..0x13) as used in the difference calculation.
155 * External byte values that are illegal as trail bytes are mapped to -1.
177 * 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);
732 UChar trail local
[all...]
H A Ducnvhz.cpp211 /* if the first byte is equal to TILDE and the trail byte
252 /* trail byte */
381 /* we can only use lead bytes 21..7D and trail bytes 21..7E */
453 /*look ahead to find the trail surrogate*/
456 UChar trail=(UChar) args->source[mySourceIndex]; local
457 if(U16_IS_TRAIL(trail)) {
459 mySourceChar=U16_GET_SUPPLEMENTARY(args->converter->fromUChar32, trail);
474 /* this is an unmatched trail code unit (2nd surrogate) */
H A Duiter.cpp876 UChar trail=U16_TRAIL(iter->reservedField); local
881 return trail;
/external/icu/icu4c/source/test/cintltst/
H A Dsprpdata.c213 UChar trail = U16_TRAIL(mapping[i]); local
215 mappingData[idx+i+1] != trail){
216 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]);
247 // get the real data from the folded lead/trail units
/external/icu/icu4c/source/test/intltest/
H A Dtestidn.cpp389 UChar trail = U16_TRAIL(mapping[i]); local
391 mappingData[index+i+1] != trail){
392 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]);
421 // get the real data from the folded lead/trail units
/external/icu/icu4c/source/tools/escapesrc/
H A Descapesrc.cpp246 int32_t trail = U8_COUNT_TRAIL_BYTES(linestr[pos]); local
247 for(size_t pos2 = pos+1; trail>0; pos2++,trail--) {
/external/icu/icu4c/source/tools/gennorm2/
H A Dnorms.cpp55 UChar32 Norm::combine(UChar32 trail) const {
59 if(trail==pairs[i].trail) {
62 if(trail<pairs[i].trail) {
147 uint8_t trailCC=getCC(pairs[i].trail);
198 UChar32 trail=m.char32At(m.length()-1); local
208 norms.createNorm(trail)->combinesBack=TRUE;
209 // Insert (trail, composite) pair into compositions list for the lead character.
218 // Insertion sort, and check for duplicate trail character
[all...]
H A Dnorms.h54 CompositionPair(UChar32 t, UChar32 c) : trail(t), composite(c) {}
55 UChar32 trail, composite; member in struct:CompositionPair
82 UChar32 combine(UChar32 trail) const;
90 UVector32 *compositions; // (trail, composite) pairs
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationWeights.java195 private static long setWeightTrail(long weight, int length, int trail) { argument
197 return (weight&(0xffffff00L<<length))|((long)trail<<length);
334 int trail=getWeightTrail(weight, length);
335 if(trail<maxBytes[length]) {
340 lower[length].count=maxBytes[length]-trail;
354 int trail=getWeightTrail(weight, length);
355 if(trail>minBytes[length]) {
360 upper[length].count=trail-minBytes[length];

Completed in 514 milliseconds

123