/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | UTF8.java | 16 static int countTrailBytes(byte leadByte) { in countTrailBytes() argument 17 if (leadByte < (byte)0xe0) { in countTrailBytes() 18 return leadByte < (byte)0xc2 ? 0 : 1; in countTrailBytes() 19 } else if (leadByte < (byte)0xf0) { in countTrailBytes() 22 return leadByte <= (byte)0xf4 ? 3 : 0; in countTrailBytes() 34 static int countBytes(byte leadByte) { in countBytes() argument 35 if (leadByte >= 0) { in countBytes() 37 } else if (leadByte < (byte)0xe0) { in countBytes() 38 return leadByte < (byte)0xc2 ? 0 : 2; in countBytes() 39 } else if (leadByte < (byte)0xf0) { in countBytes() [all …]
|
D | CharsetHZ.java | 152 int leadByte = toUnicodeStatus & 0xff; in decodeLoop() local 164 … leadIsOk = (short)(UConverterConstants.UNSIGNED_BYTE_MASK & (leadByte - 0x21)) <= (0x7d - 0x21); in decodeLoop() 167 tempBuf[0] = (byte)(leadByte + 0x80); in decodeLoop() 170 mySourceChar = (leadByte << 8) | mySourceChar; in decodeLoop() 174 mySourceChar = leadByte; in decodeLoop() 178 mySourceChar = 0x10000 | (leadByte << 8) | mySourceChar; in decodeLoop()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | ustr_imp.h | 94 #define U8_COUNT_BYTES(leadByte) \ argument 95 (U8_IS_SINGLE(leadByte) ? 1 : U8_COUNT_BYTES_NON_ASCII(leadByte)) 105 #define U8_COUNT_BYTES_NON_ASCII(leadByte) \ argument 106 (U8_IS_LEAD(leadByte) ? ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+2 : 0)
|
D | bytestrie.cpp | 32 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { in readValue() argument 34 if(leadByte<kMinTwoByteValueLead) { in readValue() 35 value=leadByte-kMinOneByteValueLead; in readValue() 36 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 37 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos; in readValue() 38 } else if(leadByte<kFourByteValueLead) { in readValue() 39 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1]; in readValue() 40 } else if(leadByte==kFourByteValueLead) { in readValue()
|
D | ucnvhz.cpp | 254 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() local 266 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 269 tempBuf[0] = (char) (leadByte+0x80) ; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 273 mySourceChar= (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 277 mySourceChar = (int32_t)leadByte; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 281 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | ustr_imp.h | 106 #define U8_COUNT_BYTES(leadByte) \ argument 107 (U8_IS_SINGLE(leadByte) ? 1 : U8_COUNT_BYTES_NON_ASCII(leadByte)) 117 #define U8_COUNT_BYTES_NON_ASCII(leadByte) \ argument 118 (U8_IS_LEAD(leadByte) ? ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+2 : 0)
|
D | bytestrie.cpp | 32 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { in readValue() argument 34 if(leadByte<kMinTwoByteValueLead) { in readValue() 35 value=leadByte-kMinOneByteValueLead; in readValue() 36 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 37 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos; in readValue() 38 } else if(leadByte<kFourByteValueLead) { in readValue() 39 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1]; in readValue() 40 } else if(leadByte==kFourByteValueLead) { in readValue()
|
D | ucnvhz.cpp | 254 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() local 266 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 269 tempBuf[0] = (char) (leadByte+0x80) ; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 273 mySourceChar= (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 277 mySourceChar = (int32_t)leadByte; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 281 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
|
/third_party/node/deps/icu-small/source/common/ |
D | ustr_imp.h | 106 #define U8_COUNT_BYTES(leadByte) \ argument 107 (U8_IS_SINGLE(leadByte) ? 1 : U8_COUNT_BYTES_NON_ASCII(leadByte)) 117 #define U8_COUNT_BYTES_NON_ASCII(leadByte) \ argument 118 (U8_IS_LEAD(leadByte) ? ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+2 : 0)
|
D | bytestrie.cpp | 32 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { in readValue() argument 34 if(leadByte<kMinTwoByteValueLead) { in readValue() 35 value=leadByte-kMinOneByteValueLead; in readValue() 36 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 37 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos; in readValue() 38 } else if(leadByte<kFourByteValueLead) { in readValue() 39 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1]; in readValue() 40 } else if(leadByte==kFourByteValueLead) { in readValue()
|
D | ucnvhz.cpp | 254 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() local 266 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 269 tempBuf[0] = (char) (leadByte+0x80) ; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 273 mySourceChar= (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 277 mySourceChar = (int32_t)leadByte; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 281 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
|
/third_party/icu/icu4c/source/common/ |
D | ustr_imp.h | 106 #define U8_COUNT_BYTES(leadByte) \ argument 107 (U8_IS_SINGLE(leadByte) ? 1 : U8_COUNT_BYTES_NON_ASCII(leadByte)) 117 #define U8_COUNT_BYTES_NON_ASCII(leadByte) \ argument 118 (U8_IS_LEAD(leadByte) ? ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+2 : 0)
|
D | bytestrie.cpp | 32 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { in readValue() argument 34 if(leadByte<kMinTwoByteValueLead) { in readValue() 35 value=leadByte-kMinOneByteValueLead; in readValue() 36 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 37 value=((leadByte-kMinTwoByteValueLead)<<8)|*pos; in readValue() 38 } else if(leadByte<kFourByteValueLead) { in readValue() 39 value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1]; in readValue() 40 } else if(leadByte==kFourByteValueLead) { in readValue()
|
D | ucnvhz.cpp | 254 uint32_t leadByte = args->converter->toUnicodeStatus & 0xff; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() local 266 leadIsOk = (uint8_t)(leadByte - 0x21) <= (0x7d - 0x21); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 269 tempBuf[0] = (char) (leadByte+0x80) ; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 273 mySourceChar= (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 277 mySourceChar = (int32_t)leadByte; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 281 mySourceChar= 0x10000 | (leadByte << 8) | mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/ |
D | bytestrie.h | 210 int32_t leadByte=*pos++; in getValue() local 212 return readValue(pos, leadByte>>1); in getValue() 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) { in skipValue() argument 369 if(leadByte>=(kMinTwoByteValueLead<<1)) { in skipValue() 370 if(leadByte<(kMinThreeByteValueLead<<1)) { in skipValue() 372 } else if(leadByte<(kFourByteValueLead<<1)) { in skipValue() 375 pos+=3+((leadByte>>1)&1); in skipValue() 381 int32_t leadByte=*pos++; in skipValue() local 382 return skipValue(pos, leadByte); in skipValue()
|
D | utf8.h | 55 #define U8_COUNT_TRAIL_BYTES(leadByte) \ argument 56 (U8_IS_LEAD(leadByte) ? \ 57 ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+1 : 0) 70 #define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \ argument 71 (((uint8_t)(leadByte)>=0xc2)+((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)) 80 #define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
D | utf_old.h | 308 #define UTF8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[(uint8_t)leadByte]) argument 314 #define UTF8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | bytestrie.h | 248 int32_t leadByte=*pos++; in getValue() local 250 return readValue(pos, leadByte>>1); in getValue() 405 static int32_t readValue(const uint8_t *pos, int32_t leadByte); 406 static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) { in skipValue() argument 408 if(leadByte>=(kMinTwoByteValueLead<<1)) { in skipValue() 409 if(leadByte<(kMinThreeByteValueLead<<1)) { in skipValue() 411 } else if(leadByte<(kFourByteValueLead<<1)) { in skipValue() 414 pos+=3+((leadByte>>1)&1); in skipValue() 420 int32_t leadByte=*pos++; in skipValue() local 421 return skipValue(pos, leadByte); in skipValue()
|
D | utf8.h | 56 #define U8_COUNT_TRAIL_BYTES(leadByte) \ argument 57 (U8_IS_LEAD(leadByte) ? \ 58 ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+1 : 0) 71 #define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \ argument 72 (((uint8_t)(leadByte)>=0xc2)+((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)) 81 #define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/third_party/icu/icu4c/source/common/unicode/ |
D | bytestrie.h | 248 int32_t leadByte=*pos++; in getValue() local 250 return readValue(pos, leadByte>>1); in getValue() 405 static int32_t readValue(const uint8_t *pos, int32_t leadByte); 406 static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) { in skipValue() argument 408 if(leadByte>=(kMinTwoByteValueLead<<1)) { in skipValue() 409 if(leadByte<(kMinThreeByteValueLead<<1)) { in skipValue() 411 } else if(leadByte<(kFourByteValueLead<<1)) { in skipValue() 414 pos+=3+((leadByte>>1)&1); in skipValue() 420 int32_t leadByte=*pos++; in skipValue() local 421 return skipValue(pos, leadByte); in skipValue()
|
D | utf8.h | 56 #define U8_COUNT_TRAIL_BYTES(leadByte) \ argument 57 (U8_IS_LEAD(leadByte) ? \ 58 ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+1 : 0) 71 #define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \ argument 72 (((uint8_t)(leadByte)>=0xc2)+((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)) 81 #define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
D | bytestrie.h | 248 int32_t leadByte=*pos++; in getValue() local 250 return readValue(pos, leadByte>>1); in getValue() 405 static int32_t readValue(const uint8_t *pos, int32_t leadByte); 406 static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) { in skipValue() argument 408 if(leadByte>=(kMinTwoByteValueLead<<1)) { in skipValue() 409 if(leadByte<(kMinThreeByteValueLead<<1)) { in skipValue() 411 } else if(leadByte<(kFourByteValueLead<<1)) { in skipValue() 414 pos+=3+((leadByte>>1)&1); in skipValue() 420 int32_t leadByte=*pos++; in skipValue() local 421 return skipValue(pos, leadByte); in skipValue()
|
D | utf8.h | 56 #define U8_COUNT_TRAIL_BYTES(leadByte) \ argument 57 (U8_IS_LEAD(leadByte) ? \ 58 ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+1 : 0) 71 #define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \ argument 72 (((uint8_t)(leadByte)>=0xc2)+((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)) 81 #define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) argument
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | BytesTrie.java | 385 int leadByte=bytes_[pos++]&0xff; 386 assert(leadByte>=kMinValueLead); 387 return readValue(bytes_, pos, leadByte>>1); 729 private static int readValue(byte[] bytes, int pos, int leadByte) { in readValue() argument 731 if(leadByte<kMinTwoByteValueLead) { in readValue() 732 value=leadByte-kMinOneByteValueLead; in readValue() 733 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 734 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff); in readValue() 735 } else if(leadByte<kFourByteValueLead) { in readValue() 736 … value=((leadByte-kMinThreeByteValueLead)<<16)|((bytes[pos]&0xff)<<8)|(bytes[pos+1]&0xff); in readValue() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrie.java | 406 int leadByte=bytes_[pos++]&0xff; 407 assert(leadByte>=kMinValueLead); 408 return readValue(bytes_, pos, leadByte>>1); 764 private static int readValue(byte[] bytes, int pos, int leadByte) { in readValue() argument 766 if(leadByte<kMinTwoByteValueLead) { in readValue() 767 value=leadByte-kMinOneByteValueLead; in readValue() 768 } else if(leadByte<kMinThreeByteValueLead) { in readValue() 769 value=((leadByte-kMinTwoByteValueLead)<<8)|(bytes[pos]&0xff); in readValue() 770 } else if(leadByte<kFourByteValueLead) { in readValue() 771 … value=((leadByte-kMinThreeByteValueLead)<<16)|((bytes[pos]&0xff)<<8)|(bytes[pos+1]&0xff); in readValue() [all …]
|