| 1 | #ifndef SIMDJSON_JSONIOUTIL_H |
| 2 | #define SIMDJSON_JSONIOUTIL_H |
| 3 | |
| 4 | #include "simdjson/common_defs.h" |
| 5 | #include "simdjson/padded_string.h" |
| 6 | |
| 7 | namespace simdjson { |
| 8 | |
| 9 | #if SIMDJSON_EXCEPTIONS |
| 10 | #ifndef SIMDJSON_DISABLE_DEPRECATED_API |
| 11 | [[deprecated("Use padded_string::load() instead" )]] |
| 12 | inline padded_string get_corpus(const char *path) { |
| 13 | return padded_string::load(filename: path); |
| 14 | } |
| 15 | #endif // SIMDJSON_DISABLE_DEPRECATED_API |
| 16 | #endif // SIMDJSON_EXCEPTIONS |
| 17 | |
| 18 | } // namespace simdjson |
| 19 | |
| 20 | #endif // SIMDJSON_JSONIOUTIL_H |
| 21 | |