1 #ifndef SIMDJSON_FALLBACK_STRINGPARSING_H
2 #define SIMDJSON_FALLBACK_STRINGPARSING_H
4 #include "simdjson/base.h"
7 namespace SIMDJSON_IMPLEMENTATION {
11 struct backslash_and_quote {
13 static constexpr uint32_t BYTES_PROCESSED = 1;
14 simdjson_inline
static backslash_and_quote copy_and_find(
const uint8_t *src, uint8_t *dst);
16 simdjson_inline
bool has_quote_first() {
return c ==
'"'; }
17 simdjson_inline
bool has_backslash() {
return c ==
'\\'; }
18 simdjson_inline
int quote_index() {
return c ==
'"' ? 0 : 1; }
19 simdjson_inline
int backslash_index() {
return c ==
'\\' ? 0 : 1; }
24 simdjson_inline backslash_and_quote backslash_and_quote::copy_and_find(
const uint8_t *src, uint8_t *dst) {
We want to support argument-dependent lookup (ADL).