Home
last modified time | relevance | path

Searched refs:firstByte (Results 1 – 25 of 33) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_mbcs.java204 int firstByte; in nextChar() local
205 firstByte = it.charValue = it.nextByte(det); in nextChar()
206 if (firstByte < 0) { in nextChar()
210 if (firstByte <= 0x7f || (firstByte>0xa0 && firstByte<=0xdf)) { in nextChar()
218 it.charValue = (firstByte << 8) | secondByte; in nextChar()
270 int firstByte; in nextChar() local
271 firstByte = it.charValue = it.nextByte(det); in nextChar()
272 if (firstByte < 0) { in nextChar()
276 if (firstByte <= 0x7f || firstByte==0xff) { in nextChar()
332 int firstByte = 0; in nextChar() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_mbcs.java203 int firstByte; in nextChar() local
204 firstByte = it.charValue = it.nextByte(det); in nextChar()
205 if (firstByte < 0) { in nextChar()
209 if (firstByte <= 0x7f || (firstByte>0xa0 && firstByte<=0xdf)) { in nextChar()
217 it.charValue = (firstByte << 8) | secondByte; in nextChar()
269 int firstByte; in nextChar() local
270 firstByte = it.charValue = it.nextByte(det); in nextChar()
271 if (firstByte < 0) { in nextChar()
275 if (firstByte <= 0x7f || firstByte==0xff) { in nextChar()
331 int firstByte = 0; in nextChar() local
[all …]
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp248 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar() local
250 if (firstByte < 0) { in nextChar()
254 if (firstByte <= 0x7F || (firstByte > 0xA0 && firstByte <= 0xDF)) { in nextChar()
260 it->charValue = (firstByte << 8) | secondByte; in nextChar()
294 int32_t firstByte = 0; in nextChar() local
300 firstByte = it->charValue = it->nextByte(det); in nextChar()
302 if (firstByte < 0) { in nextChar()
307 if (firstByte <= 0x8D) { in nextChar()
318 if (firstByte >= 0xA1 && firstByte <= 0xFE) { in nextChar()
327 if (firstByte == 0x8E) { in nextChar()
[all …]
Dcollationiterator.cpp761 int32_t firstByte = 2; in appendNumericSegmentCEs() local
765 uint32_t primary = numericPrimary | ((firstByte + value) << 16); in appendNumericSegmentCEs()
770 firstByte += numBytes; in appendNumericSegmentCEs()
775 ((firstByte + value / 254) << 16) | ((2 + value % 254) << 8); in appendNumericSegmentCEs()
780 firstByte += numBytes; in appendNumericSegmentCEs()
788 primary |= (firstByte + value % 254) << 16; in appendNumericSegmentCEs()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/
DBIG5Tool.java304 int firstByte = 0; in nextChar() local
308 firstByte = it.charValue = it.nextByte(); in nextChar()
309 if (firstByte < 0) { in nextChar()
314 if (firstByte <= 0x0080 || in nextChar()
315 (sjis && firstByte>=0x00a0 && firstByte< 0x00e0) || in nextChar()
316 (sjis && firstByte>=0x00fd && firstByte<=0x00ff)) { in nextChar()
332 …System.out.println("Error " + Integer.toHexString(firstByte) + " " + Integer.toHexString(secondByt… in nextChar()
DEUCTool.java304 int firstByte = 0; in nextChar() local
310 firstByte = it.charValue = it.nextByte(); in nextChar()
311 if (firstByte < 0) { in nextChar()
316 if (firstByte <= 0x8d) { in nextChar()
324 if (firstByte >= 0xA1 && firstByte <= 0xfe) { in nextChar()
331 if (firstByte == 0x8e) { in nextChar()
344 if (firstByte == 0x8f) { in nextChar()
356 …System.out.println("Error " + Integer.toHexString(firstByte) + " " + Integer.toHexString(secondByt… in nextChar()
/external/jline/src/src/main/java/jline/
DWindowsTerminal.java457 byte firstByte; field in WindowsTerminal.ReplayPrefixOneCharInputStream
470 this.firstByte = (byte) recorded; in setInput()
485 if ((firstByte & (byte) 0xE0) == (byte) 0xC0) in setInputUTF8()
488 else if ((firstByte & (byte) 0xF0) == (byte) 0xE0) in setInputUTF8()
491 else if ((firstByte & (byte) 0xF8) == (byte) 0xF0) in setInputUTF8()
494 throw new IOException("invalid UTF-8 first byte: " + firstByte); in setInputUTF8()
504 return firstByte; in read()
DUnixTerminal.java371 byte firstByte; field in UnixTerminal.ReplayPrefixOneCharInputStream
384 this.firstByte = (byte) recorded; in setInput()
399 if ((firstByte & (byte) 0xE0) == (byte) 0xC0) in setInputUTF8()
402 else if ((firstByte & (byte) 0xF0) == (byte) 0xE0) in setInputUTF8()
405 else if ((firstByte & (byte) 0xF8) == (byte) 0xF0) in setInputUTF8()
408 throw new IOException("invalid UTF-8 first byte: " + firstByte); in setInputUTF8()
418 return firstByte; in read()
/external/walt/ios/WALT/
DMIDIClient.m119 const Byte firstByte = packet->data[0];
122 if (firstByte >= 0x80 && firstByte != MIDIMessageSysEx && firstByte != MIDIMessageSysExEnd) {
141 if (firstByte == MIDIMessageSysEx) {
145 } else if (firstByte < 0x80 || firstByte == MIDIMessageSysExEnd) {
/external/guava/guava/src/com/google/common/io/
DGwtWorkarounds.java118 int firstByte = read();
119 if (firstByte == -1) {
122 b[off] = (byte) firstByte;
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHpack.java321 int readInt(int firstByte, int prefixMask) throws IOException { in readInt() argument
322 int prefix = firstByte & prefixMask; in readInt()
345 int firstByte = readByte(); in readByteString() local
346 boolean huffmanDecode = (firstByte & 0x80) == 0x80; // 1NNNNNNN in readByteString()
347 int length = readInt(firstByte, PREFIX_7_BITS); in readByteString()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DAbstractParser.java229 int firstByte = input.read(); in parsePartialDelimitedFrom() local
230 if (firstByte == -1) { in parsePartialDelimitedFrom()
233 size = CodedInputStream.readRawVarint32(firstByte, input); in parsePartialDelimitedFrom()
DCodedInputStream.java673 final int firstByte = input.read(); in readRawVarint32() local
674 if (firstByte == -1) { in readRawVarint32()
677 return readRawVarint32(firstByte, input); in readRawVarint32()
686 final int firstByte, final InputStream input) throws IOException { in readRawVarint32() argument
687 if ((firstByte & 0x80) == 0) { in readRawVarint32()
688 return firstByte; in readRawVarint32()
691 int result = firstByte & 0x7f; in readRawVarint32()
DAbstractMessageLite.java309 final int firstByte = input.read(); in mergeDelimitedFrom() local
310 if (firstByte == -1) { in mergeDelimitedFrom()
313 final int size = CodedInputStream.readRawVarint32(firstByte, input); in mergeDelimitedFrom()
/external/lzma/C/
D7zArcIn.c195 Byte firstByte, mask; in ReadNumber() local
199 SZ_READ_BYTE(firstByte); in ReadNumber()
200 if ((firstByte & 0x80) == 0) in ReadNumber()
202 *value = firstByte; in ReadNumber()
206 if ((firstByte & 0x40) == 0) in ReadNumber()
208 *value = (((UInt32)firstByte & 0x3F) << 8) | v; in ReadNumber()
217 if ((firstByte & mask) == 0) in ReadNumber()
219 UInt64 highPart = (unsigned)firstByte & (unsigned)(mask - 1); in ReadNumber()
233 Byte firstByte; in SzReadNumber32() local
237 firstByte = *sd->Data; in SzReadNumber32()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DImageHeaderParser.java87 int firstByte = streamReader.getUInt8(); in getType() local
90 if (firstByte == EXIF_MAGIC_NUMBER >> 8) { in getType()
94 final int firstTwoBytes = firstByte << 8 & 0xFF00 | streamReader.getUInt8() & 0xFF; in getType()
/external/dng_sdk/source/
Ddng_iptc.cpp253 uint8 firstByte = stream.Get_uint8 (); in Parse() local
255 if (firstByte != 0x1C) break; in Parse()
339 uint8 firstByte = stream.Get_uint8 (); in Parse() local
341 if (firstByte != 0x1C) break; in Parse()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationIterator.java1041 int firstByte = 2;
1045 long primary = numericPrimary | ((firstByte + value) << 16);
1050 firstByte += numBytes;
1055 ((firstByte + value / 254) << 16) | ((2 + value % 254) << 8);
1060 firstByte += numBytes;
1068 primary |= (firstByte + value % 254) << 16;
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationIterator.java1043 int firstByte = 2;
1047 long primary = numericPrimary | ((firstByte + value) << 16);
1052 firstByte += numBytes;
1057 ((firstByte + value / 254) << 16) | ((2 + value % 254) << 8);
1062 firstByte += numBytes;
1070 primary |= (firstByte + value % 254) << 16;
/external/icu/icu4c/source/common/
Ducnv_lmb.c755 ulmbcs_byte_t firstByte; in LMBCSConversionWorker() local
764 firstByte = (ulmbcs_byte_t)(value >> ((bytesConverted - 1) * 8)); in LMBCSConversionWorker()
776 …U_ASSERT((firstByte <= ULMBCS_C0END) || (firstByte >= ULMBCS_C1START) || (group == ULMBCS_GRP_EXCE… in LMBCSConversionWorker()
789 if ( bytesConverted == 1 && firstByte < 0x20 ) in LMBCSConversionWorker()
/external/skia/src/core/
DSkValidatingReadBuffer.cpp251 uint8_t firstByte = this->peekByte(); in readFlattenable() local
257 if (firstByte) { in readFlattenable()
/external/lzma/CPP/7zip/Archive/7z/
D7zOut.cpp188 Byte firstByte = 0; in WriteNumber() local
195 firstByte |= Byte(value >> (8 * i)); in WriteNumber()
198 firstByte |= mask; in WriteNumber()
201 WriteByte(firstByte); in WriteNumber()
/external/fonttools/Lib/fontTools/ttLib/tables/
D_c_m_a_p.py339 for firstByte in range(256):
340 subHeadindex = subHeaderKeys[firstByte]
343 … if (firstByte < subHeader.firstCode) or (firstByte >= subHeader.firstCode + subHeader.entryCount):
346 charCode = firstByte
347 offsetIndex = firstByte - subHeader.firstCode
356 charCodeOffset = firstByte * 256 + subHeader.firstCode
/external/llvm/include/llvm/Support/
DConvertUTF.h175 unsigned getNumBytesForUTF8(UTF8 firstByte);
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DConvertUTF.h178 unsigned getNumBytesForUTF8(UTF8 firstByte);

12