Searched refs:leadByte (Results 1 - 9 of 9) sorted by relevance
/external/icu/icu4c/source/common/unicode/ |
H A D | bytestrie.h | 208 int32_t leadByte=*pos++; local 209 // U_ASSERT(leadByte>=kMinValueLead); 210 return readValue(pos, leadByte>>1); 364 // pos is already after the leadByte, and the lead byte is already shifted right by 1. 365 static int32_t readValue(const uint8_t *pos, int32_t leadByte); 366 static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) { argument 367 // U_ASSERT(leadByte>=kMinValueLead); 368 if(leadByte>=(kMinTwoByteValueLead<<1)) { 369 if(leadByte<(kMinThreeByteValueLead<<1)) { 371 } else if(leadByte<(kFourByteValueLea 380 int32_t leadByte=*pos++; local [all...] |
H A D | utf8.h | 71 * leadByte is evaluated multiple times. 74 * #define U8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[leadByte]) 75 * leadByte was evaluated exactly once. 77 * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff. 80 #define U8_COUNT_TRAIL_BYTES(leadByte) \ 81 ((uint8_t)(leadByte)<0xf0 ? \ 82 ((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \ 83 (uint8_t)(leadByte)< [all...] |
H A D | utf_old.h | 272 #define UTF8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[(uint8_t)leadByte]) 278 #define UTF8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1)
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | BytesTrie.java | 355 int leadByte=bytes_[pos++]&0xff; 356 assert(leadByte>=kMinValueLead); 357 return readValue(bytes_, pos, leadByte>>1); 708 // pos is already after the leadByte, and the lead byte is already shifted right by 1. 709 private static int readValue(byte[] bytes, int pos, int leadByte) { argument 711 if(leadByte<kMinTwoByteValueLead) { 712 value=leadByte-kMinOneByteValueLead; 713 } else if(leadByte<kMinThreeByteValueLead) { 714 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff); 715 } else if(leadByte<kFourByteValueLea 724 skipValue(int pos, int leadByte) argument [all...] |
/external/icu/icu4c/source/common/ |
H A D | bytestrie.cpp | 30 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { argument 32 if(leadByte<kMinTwoByteValueLead) { 33 value=leadByte-kMinOneByteValueLead; 34 } else if(leadByte<kMinThreeByteValueLead) { 35 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos; 36 } else if(leadByte<kFourByteValueLead) { 37 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1]; 38 } else if(leadByte==kFourByteValueLead) {
|
H A D | ucnvhz.c | 252 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; local 264 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21); 267 tempBuf[0] = (char) (leadByte+0x80) ; 271 mySourceChar= (leadByte << 8) | mySourceChar; 275 mySourceChar = (int32_t)leadByte; 279 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar;
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetHZ.java | 144 int leadByte = toUnicodeStatus & 0xff; 156 leadIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (leadByte - 0x21)) <= (0x7d - 0x21); 159 tempBuf[0] = (byte)(leadByte + 0x80); 162 mySourceChar = (leadByte << 8) | mySourceChar; 166 mySourceChar = leadByte; 170 mySourceChar = 0x10000 | (leadByte << 8) | mySourceChar;
|
/external/icu/icu4c/source/i18n/ |
H A D | collationdata.cpp | 318 int32_t leadByte = table[i]; local 319 if(leadByte != 0) { continue; }
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | CollationData.java | 405 int leadByte = table[i]; 406 if(leadByte != 0) { continue; }
|
Completed in 1946 milliseconds