NeBuild dev
|
Namespaces | |
namespace | json_literals |
Functions | |
nlohmann::json | operator""_json (const char *s, std::size_t n) |
user-defined string literal for JSON values | |
nlohmann::json::json_pointer | operator""_json_pointer (const char *s, std::size_t n) |
user-defined string literal for JSON pointer | |
TOML_ABI_NAMESPACE_BOOL (TOML_EXCEPTIONS, lit_ex, lit_noex) | |
TOML_NODISCARD TOML_ALWAYS_INLINE parse_result | operator""_toml (const char *str, size_t len) |
Parses TOML data from a string literal. | |
TOML_NODISCARD TOML_ALWAYS_INLINE path | operator""_tpath (const char *str, size_t len) |
Parses a TOML path from a string literal. | |
Variables | |
TOML_ABI_NAMESPACE_END | |
TOML_NODISCARD TOML_ALWAYS_INLINE parse_result literals::operator""_toml | ( | const char * | str, |
size_t | len | ||
) |
Parses TOML data from a string literal.
\detail \cpp using namespace toml::literals;
auto tbl = "a = 3"_toml; std::cout << tbl["a"] << "\n"; \ecpp
\out 3 \eout
str | The string data. Must be valid UTF-8. |
len | The string length. |
TOML_NODISCARD TOML_ALWAYS_INLINE path literals::operator""_tpath | ( | const char * | str, |
size_t | len | ||
) |
Parses a TOML path from a string literal.
\detail \cpp using namespace toml::literals;
auto path = "main.settings.devices[2]"_tpath; std::cout << path.parent_path() << "\n"; \ecpp
\out main.settings.devices \eout
str | The string data. |
len | The string length. |
literals::TOML_ABI_NAMESPACE_BOOL | ( | TOML_EXCEPTIONS | , |
lit_ex | , | ||
lit_noex | |||
) |
literals::TOML_ABI_NAMESPACE_END |