mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
feat: update codes to v4
This commit is contained in:
5
src/color.cpp
Normal file
5
src/color.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/color_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/comments.cpp
Normal file
5
src/comments.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/comments_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
15
src/context.cpp
Normal file
15
src/context.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <toml11/context.hpp>
|
||||
#include <toml11/types.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
||||
|
||||
namespace toml
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
template class context<::toml::type_config>;
|
||||
template class context<::toml::ordered_type_config>;
|
||||
} // detail
|
||||
} // toml
|
5
src/datetime.cpp
Normal file
5
src/datetime.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/datetime_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/error_info.cpp
Normal file
5
src/error_info.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/error_info_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/format.cpp
Normal file
5
src/format.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/format_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/literal.cpp
Normal file
5
src/literal.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/literal_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/location.cpp
Normal file
5
src/location.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/location_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
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
|
5
src/region.cpp
Normal file
5
src/region.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/region_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/scanner.cpp
Normal file
5
src/scanner.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/scanner_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
40
src/serializer.cpp
Normal file
40
src/serializer.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#include <toml11/serializer.hpp>
|
||||
#include <toml11/types.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
||||
|
||||
namespace toml
|
||||
{
|
||||
struct type_config;
|
||||
struct ordered_type_config;
|
||||
|
||||
template std::string
|
||||
format<type_config>(const basic_value<type_config>&, const spec);
|
||||
|
||||
template std::string
|
||||
format<type_config>(const typename basic_value<type_config>::key_type& k,
|
||||
const basic_value<type_config>& v, const spec);
|
||||
|
||||
template std::string
|
||||
format<type_config>(const std::vector<typename basic_value<type_config>::key_type>& ks,
|
||||
const basic_value<type_config>& v, const spec s);
|
||||
|
||||
template std::string
|
||||
format<ordered_type_config>(const basic_value<ordered_type_config>&, const spec);
|
||||
|
||||
template std::string
|
||||
format<ordered_type_config>(const typename basic_value<ordered_type_config>::key_type& k,
|
||||
const basic_value<ordered_type_config>& v, const spec);
|
||||
|
||||
template std::string
|
||||
format<ordered_type_config>(const std::vector<typename basic_value<ordered_type_config>::key_type>& ks,
|
||||
const basic_value<ordered_type_config>& v, const spec s);
|
||||
|
||||
namespace detail
|
||||
{
|
||||
template class serializer<::toml::type_config>;
|
||||
template class serializer<::toml::ordered_type_config>;
|
||||
} // detail
|
||||
} // toml
|
37
src/skip.cpp
Normal file
37
src/skip.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include <toml11/parser.hpp>
|
||||
#include <toml11/skip.hpp>
|
||||
#include <toml11/types.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
||||
|
||||
namespace toml
|
||||
{
|
||||
|
||||
namespace detail
|
||||
{
|
||||
template bool skip_whitespace <type_config>(location& loc, const context<type_config>&);
|
||||
template bool skip_empty_lines <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_comment_block <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_empty_or_comment_lines<type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_string_like <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_array_like <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_inline_table_like <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_value <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_key_value_pair <type_config>(location& loc, const context<type_config>&);
|
||||
template void skip_until_next_table <type_config>(location& loc, const context<type_config>&);
|
||||
|
||||
template bool skip_whitespace <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template bool skip_empty_lines <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_comment_block <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_empty_or_comment_lines<ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_string_like <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_array_like <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_inline_table_like <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_value <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_key_value_pair <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
template void skip_until_next_table <ordered_type_config>(location& loc, const context<ordered_type_config>&);
|
||||
|
||||
} // detail
|
||||
} // toml
|
5
src/source_location.cpp
Normal file
5
src/source_location.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/source_location_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
5
src/syntax.cpp
Normal file
5
src/syntax.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/syntax_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
12
src/types.cpp
Normal file
12
src/types.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <toml11/value.hpp>
|
||||
#include <toml11/types.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
||||
|
||||
namespace toml
|
||||
{
|
||||
template class basic_value<type_config>;
|
||||
template class basic_value<ordered_type_config>;
|
||||
} // toml
|
5
src/value_t.cpp
Normal file
5
src/value_t.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <toml11/impl/value_t_impl.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
Reference in New Issue
Block a user