/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
utf8_utils.h | 49 static int getSequenceSizeByCheckingFirstByte(const uint8_t firstByte); 50 static int maskFirstByte(const uint8_t firstByte, const int encodeSize);
|
utf8_utils.cpp | 65 /* static */ int Utf8Utils::getSequenceSizeByCheckingFirstByte(const uint8_t firstByte) { 67 if ((firstByte & FIRST_BYTE_MARKER_MASKS[i]) == FIRST_BYTE_MARKERS[i]) { 75 /* static */ AK_FORCE_INLINE int Utf8Utils::maskFirstByte(const uint8_t firstByte, 77 return firstByte & FIRST_BYTE_CODE_POINT_BITS_MASKS[sequenceSize];
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CharsetRecog_mbcs.java | 203 int firstByte; 204 firstByte = it.charValue = it.nextByte(det); 205 if (firstByte < 0) { 209 if (firstByte <= 0x7f || (firstByte>0xa0 && firstByte<=0xdf)) { 217 it.charValue = (firstByte << 8) | secondByte; 266 int firstByte; 267 firstByte = it.charValue = it.nextByte(det); 268 if (firstByte < 0) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CharsetRecog_mbcs.java | 202 int firstByte; 203 firstByte = it.charValue = it.nextByte(det); 204 if (firstByte < 0) { 208 if (firstByte <= 0x7f || (firstByte>0xa0 && firstByte<=0xdf)) { 216 it.charValue = (firstByte << 8) | secondByte; 265 int firstByte; 266 firstByte = it.charValue = it.nextByte(det); 267 if (firstByte < 0) [all...] |
/external/icu/icu4c/source/i18n/ |
csrmbcs.cpp | 247 int32_t firstByte = it->charValue = it->nextByte(det); 249 if (firstByte < 0) { 253 if (firstByte <= 0x7F || (firstByte > 0xA0 && firstByte <= 0xDF)) { 259 it->charValue = (firstByte << 8) | secondByte; 293 int32_t firstByte = 0; 299 firstByte = it->charValue = it->nextByte(det); 301 if (firstByte < 0) { 306 if (firstByte <= 0x8D) [all...] |
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/ |
BIG5Tool.java | 302 int firstByte = 0; 306 firstByte = it.charValue = it.nextByte(); 307 if (firstByte < 0) { 312 if (firstByte <= 0x0080 || 313 (sjis && firstByte>=0x00a0 && firstByte< 0x00e0) || 314 (sjis && firstByte>=0x00fd && firstByte<=0x00ff)) { 330 System.out.println("Error " + Integer.toHexString(firstByte) + " " + Integer.toHexString(secondByte));
|
EUCTool.java | 302 int firstByte = 0; 308 firstByte = it.charValue = it.nextByte(); 309 if (firstByte < 0) { 314 if (firstByte <= 0x8d) { 322 if (firstByte >= 0xA1 && firstByte <= 0xfe) { 329 if (firstByte == 0x8e) { 342 if (firstByte == 0x8f) { 354 System.out.println("Error " + Integer.toHexString(firstByte) + " " + Integer.toHexString(secondByte)
|
/external/lzma/CPP/7zip/Crypto/ |
7zAes.cpp | 147 Byte firstByte = (Byte)(_key.NumCyclesPower |
150 RINOK(outStream->Write(&firstByte, 1, NULL));
185 Byte firstByte = data[pos++];
187 _key.NumCyclesPower = firstByte & 0x3F;
188 if ((firstByte & 0xC0) == 0)
190 _key.SaltSize = (firstByte >> 7) & 1;
191 UInt32 ivSize = (firstByte >> 6) & 1;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
patricia_trie_reading_utils.cpp | 49 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); 50 if (firstByte < 0x80) { 51 return firstByte; 53 return ((firstByte & 0x7F) << 8) ^ ByteArrayUtils::readUint8AndAdvancePosition(
|
/external/pdfium/xfa/src/fxbarcode/datamatrix/ |
BC_DataMatrixDecodedBitStreamParser.cpp | 187 int32_t firstByte = bits->ReadBits(8, e);
189 if (firstByte == 254) {
194 ParseTwoBytes(firstByte, tempp, cValues);
274 int32_t firstByte = bits->ReadBits(8, e);
276 if (firstByte == 254) {
281 ParseTwoBytes(firstByte, inTp, cValues);
363 int32_t firstByte = bits->ReadBits(8, e);
365 if (firstByte == 254) {
370 ParseTwoBytes(firstByte, iTemp1, cValues);
394 int32_t firstByte,
[all...] |
BC_DataMatrixDecodedBitStreamParser.h | 31 static void ParseTwoBytes(int32_t firstByte,
|
/external/pdfium/xfa/src/fxbarcode/qrcode/ |
BC_QRDecodedBitStreamParser.cpp | 256 int32_t firstByte = bits->ReadBits(8, e);
258 if ((firstByte & 0x80) == 0) {
259 return firstByte & 0x7f;
260 } else if ((firstByte & 0xc0) == 0x80) {
263 return ((firstByte & 0x3f) << 8) | secondByte;
264 } else if ((firstByte & 0xe0) == 0xc0) {
267 return ((firstByte & 0x1f) << 16) | secondThirdByte;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
byte_array_utils.h | 160 * codePointTable. The indices are calculated by subtracting 0x20 from the firstByte. 162 const uint8_t firstByte = readUint8(buffer, *pos); 163 if (firstByte < MINIMUM_ONE_BYTE_CHARACTER_VALUE) { 164 if (firstByte == CHARACTER_ARRAY_TERMINATOR) { 173 return codePointTable[firstByte - MINIMUM_ONE_BYTE_CHARACTER_VALUE]; 175 return firstByte;
|
/external/guava/guava/src/com/google/common/io/ |
GwtWorkarounds.java | 118 int firstByte = read(); 119 if (firstByte == -1) { 122 b[off] = (byte) firstByte;
|
/frameworks/base/core/java/android/net/ |
NetworkUtils.java | 269 int firstByte = address.getAddress()[0] & 0xff; // Convert to an unsigned value. 270 if (firstByte < 128) { 272 } else if (firstByte < 192) { 274 } else if (firstByte < 224) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
SmsMessage.java | 917 int firstByte = p.getByte(); 919 mMti = firstByte & 0x3; 926 parseSmsDeliver(p, firstByte); 929 parseSmsSubmit(p, firstByte); 932 parseSmsStatusReport(p, firstByte); [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
ImageHeaderParser.java | 87 int firstByte = streamReader.getUInt8(); 90 if (firstByte == EXIF_MAGIC_NUMBER >> 8) { 94 final int firstTwoBytes = firstByte << 8 & 0xFF00 | streamReader.getUInt8() & 0xFF;
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
AbstractMessageLite.java | 294 final int firstByte = input.read(); 295 if (firstByte == -1) { 298 final int size = CodedInputStream.readRawVarint32(firstByte, input);
|
AbstractParser.java | 224 int firstByte = input.read(); 225 if (firstByte == -1) { 228 size = CodedInputStream.readRawVarint32(firstByte, input);
|
CodedInputStream.java | 671 final int firstByte = input.read(); 672 if (firstByte == -1) { 675 return readRawVarint32(firstByte, input); 684 final int firstByte, final InputStream input) throws IOException { 685 if ((firstByte & 0x80) == 0) { 686 return firstByte; 689 int result = firstByte & 0x7f; [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
Hpack.java | 321 int readInt(int firstByte, int prefixMask) throws IOException { 322 int prefix = firstByte & prefixMask; 345 int firstByte = readByte(); 346 boolean huffmanDecode = (firstByte & 0x80) == 0x80; // 1NNNNNNN 347 int length = readInt(firstByte, PREFIX_7_BITS);
|
/external/lzma/C/ |
7zArcIn.c | 203 Byte firstByte, mask;
207 SZ_READ_BYTE(firstByte);
208 if ((firstByte & 0x80) == 0)
210 *value = firstByte;
214 if ((firstByte & 0x40) == 0)
216 *value = (((UInt32)firstByte & 0x3F) << 8) | v;
225 if ((firstByte & mask) == 0)
227 UInt64 highPart = firstByte & (mask - 1);
243 Byte firstByte;
252 firstByte = *data++; [all...] |
/external/dng_sdk/source/ |
dng_iptc.cpp | 253 uint8 firstByte = stream.Get_uint8 (); 255 if (firstByte != 0x1C) break; 339 uint8 firstByte = stream.Get_uint8 (); 341 if (firstByte != 0x1C) break;
|
/external/llvm/include/llvm/Support/ |
ConvertUTF.h | 175 unsigned getNumBytesForUTF8(UTF8 firstByte);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
RandomTest.java | 84 byte firstByte = randomBytes[0]; 86 if (randomBytes[counter] != firstByte)
|