/external/icu/icu4c/source/common/unicode/ |
D | bytestrie.h | 208 int32_t leadByte=*pos++; in getValue() local 210 return readValue(pos, leadByte>>1); in getValue() 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) { in skipValue() argument 368 if(leadByte>=(kMinTwoByteValueLead<<1)) { in skipValue() 369 if(leadByte<(kMinThreeByteValueLead<<1)) { in skipValue() 371 } else if(leadByte<(kFourByteValueLead<<1)) { in skipValue() 374 pos+=3+((leadByte>>1)&1); in skipValue() 380 int32_t leadByte=*pos++; in skipValue() local 381 return skipValue(pos, leadByte); in skipValue()
|
D | utf8.h | 80 #define U8_COUNT_TRAIL_BYTES(leadByte) \ argument 81 ((uint8_t)(leadByte)<0xf0 ? \ 82 ((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \ 83 (uint8_t)(leadByte)<0xfe ? 3+((uint8_t)(leadByte)>=0xf8)+((uint8_t)(leadByte)>=0xfc) : 0) 96 #define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \ argument 97 (((leadByte)>=0xc0)+((leadByte)>=0xe0)+((leadByte)>=0xf0)) 106 #define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
D | utf_old.h | 272 #define UTF8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[(uint8_t)leadByte]) argument 278 #define UTF8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrie.java | 355 int leadByte=bytes_[pos++]&0xff; 356 assert(leadByte>=kMinValueLead); 357 return readValue(bytes_, pos, leadByte>>1); 709 private static int readValue(byte[] bytes, int pos, int leadByte) { in readValue() argument 711 if(leadByte<kMinTwoByteValueLead) { in readValue() 712 value=leadByte-kMinOneByteValueLead; in readValue() 713 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 714 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff); in readValue() 715 } else if(leadByte<kFourByteValueLead) { in readValue() 716 … value=((leadByte-kMinThreeByteValueLead)<<16)|((bytes[pos]&0xff)<<8)|(bytes[pos+1]&0xff); in readValue() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BytesTrie.java | 336 int leadByte=bytes_[pos++]&0xff; 337 assert(leadByte>=kMinValueLead); 338 return readValue(bytes_, pos, leadByte>>1); 674 private static int readValue(byte[] bytes, int pos, int leadByte) { in readValue() argument 676 if(leadByte<kMinTwoByteValueLead) { in readValue() 677 value=leadByte-kMinOneByteValueLead; in readValue() 678 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 679 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff); in readValue() 680 } else if(leadByte<kFourByteValueLead) { in readValue() 681 … value=((leadByte-kMinThreeByteValueLead)<<16)|((bytes[pos]&0xff)<<8)|(bytes[pos+1]&0xff); in readValue() [all …]
|
/external/icu/icu4c/source/common/ |
D | bytestrie.cpp | 30 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { in readValue() argument 32 if(leadByte<kMinTwoByteValueLead) { in readValue() 33 value=leadByte-kMinOneByteValueLead; in readValue() 34 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 35 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos; in readValue() 36 } else if(leadByte<kFourByteValueLead) { in readValue() 37 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1]; in readValue() 38 } else if(leadByte==kFourByteValueLead) { in readValue()
|
D | ucnvhz.c | 252 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() local 264 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 267 tempBuf[0] = (char) (leadByte+0x80) ; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 271 mySourceChar= (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 275 mySourceChar = (int32_t)leadByte; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 279 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
|
/external/libchrome/base/third_party/icu/ |
D | icu_utf.h | 110 #define CBU8_COUNT_TRAIL_BYTES(leadByte) \ argument 111 (base_icu::utf8_countTrailBytes[(uint8_t)leadByte]) 117 #define CBU8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/external/libweave/third_party/chromium/base/third_party/icu/ |
D | icu_utf.h | 112 #define CBU8_COUNT_TRAIL_BYTES(leadByte) (base_icu::utf8_countTrailBytes[(uint8_t)leadByte]) argument 118 #define CBU8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetHZ.java | 148 int leadByte = toUnicodeStatus & 0xff; in decodeLoop() local 160 … leadIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (leadByte - 0x21)) <= (0x7d - 0x21); in decodeLoop() 163 tempBuf[0] = (byte)(leadByte + 0x80); in decodeLoop() 166 mySourceChar = (leadByte << 8) | mySourceChar; in decodeLoop() 170 mySourceChar = leadByte; in decodeLoop() 174 mySourceChar = 0x10000 | (leadByte << 8) | mySourceChar; in decodeLoop()
|
/external/icu/icu4c/source/i18n/ |
D | collationdata.cpp | 318 int32_t leadByte = table[i]; in makeReorderRanges() local 319 if(leadByte != 0) { continue; } in makeReorderRanges()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationData.java | 407 int leadByte = table[i]; in makeReorderRanges() local 408 if(leadByte != 0) { continue; } in makeReorderRanges()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationData.java | 405 int leadByte = table[i]; in makeReorderRanges() local 406 if(leadByte != 0) { continue; } in makeReorderRanges()
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/ |
D | SRWebSocket.m | 1658 uint8_t leadByte = str[lastOffset]; 1659 U8_MASK_LEAD_BYTE(leadByte, U8_COUNT_TRAIL_BYTES(leadByte));
|