Vince's CSV Parser
Loading...
Searching...
No Matches
json_converter.hpp File Reference

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
 

Detailed Description

Internal JSON serialization helpers for row-like CSV data.

Definition in file json_converter.hpp.

Function Documentation

◆ append_json_escaped()

void csv::internals::append_json_escaped ( std::string &  out,
csv::string_view  s 
)
inlinenoexcept

Definition at line 64 of file json_converter.hpp.

◆ json_escape_sequence()

CSV_CONST const char * csv::internals::json_escape_sequence ( unsigned char  c)
inlinenoexcept

Definition at line 34 of file json_converter.hpp.

◆ json_escape_string()

std::string csv::internals::json_escape_string ( csv::string_view  s)
inlinenoexcept

Definition at line 89 of file json_converter.hpp.

◆ json_extra_space()

std::size_t csv::internals::json_extra_space ( csv::string_view  s)
inlinenoexcept

Definition at line 50 of file json_converter.hpp.