Searched defs:leadByte (Results 1 - 6 of 6) sorted by relevance
/external/icu/icu4c/source/common/ |
H A D | bytestrie.cpp | 32 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 D | ucnvhz.c | 254 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/icu4c/source/i18n/ |
H A D | collationdata.cpp | 320 int32_t leadByte = table[i]; local 321 if(leadByte != 0) { continue; }
|
/external/icu/icu4c/source/common/unicode/ |
H A D | bytestrie.h | 210 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...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
H A D | BytesTrie.java | 338 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 D | BytesTrie.java | 357 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...] |
Completed in 114 milliseconds