Searched defs:leadByte (Results 1 - 5 of 5) sorted by relevance

/external/icu/icu4c/source/common/
H A Dbytestrie.cpp30 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 Ducnvhz.c252 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/icu4c/source/i18n/
H A Dcollationdata.cpp318 int32_t leadByte = table[i]; local
319 if(leadByte != 0) { continue; }
/external/icu/icu4c/source/common/unicode/
H A Dbytestrie.h208 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...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DBytesTrie.java355 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...]

Completed in 108 milliseconds