TODO: https://dev.stenway.com/SML/Examples.html.
More...
TODO: https://dev.stenway.com/SML/Examples.html.
- Copyright
- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
◆ consume_array()
nlohmann::json ghassanpl::formats::wilson::consume_array |
( |
std::string_view & |
wilson_str, |
|
|
char |
closing_char = ']' |
|
) |
| -> nlohmann::json |
|
inline |
◆ consume_object()
nlohmann::json ghassanpl::formats::wilson::consume_object |
( |
std::string_view & |
wilson_str, |
|
|
char |
closing_char = '}' |
|
) |
| -> nlohmann::json |
|
inline |
◆ consume_string_literal()
std::string ghassanpl::formats::wilson::consume_string_literal |
( |
std::string_view & |
_str | ) |
-> std::string |
|
inline |
Consumes a string literal returning a string value.
Definition at line 70 of file wilson.h.
◆ consume_string_value()
std::string ghassanpl::formats::wilson::consume_string_value |
( |
std::string_view & |
str | ) |
-> std::string |
|
inline |
Consumes a word or a string literal returning a string value.
Definition at line 81 of file wilson.h.
◆ consume_value()
nlohmann::json ghassanpl::formats::wilson::consume_value |
( |
std::string_view & |
wilson_str | ) |
-> nlohmann::json |
|
inline |
◆ consume_word_or_string()
nlohmann::json ghassanpl::formats::wilson::consume_word_or_string |
( |
std::string_view & |
str | ) |
-> nlohmann::json |
|
inline |
Consumes: a word, returning a string/bool/null value; or a "string literal", returning a string value.
Definition at line 94 of file wilson.h.
◆ load_file()
nlohmann::json ghassanpl::formats::wilson::load_file |
( |
std::filesystem::path const & |
from, |
|
|
std::error_code & |
ec |
|
) |
| |
|
inline |
◆ output()
void ghassanpl::formats::wilson::output |
( |
OUTFUNC && |
out, |
|
|
nlohmann::json const & |
value |
|
) |
| |
◆ output_to_stream()
void ghassanpl::formats::wilson::output_to_stream |
( |
std::ostream & |
strm, |
|
|
nlohmann::json const & |
value |
|
) |
| |
|
inline |
◆ parse()
auto ghassanpl::formats::wilson::parse |
( |
std::string_view |
wilson_str | ) |
-> nlohmann::json |
|
inline |
◆ parse_array()
auto ghassanpl::formats::wilson::parse_array |
( |
std::string_view |
wilson_str | ) |
-> nlohmann::json |
|
inline |
◆ parse_object()
auto ghassanpl::formats::wilson::parse_object |
( |
std::string_view |
wilson_str, |
|
|
char |
closing_char = '}' |
|
) |
| -> nlohmann::json |
|
inline |
◆ parse_string_literal()
auto ghassanpl::formats::wilson::parse_string_literal |
( |
std::string_view |
wilson_str | ) |
-> std::string |
|
inline |
Parses a string literal as a string value.
Definition at line 210 of file wilson.h.
◆ parse_string_value()
auto ghassanpl::formats::wilson::parse_string_value |
( |
std::string_view |
wilson_str | ) |
-> std::string |
|
inline |
Parses a word or a string literal a string value.
Definition at line 205 of file wilson.h.
◆ parse_word_or_string()
auto ghassanpl::formats::wilson::parse_word_or_string |
( |
std::string_view |
wilson_str | ) |
-> nlohmann::json |
|
inline |
Parses: a word as a string value or bool/null value; a "string literal" as a string value.
Definition at line 200 of file wilson.h.
◆ to_string()
std::string ghassanpl::formats::wilson::to_string |
( |
nlohmann::json const & |
value | ) |
|
|
inline |
◆ try_load_file()
nlohmann::json ghassanpl::formats::wilson::try_load_file |
( |
std::filesystem::path const & |
from, |
|
|
nlohmann::json const & |
or_json = json::empty_json |
|
) |
| |
|
inline |