Home
last modified time | relevance | path

Searched refs:byte2 (Results 1 – 25 of 42) sorted by relevance

12

/third_party/json/test/src/
Dunit-unicode.cpp51 void check_utf8dump(bool success_expected, int byte1, int byte2, int byte3, int byte4);
53 void check_utf8dump(bool success_expected, int byte1, int byte2 = -1, int byte3 = -1, int byte4 = -… in check_utf8dump() argument
58 CAPTURE(byte2) in check_utf8dump()
64 if (byte2 != -1) in check_utf8dump()
66 json_string += std::string(1, static_cast<char>(byte2)); in check_utf8dump()
125 void check_utf8string(bool success_expected, int byte1, int byte2, int byte3, int byte4);
128 void check_utf8string(bool success_expected, int byte1, int byte2 = -1, int byte3 = -1, int byte4 =… in check_utf8string() argument
140 if (byte2 != -1) in check_utf8string()
142 CAPTURE(byte2) in check_utf8string()
143 json_string += std::string(1, static_cast<char>(byte2)); in check_utf8string()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java183 private static int incompleteStateFor(int byte1, int byte2) { in incompleteStateFor() argument
184 return (byte1 > (byte) 0xF4 || byte2 > (byte) 0xBF) ? MALFORMED : byte1 ^ (byte2 << 8); in incompleteStateFor()
187 private static int incompleteStateFor(int byte1, int byte2, int byte3) { in incompleteStateFor() argument
188 return (byte1 > (byte) 0xF4 || byte2 > (byte) 0xBF || byte3 > (byte) 0xBF) in incompleteStateFor()
190 : byte1 ^ (byte2 << 8) ^ (byte3 << 16); in incompleteStateFor()
476 byte byte2 = (byte) ~(state >> 8); in partialIsValidUtf8Default()
477 if (byte2 == 0) { in partialIsValidUtf8Default()
478 byte2 = buffer.get(index++); in partialIsValidUtf8Default()
480 return incompleteStateFor(byte1, byte2); in partialIsValidUtf8Default()
483 if (byte2 > (byte) 0xBF in partialIsValidUtf8Default()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dcollation.cpp80 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - step; in decTwoBytePrimaryByOneStep() local
82 if(byte2 < 4) { in decTwoBytePrimaryByOneStep()
83 byte2 += 251; in decTwoBytePrimaryByOneStep()
87 if(byte2 < 2) { in decTwoBytePrimaryByOneStep()
88 byte2 += 254; in decTwoBytePrimaryByOneStep()
92 return (basePrimary & 0xff000000) | ((uint32_t)byte2 << 16); in decTwoBytePrimaryByOneStep()
107 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - 1; in decThreeBytePrimaryByOneStep() local
109 if(byte2 < 4) { in decThreeBytePrimaryByOneStep()
110 byte2 = 0xfe; in decThreeBytePrimaryByOneStep()
114 if(byte2 < 2) { in decThreeBytePrimaryByOneStep()
[all …]
/third_party/icu/icu4c/source/i18n/
Dcollation.cpp80 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - step; in decTwoBytePrimaryByOneStep() local
82 if(byte2 < 4) { in decTwoBytePrimaryByOneStep()
83 byte2 += 251; in decTwoBytePrimaryByOneStep()
87 if(byte2 < 2) { in decTwoBytePrimaryByOneStep()
88 byte2 += 254; in decTwoBytePrimaryByOneStep()
92 return (basePrimary & 0xff000000) | ((uint32_t)byte2 << 16); in decTwoBytePrimaryByOneStep()
107 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - 1; in decThreeBytePrimaryByOneStep() local
109 if(byte2 < 4) { in decThreeBytePrimaryByOneStep()
110 byte2 = 0xfe; in decThreeBytePrimaryByOneStep()
114 if(byte2 < 2) { in decThreeBytePrimaryByOneStep()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dcollation.cpp80 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - step; in decTwoBytePrimaryByOneStep() local
82 if(byte2 < 4) { in decTwoBytePrimaryByOneStep()
83 byte2 += 251; in decTwoBytePrimaryByOneStep()
87 if(byte2 < 2) { in decTwoBytePrimaryByOneStep()
88 byte2 += 254; in decTwoBytePrimaryByOneStep()
92 return (basePrimary & 0xff000000) | ((uint32_t)byte2 << 16); in decTwoBytePrimaryByOneStep()
107 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - 1; in decThreeBytePrimaryByOneStep() local
109 if(byte2 < 4) { in decThreeBytePrimaryByOneStep()
110 byte2 = 0xfe; in decThreeBytePrimaryByOneStep()
114 if(byte2 < 2) { in decThreeBytePrimaryByOneStep()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dcollation.cpp80 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - step; in decTwoBytePrimaryByOneStep() local
82 if(byte2 < 4) { in decTwoBytePrimaryByOneStep()
83 byte2 += 251; in decTwoBytePrimaryByOneStep()
87 if(byte2 < 2) { in decTwoBytePrimaryByOneStep()
88 byte2 += 254; in decTwoBytePrimaryByOneStep()
92 return (basePrimary & 0xff000000) | ((uint32_t)byte2 << 16); in decTwoBytePrimaryByOneStep()
107 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - 1; in decThreeBytePrimaryByOneStep() local
109 if(byte2 < 4) { in decThreeBytePrimaryByOneStep()
110 byte2 = 0xfe; in decThreeBytePrimaryByOneStep()
114 if(byte2 < 2) { in decThreeBytePrimaryByOneStep()
[all …]
/third_party/flatbuffers/java/com/google/flatbuffers/
DUtf8.java163 byte byte1, byte byte2, char[] resultArr, int resultPos) in handleTwoBytes() argument
170 if (isNotTrailingByte(byte2)) { in handleTwoBytes()
173 resultArr[resultPos] = (char) (((byte1 & 0x1F) << 6) | trailingByteValue(byte2)); in handleTwoBytes()
177 byte byte1, byte byte2, byte byte3, char[] resultArr, int resultPos) in handleThreeBytes() argument
179 if (isNotTrailingByte(byte2) in handleThreeBytes()
181 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in handleThreeBytes()
183 || (byte1 == (byte) 0xED && byte2 >= (byte) 0xA0) in handleThreeBytes()
188 … (((byte1 & 0x0F) << 12) | (trailingByteValue(byte2) << 6) | trailingByteValue(byte3)); in handleThreeBytes()
192 byte byte1, byte byte2, byte byte3, byte byte4, char[] resultArr, int resultPos) in handleFourBytes() argument
194 if (isNotTrailingByte(byte2) in handleFourBytes()
[all …]
/third_party/libunwind/src/ia64/
Dunwind_decoder.h126 unsigned char byte1, byte2, abreg, x, ytreg; in unw_decode_x2() local
129 byte1 = *dp++; byte2 = *dp++; in unw_decode_x2()
132 ytreg = byte2; in unw_decode_x2()
144 unsigned char byte1, byte2, abreg, qp; in unw_decode_x3() local
147 byte1 = *dp++; byte2 = *dp++; in unw_decode_x3()
152 abreg = (byte2 & 0x7f); in unw_decode_x3()
164 unsigned char byte1, byte2, byte3, qp, abreg, x, ytreg; in unw_decode_x4() local
167 byte1 = *dp++; byte2 = *dp++; byte3 = *dp++; in unw_decode_x4()
171 abreg = (byte2 & 0x7f); in unw_decode_x4()
172 x = (byte2 >> 7) & 1; in unw_decode_x4()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DCollation.java516 int byte2 = ((int)(basePrimary >> 16) & 0xff) - step;
518 if(byte2 < 4) {
519 byte2 += 251;
523 if(byte2 < 2) {
524 byte2 += 254;
528 return (basePrimary & 0xff000000L) | (byte2 << 16);
545 int byte2 = ((int)(basePrimary >> 16) & 0xff) - 1;
547 if(byte2 < 4) {
548 byte2 = 0xfe;
552 if(byte2 < 2) {
[all …]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollation.java514 int byte2 = ((int)(basePrimary >> 16) & 0xff) - step;
516 if(byte2 < 4) {
517 byte2 += 251;
521 if(byte2 < 2) {
522 byte2 += 254;
526 return (basePrimary & 0xff000000L) | (byte2 << 16);
543 int byte2 = ((int)(basePrimary >> 16) & 0xff) - 1;
545 if(byte2 < 4) {
546 byte2 = 0xfe;
550 if(byte2 < 2) {
[all …]
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DUtf8.kt117 byte2: Byte, in handleTwoBytes()
126 if (isNotTrailingByte(byte2)) { in handleTwoBytes()
129 resultArr[resultPos] = (byte1.toInt() and 0x1F shl 6 or trailingByteValue(byte2)).toChar() in handleTwoBytes()
134 byte2: Byte, in handleThreeBytes()
139 if (isNotTrailingByte(byte2) || // overlong? 5 most significant bits must not all be zero in handleThreeBytes()
140 byte1 == 0xE0.toByte() && byte2 < 0xA0.toByte() || // check for illegal surrogate codepoints in handleThreeBytes()
141 byte1 == 0xED.toByte() && byte2 >= 0xA0.toByte() || in handleThreeBytes()
147 …(byte1.toInt() and 0x0F shl 12 or (trailingByteValue(byte2) shl 6) or trailingByteValue(byte3)).to… in handleThreeBytes()
152 byte2: Byte, in handleFourBytes()
158 if (isNotTrailingByte(byte2) || // Check that 1 <= plane <= 16. Tricky optimized form of: in handleFourBytes()
[all …]
/third_party/gettext/gettext-tools/src/
Dfilter-sr-latin.c286 #define IS_UPPERCASE_CYRILLIC(byte1,byte2) \ argument
287 (((byte1) == 0xd0 && (unsigned char) ((byte2) - 0x80) < 0x30) \
288 || ((byte1) == 0xd3 && ((byte2) == 0xa2 || (byte2) == 0xae)))
/third_party/FreeBSD/sys/cam/scsi/
Dscsi_all.h145 uint8_t byte2; member
153 uint8_t byte2; member
162 uint8_t byte2; member
192 uint8_t byte2; member
/third_party/mesa3d/src/mesa/drivers/x11/
Dxfonts.c141 char2b.byte2 = (c & 0xff); in fill_bitmap()
167 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
180 byte2 = which & 0xff; in isvalid()
182 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
183 (fs->max_char_or_byte2 < byte2) || in isvalid()
197 (byte2 - fs->min_char_or_byte2); in isvalid()
/third_party/mesa3d/src/glx/
Dxfont.c147 char2b.byte2 = (c & 0xff); in fill_bitmap()
173 int byte1 = 0, byte2 = 0; in isvalid() local
186 byte2 = which & 0xff; in isvalid()
188 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
189 (fs->max_char_or_byte2 < byte2) || in isvalid()
203 (byte2 - fs->min_char_or_byte2); in isvalid()
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
Dglx_usefont.c143 char2b.byte2 = (c & 0xff); in fill_bitmap()
169 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
182 byte2 = which & 0xff; in isvalid()
184 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
185 (fs->max_char_or_byte2 < byte2) || in isvalid()
199 (byte2 - fs->min_char_or_byte2); in isvalid()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_crc32.c738 uint8_t byte0, byte1, byte2, byte3; in sctp_finalize_crc32c() local
750 byte2 = (result >> 16) & 0x000000ff; in sctp_finalize_crc32c()
752 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in sctp_finalize_crc32c()
/third_party/flutter/skia/tests/
DSkVxTest.cpp19 using byte2 = skvx::Vec< 2,uint8_t>; typedef
55 static_assert(sizeof(byte2) == 2, ""); in DEF_TEST()
176 REPORTER_ASSERT(r, all(mull(byte2 (x), byte2 (y)) == xy)); in DEF_TEST()
/third_party/node/test/common/
Dinspector-helper.js99 let byte2 = 0x80;
104 byte2 = 0x80 + bodyLen;
106 byte2 = 0xFE;
110 byte2 = 0xFF;
115 wsHeaderBuf.writeUInt8(byte2, 1);
/third_party/libphonenumber/cpp/src/phonenumbers/utf/
Dunicodetext.cc454 uint8 byte2 = static_cast<uint8>(it_[1]); in operator *() local
457 | (byte2 & 0x3F); in operator *()
462 | ((byte2 & 0x3F) << 6) in operator *()
467 | ((byte2 & 0x3F) << 12) in operator *()
/third_party/gstreamer/gstplugins_bad/sys/decklink/linux/
DLinuxCOM.h35 unsigned char byte2; member
/third_party/skia/tests/
DSkVxTest.cpp20 using byte2 = skvx::Vec< 2,uint8_t>; typedef
42 static_assert(sizeof(byte2) == 2, ""); in DEF_TEST()
156 REPORTER_ASSERT(r, all(mull(byte2 (x), byte2 (y)) == xy)); in DEF_TEST()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_iptc.cpp278 uint32 byte2 = stream.Get_uint8 (); in Parse() local
282 byte2 == 0x25 && in Parse()
/third_party/harfbuzz/src/
Dhb-cff-interp-common.hh91 #define Make_OpCode_ESC(byte2) ((op_code_t)(OpCode_ESC_Base + (byte2))) argument
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-cff-interp-common.hh91 #define Make_OpCode_ESC(byte2) ((op_code_t)(OpCode_ESC_Base + (byte2))) argument

12