|
CToon C++ 0.6.1
A C++ TOON/JSON serialization library
|
Classes | |
| class | document |
| class | error |
| class | mut_document |
| class | mut_value |
| class | parse_error |
| class | value |
| class | version |
| class | write_error |
| class | write_options |
| class | write_result |
Enumerations | |
| enum class | delimiter : uint32_t { COMMA = CTOON_DELIMITER_COMMA , TAB = CTOON_DELIMITER_TAB , PIPE = CTOON_DELIMITER_PIPE } |
| enum class | write_flag : uint32_t { NOFLAG = static_cast<uint32_t>(CTOON_WRITE_NOFLAG) , ESCAPE_UNICODE = static_cast<uint32_t>(CTOON_WRITE_ESCAPE_UNICODE) , ESCAPE_SLASHES = static_cast<uint32_t>(CTOON_WRITE_ESCAPE_SLASHES) , ALLOW_INF_AND_NAN = static_cast<uint32_t>(CTOON_WRITE_ALLOW_INF_AND_NAN) , INF_AND_NAN_AS_NULL = static_cast<uint32_t>(CTOON_WRITE_INF_AND_NAN_AS_NULL) , ALLOW_INVALID_UNICODE = static_cast<uint32_t>(CTOON_WRITE_ALLOW_INVALID_UNICODE) , LENGTH_MARKER = static_cast<uint32_t>(CTOON_WRITE_LENGTH_MARKER) , NEWLINE_AT_END = static_cast<uint32_t>(CTOON_WRITE_NEWLINE_AT_END) } |
| enum class | read_flag : uint32_t { NOFLAG = static_cast<uint32_t>(CTOON_READ_NOFLAG) , INSITU = static_cast<uint32_t>(CTOON_READ_INSITU) , STOP_WHEN_DONE = static_cast<uint32_t>(CTOON_READ_STOP_WHEN_DONE) , ALLOW_TRAILING_COMMAS = static_cast<uint32_t>(CTOON_READ_ALLOW_TRAILING_COMMAS) , ALLOW_COMMENTS = static_cast<uint32_t>(CTOON_READ_ALLOW_COMMENTS) , ALLOW_INF_AND_NAN = static_cast<uint32_t>(CTOON_READ_ALLOW_INF_AND_NAN) , NUMBER_AS_RAW = static_cast<uint32_t>(CTOON_READ_NUMBER_AS_RAW) , ALLOW_INVALID_UNICODE = static_cast<uint32_t>(CTOON_READ_ALLOW_INVALID_UNICODE) , BIGNUM_AS_RAW = static_cast<uint32_t>(CTOON_READ_BIGNUM_AS_RAW) , ALLOW_BOM = static_cast<uint32_t>(CTOON_READ_ALLOW_BOM) , ALLOW_EXT_NUMBER = static_cast<uint32_t>(CTOON_READ_ALLOW_EXT_NUMBER) , ALLOW_EXT_ESCAPE = static_cast<uint32_t>(CTOON_READ_ALLOW_EXT_ESCAPE) , ALLOW_EXT_WHITESPACE = static_cast<uint32_t>(CTOON_READ_ALLOW_EXT_WHITESPACE) , ALLOW_SINGLE_QUOTED_STR = static_cast<uint32_t>(CTOON_READ_ALLOW_SINGLE_QUOTED_STR) , ALLOW_UNQUOTED_KEY = static_cast<uint32_t>(CTOON_READ_ALLOW_UNQUOTED_KEY) } |
Functions | |
| write_flag | operator| (write_flag l, write_flag r) CTOON_NOEXCEPT |
| write_flag & | operator|= (write_flag &l, write_flag r) CTOON_NOEXCEPT |
| ctoon_write_flag | to_c (write_flag f) CTOON_NOEXCEPT |
| Convert to the C type for passing to C API. | |
| read_flag | operator| (read_flag l, read_flag r) CTOON_NOEXCEPT |
| read_flag & | operator|= (read_flag &l, read_flag r) CTOON_NOEXCEPT |
| ctoon_read_flag | to_c (read_flag f) CTOON_NOEXCEPT |
| Convert to the C type for passing to C API. | |
| document | parse (const char *toon, read_flag flags=read_flag::NOFLAG) |
| document | parse (const std::string &toon, read_flag flags=read_flag::NOFLAG) |
| document | parse_file (const char *path, read_flag flags=read_flag::NOFLAG) |
| mut_document | make_document () |
| write_result | to_string (const document &d, const write_options &o=write_options()) |
| write_result | to_string (const mut_document &d, const write_options &o=write_options()) |
|
strong |
|
strong |
|
strong |
|
inline |
Definition at line 805 of file ctoon.hpp.
References ctoon::mut_document::create().
|
inline |
|
inline |
|
inline |
Definition at line 796 of file ctoon.hpp.
References ctoon::document::parse().
|
inline |
Definition at line 799 of file ctoon.hpp.
References ctoon::document::parse().
|
inline |
Definition at line 802 of file ctoon.hpp.
References ctoon::document::parse_file().
|
inline |
|
inline |
Convert to the C type for passing to C API.
Definition at line 194 of file ctoon.hpp.
Referenced by ctoon::document::parse(), ctoon::document::parse_file(), ctoon::document::parse_indent(), and ctoon::write_options::to_c().
|
inline |
Definition at line 806 of file ctoon.hpp.
References ctoon::document::to_string().
|
inline |
Definition at line 807 of file ctoon.hpp.
References ctoon::mut_document::to_string().