|
Vince's CSV Parser
|
Internal JSON serialization helpers for row-like CSV data. More...
#include <cstring>#include <stdexcept>#include <string>#include <unordered_map>#include <vector>#include "common.hpp"#include "csv_exceptions.hpp"#include "data_type.hpp"Go to the source code of this file.
Classes | |
| class | csv::internals::JsonConverter |
Namespaces | |
| namespace | csv |
| The all encompassing namespace. | |
Functions | |
| CSV_CONST const char * | csv::internals::json_escape_sequence (unsigned char c) noexcept |
| std::size_t | csv::internals::json_extra_space (csv::string_view s) noexcept |
| void | csv::internals::append_json_escaped (std::string &out, csv::string_view s) noexcept |
| std::string | csv::internals::json_escape_string (csv::string_view s) noexcept |
| CSV_CONST bool | csv::internals::is_ascii_space (char c) noexcept |
| void | csv::internals::append_json_number (std::string &out, csv::string_view value) noexcept |
| Append a numeric field as a JSON number. | |
| bool | csv::internals::append_json_hex_integer (std::string &out, csv::string_view value) |
| JSON has no hexadecimal literal, so write 0x-prefixed integers in decimal. | |
Internal JSON serialization helpers for row-like CSV data.
Definition in file json_converter.hpp.
|
inlinenoexcept |
Definition at line 64 of file json_converter.hpp.
|
inline |
JSON has no hexadecimal literal, so write 0x-prefixed integers in decimal.
Definition at line 143 of file json_converter.hpp.
|
inlinenoexcept |
Append a numeric field as a JSON number.
data_type() accepts surrounding whitespace, a '+' sign, leading zeros, and a '.' without a digit on one side, none of which JSON allows.
Definition at line 105 of file json_converter.hpp.
|
inlinenoexcept |
Definition at line 96 of file json_converter.hpp.
|
inlinenoexcept |
Definition at line 34 of file json_converter.hpp.
|
inlinenoexcept |
Definition at line 89 of file json_converter.hpp.
|
inlinenoexcept |
Definition at line 50 of file json_converter.hpp.