1 #ifndef SIMDJSON_FALLBACK_STRINGPARSING_DEFS_H
2 #define SIMDJSON_FALLBACK_STRINGPARSING_DEFS_H
4 #ifndef SIMDJSON_CONDITIONAL_INCLUDE
5 #include "simdjson/fallback/base.h"
13 struct backslash_and_quote {
15 static constexpr uint32_t BYTES_PROCESSED = 1;
16 simdjson_inline
static backslash_and_quote copy_and_find(
const uint8_t *src, uint8_t *dst);
18 simdjson_inline
bool has_quote_first() {
return c ==
'"'; }
19 simdjson_inline
bool has_backslash() {
return c ==
'\\'; }
20 simdjson_inline
int quote_index() {
return c ==
'"' ? 0 : 1; }
21 simdjson_inline
int backslash_index() {
return c ==
'\\' ? 0 : 1; }
26 simdjson_inline backslash_and_quote backslash_and_quote::copy_and_find(
const uint8_t *src, uint8_t *dst) {
The top level simdjson namespace, containing everything the library provides.