1 | #ifndef SIMDJSON_INTERNAL_JSONCHARUTILS_TABLES_H |
2 | #define SIMDJSON_INTERNAL_JSONCHARUTILS_TABLES_H |
3 | |
4 | #include "simdjson/common_defs.h" |
5 | |
6 | #ifdef JSON_TEST_STRINGS |
7 | void found_string(const uint8_t *buf, const uint8_t *parsed_begin, |
8 | const uint8_t *parsed_end); |
9 | void found_bad_string(const uint8_t *buf); |
10 | #endif |
11 | |
12 | namespace simdjson { |
13 | namespace internal { |
14 | // structural chars here are |
15 | // they are { 0x7b } 0x7d : 0x3a [ 0x5b ] 0x5d , 0x2c (and NULL) |
16 | // we are also interested in the four whitespace characters |
17 | // space 0x20, linefeed 0x0a, horizontal tab 0x09 and carriage return 0x0d |
18 | |
19 | extern SIMDJSON_DLLIMPORTEXPORT const bool structural_or_whitespace_negated[256]; |
20 | extern SIMDJSON_DLLIMPORTEXPORT const bool structural_or_whitespace[256]; |
21 | extern SIMDJSON_DLLIMPORTEXPORT const uint32_t digit_to_val32[886]; |
22 | |
23 | } // namespace internal |
24 | } // namespace simdjson |
25 | |
26 | #endif // SIMDJSON_INTERNAL_JSONCHARUTILS_TABLES_H |
27 | |