We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc1ddcd commit 073ad0dCopy full SHA for 073ad0d
src/jsoncharutils.h
@@ -255,17 +255,6 @@ static inline uint32_t hex_to_u32_nocheck(
255
return v1 | v2 | v3 | v4;
256
}
257
258
-// returns true if the provided byte value is a
259
-// "continuing" UTF-8 value, that is, if it starts with
260
-// 0b10...
261
-static inline bool is_utf8_continuing(char c) {
262
- // in 2 complement's notation, values start at 0b10000 (-128)... and
263
- // go up to 0b11111 (-1)... so we want all values from -128 to -65 (which is 0b10111111)
264
- return ((signed char)c) <= -65;
265
-}
266
-
267
268
269
// given a code point cp, writes to c
270
// the utf-8 code, outputting the length in
271
// bytes, if the length is zero, the code point
0 commit comments