mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-22 07:38:07 +08:00
feat: update codes to v4
This commit is contained in:
42
src/parser.cpp
Normal file
42
src/parser.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
#include <toml11/parser.hpp>
|
||||
#include <toml11/types.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
||||
|
||||
namespace toml
|
||||
{
|
||||
|
||||
template result<basic_value<type_config>, std::vector<error_info>> try_parse<type_config>(std::vector<unsigned char>, std::string, spec);
|
||||
template result<basic_value<type_config>, std::vector<error_info>> try_parse<type_config>(std::istream&, std::string, spec);
|
||||
template result<basic_value<type_config>, std::vector<error_info>> try_parse<type_config>(std::string, spec);
|
||||
template result<basic_value<type_config>, std::vector<error_info>> try_parse<type_config>(FILE*, std::string, spec);
|
||||
template result<basic_value<type_config>, std::vector<error_info>> try_parse_str<type_config>(std::string, spec, cxx::source_location);
|
||||
|
||||
template basic_value<type_config> parse<type_config>(std::vector<unsigned char>, std::string, spec);
|
||||
template basic_value<type_config> parse<type_config>(std::istream&, std::string, spec);
|
||||
template basic_value<type_config> parse<type_config>(std::string, spec);
|
||||
template basic_value<type_config> parse<type_config>(FILE*, std::string, spec);
|
||||
template basic_value<type_config> parse_str<type_config>(std::string, spec, cxx::source_location);
|
||||
|
||||
template result<basic_value<ordered_type_config>, std::vector<error_info>> try_parse<ordered_type_config>(std::vector<unsigned char>, std::string, spec);
|
||||
template result<basic_value<ordered_type_config>, std::vector<error_info>> try_parse<ordered_type_config>(std::istream&, std::string, spec);
|
||||
template result<basic_value<ordered_type_config>, std::vector<error_info>> try_parse<ordered_type_config>(std::string, spec);
|
||||
template result<basic_value<ordered_type_config>, std::vector<error_info>> try_parse<ordered_type_config>(FILE*, std::string, spec);
|
||||
template result<basic_value<ordered_type_config>, std::vector<error_info>> try_parse_str<ordered_type_config>(std::string, spec, cxx::source_location);
|
||||
|
||||
template basic_value<ordered_type_config> parse<ordered_type_config>(std::vector<unsigned char>, std::string, spec);
|
||||
template basic_value<ordered_type_config> parse<ordered_type_config>(std::istream&, std::string, spec);
|
||||
template basic_value<ordered_type_config> parse<ordered_type_config>(std::string, spec);
|
||||
template basic_value<ordered_type_config> parse<ordered_type_config>(FILE*, std::string, spec);
|
||||
template basic_value<ordered_type_config> parse_str<ordered_type_config>(std::string, spec, cxx::source_location);
|
||||
|
||||
#if defined(TOML11_HAS_FILESYSTEM)
|
||||
template cxx::enable_if_t<std::is_same<std::filesystem::path, std::filesystem::path>::value, result<basic_value<type_config>, std::vector<error_info>>> try_parse<type_config, std::filesystem::path>(const std::filesystem::path&, spec);
|
||||
template cxx::enable_if_t<std::is_same<std::filesystem::path, std::filesystem::path>::value, result<basic_value<ordered_type_config>, std::vector<error_info>>> try_parse<ordered_type_config, std::filesystem::path>(const std::filesystem::path&, spec);
|
||||
template cxx::enable_if_t<std::is_same<std::filesystem::path, std::filesystem::path>::value, basic_value<type_config> > parse <type_config, std::filesystem::path>(const std::filesystem::path&, spec);
|
||||
template cxx::enable_if_t<std::is_same<std::filesystem::path, std::filesystem::path>::value, basic_value<ordered_type_config> > parse <ordered_type_config, std::filesystem::path>(const std::filesystem::path&, spec);
|
||||
#endif // filesystem
|
||||
|
||||
} // toml
|
Reference in New Issue
Block a user