10#include <nlohmann/json.hpp>
35 string_ops::trim_whitespace_left(
sexp_str);
39 return parsing::consume_c_string<'\''>(
sexp_str).second;
46 return nlohmann::json(
",");
52 if (result ==
"true")
return true;
53 if (result ==
"false")
return false;
54 if (result ==
"null")
return nullptr;
62 string_ops::trim_whitespace_left(
sexp_str);
72 string_ops::trim_whitespace_left(
sexp_str);
82 string_ops::trim_whitespace_left(
sexp_str);
87 string_ops::trim_whitespace_left(
sexp_str);
93 nlohmann::json result = nlohmann::json::array();
94 string_ops::trim_whitespace_left(
sexp_str);
98 string_ops::trim_whitespace_left(
sexp_str);
106 string_ops::trim_whitespace_left(
sexp_str);
constexpr auto whitespace_chars
All characters that match ascii::isspace.
constexpr auto bit_count
Equal to the number of bits in the type.
auto from_chars(std::string_view str, T &value, const int base=10) noexcept
A version of std::from_chars that takes a std::string_view as the first argument.
char consume(std::string_view &str)
Consumes and returns the first character in the str, or \0 if no more characters.
std::string_view consume_until_any(std::string_view &str, ARGS &&... args)
Consumes characters from the beginning of str until one is equal to any in the parameter pack,...