Searched refs:leadByte (Results 1 - 12 of 12) sorted by relevance

/external/icu/icu4c/source/common/unicode/
H A Dbytestrie.h210 int32_t leadByte=*pos++; local
211 // U_ASSERT(leadByte>=kMinValueLead);
212 return readValue(pos, leadByte>>1);
365 // pos is already after the leadByte, and the lead byte is already shifted right by 1.
366 static int32_t readValue(const uint8_t *pos, int32_t leadByte);
367 static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) { argument
368 // U_ASSERT(leadByte>=kMinValueLead);
369 if(leadByte>=(kMinTwoByteValueLead<<1)) {
370 if(leadByte<(kMinThreeByteValueLead<<1)) {
372 } else if(leadByte<(kFourByteValueLea
381 int32_t leadByte=*pos++; local
[all...]
H A Dutf8.h73 * leadByte is evaluated multiple times.
76 * #define U8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[leadByte])
77 * leadByte was evaluated exactly once.
79 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
82 #define U8_COUNT_TRAIL_BYTES(leadByte) \
83 ((uint8_t)(leadByte)<0xf0 ? \
84 ((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \
85 (uint8_t)(leadByte)<
[all...]
H A Dutf_old.h274 #define UTF8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[(uint8_t)leadByte])
280 #define UTF8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1)
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DBytesTrie.java338 int leadByte=bytes_[pos++]&0xff;
339 assert(leadByte>=kMinValueLead);
340 return readValue(bytes_, pos, leadByte>>1);
679 // pos is already after the leadByte, and the lead byte is already shifted right by 1.
680 private static int readValue(byte[] bytes, int pos, int leadByte) { argument
682 if(leadByte<kMinTwoByteValueLead) {
683 value=leadByte-kMinOneByteValueLead;
684 } else if(leadByte<kMinThreeByteValueLead) {
685 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff);
686 } else if(leadByte<kFourByteValueLea
695 skipValue(int pos, int leadByte) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DBytesTrie.java357 int leadByte=bytes_[pos++]&0xff;
358 assert(leadByte>=kMinValueLead);
359 return readValue(bytes_, pos, leadByte>>1);
714 // pos is already after the leadByte, and the lead byte is already shifted right by 1.
715 private static int readValue(byte[] bytes, int pos, int leadByte) { argument
717 if(leadByte<kMinTwoByteValueLead) {
718 value=leadByte-kMinOneByteValueLead;
719 } else if(leadByte<kMinThreeByteValueLead) {
720 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff);
721 } else if(leadByte<kFourByteValueLea
730 skipValue(int pos, int leadByte) argument
[all...]
/external/libchrome/base/third_party/icu/
H A Dicu_utf.h110 #define CBU8_COUNT_TRAIL_BYTES(leadByte) \
111 (base_icu::utf8_countTrailBytes[(uint8_t)leadByte])
117 #define CBU8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1)
/external/icu/icu4c/source/common/
H A Dbytestrie.cpp32 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { argument
34 if(leadByte<kMinTwoByteValueLead) {
35 value=leadByte-kMinOneByteValueLead;
36 } else if(leadByte<kMinThreeByteValueLead) {
37 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos;
38 } else if(leadByte<kFourByteValueLead) {
39 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
40 } else if(leadByte==kFourByteValueLead) {
H A Ducnvhz.c254 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; local
266 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21);
269 tempBuf[0] = (char) (leadByte+0x80) ;
273 mySourceChar= (leadByte << 8) | mySourceChar;
277 mySourceChar = (int32_t)leadByte;
281 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar;
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
H A DCharsetHZ.java152 int leadByte = toUnicodeStatus & 0xff;
164 leadIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (leadByte - 0x21)) <= (0x7d - 0x21);
167 tempBuf[0] = (byte)(leadByte + 0x80);
170 mySourceChar = (leadByte << 8) | mySourceChar;
174 mySourceChar = leadByte;
178 mySourceChar = 0x10000 | (leadByte << 8) | mySourceChar;
/external/icu/icu4c/source/i18n/
H A Dcollationdata.cpp320 int32_t leadByte = table[i]; local
321 if(leadByte != 0) { continue; }
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DCollationData.java409 int leadByte = table[i];
410 if(leadByte != 0) { continue; }
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationData.java407 int leadByte = table[i];
408 if(leadByte != 0) { continue; }

Completed in 377 milliseconds