File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ struct json_string_block {
1313 really_inline uint64_t string_start () const { return _quote & ~_in_string; }
1414 // Only characters inside the string (not including the quotes)
1515 really_inline uint64_t string_content () const { return _in_string & ~_quote; }
16- // Whether the entire block is strings, or not
17- really_inline bool all_string () { return _in_string == 0xFFFFFFFFFFFFFFFFULL ; }
1816 // Return a mask of whether the given characters are inside a string (only works on non-quotes)
1917 really_inline uint64_t non_quote_inside_string (uint64_t mask) const { return mask & _in_string; }
2018 // Return a mask of whether the given characters are inside a string (only works on non-quotes)
@@ -37,7 +35,6 @@ class json_string_scanner {
3735public:
3836 really_inline json_string_block next (const simd::simd8x64<uint8_t > in);
3937 really_inline error_code finish (bool streaming);
40- really_inline bool in_unclosed_string () { return prev_in_string; }
4138
4239private:
4340 // Intended to be defined by the implementation
@@ -133,7 +130,7 @@ really_inline json_string_block json_string_scanner::next(const simd::simd8x64<u
133130}
134131
135132really_inline error_code json_string_scanner::finish (bool streaming) {
136- if (in_unclosed_string () and (not streaming)) {
133+ if (prev_in_string and (not streaming)) {
137134 return UNCLOSED_STRING;
138135 }
139136 return SUCCESS;
You can’t perform that action at this time.
0 commit comments