2020-01-04 14:21:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//# Note: most of these would be included transitively but
|
|
|
|
//# they're listed explicitly here because this file
|
|
|
|
//# is used as the source for generate_single_header.py.
|
|
|
|
|
|
|
|
#include "toml_common.h"
|
2020-01-11 21:15:24 +00:00
|
|
|
#include "toml_date_time.h"
|
2020-01-12 15:37:02 +00:00
|
|
|
#include "toml_print_to_stream.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
#include "toml_node.h"
|
|
|
|
#include "toml_value.h"
|
2020-01-22 21:29:46 +00:00
|
|
|
#include "toml_array.h"
|
|
|
|
#include "toml_table.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
#include "toml_node_view.h"
|
2020-01-11 21:15:24 +00:00
|
|
|
#include "toml_utf8.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
#include "toml_parser.h"
|
|
|
|
#include "toml_formatter.h"
|
2020-01-06 18:21:16 +00:00
|
|
|
#include "toml_default_formatter.h"
|
|
|
|
#include "toml_json_formatter.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
|
2020-02-18 21:29:59 +00:00
|
|
|
// macro hygiene
|
2020-01-04 14:21:38 +00:00
|
|
|
#if TOML_UNDEF_MACROS
|
|
|
|
#undef TOML_USE_STREAMS_FOR_FLOATS
|
2020-01-07 15:52:50 +00:00
|
|
|
#undef TOML_GCC_ATTR
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_PUSH_WARNINGS
|
2020-01-07 15:52:50 +00:00
|
|
|
#undef TOML_DISABLE_SWITCH_WARNINGS
|
|
|
|
#undef TOML_DISABLE_INIT_WARNINGS
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_DISABLE_ALL_WARNINGS
|
|
|
|
#undef TOML_POP_WARNINGS
|
|
|
|
#undef TOML_ALWAYS_INLINE
|
|
|
|
#undef TOML_ASSUME
|
|
|
|
#undef TOML_UNREACHABLE
|
|
|
|
#undef TOML_INTERFACE
|
|
|
|
#undef TOML_EMPTY_BASES
|
2020-01-07 15:52:50 +00:00
|
|
|
#undef TOML_CPP_VERSION
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_CPP
|
2020-01-22 21:29:46 +00:00
|
|
|
#undef TOML_MAY_THROW_UNLESS
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_MAY_THROW
|
|
|
|
#undef TOML_NO_DEFAULT_CASE
|
|
|
|
#undef TOML_CONSTEVAL
|
|
|
|
#undef TOML_LIKELY
|
|
|
|
#undef TOML_UNLIKELY
|
|
|
|
#undef TOML_NO_UNIQUE_ADDRESS
|
|
|
|
#undef TOML_NODISCARD_CTOR
|
2020-01-06 18:21:16 +00:00
|
|
|
#undef TOML_MAKE_VERSION
|
2020-01-04 14:21:38 +00:00
|
|
|
#undef TOML_LANG_EFFECTIVE_VERSION
|
|
|
|
#undef TOML_LANG_HIGHER_THAN
|
|
|
|
#undef TOML_LANG_AT_LEAST
|
|
|
|
#undef TOML_LANG_EXACTLY
|
|
|
|
#undef TOML_STRING_PREFIX_1
|
|
|
|
#undef TOML_STRING_PREFIX
|
|
|
|
#undef TOML_UNDEF_MACROS
|
2020-01-12 15:37:02 +00:00
|
|
|
#undef TOML_DOXYGEN
|
2020-02-20 21:08:20 +00:00
|
|
|
#undef TOML_RELOPS_REORDERING
|
|
|
|
#undef TOML_ASYMMETRICAL_EQUALITY_OPS
|
2020-02-23 11:13:18 +00:00
|
|
|
#undef TOML_INLINE_NS_EX
|
2020-02-26 23:28:20 +00:00
|
|
|
#undef TOML_INLINE_NS_CHAR_8
|
2020-02-22 14:10:32 +00:00
|
|
|
#undef TOML_START
|
2020-02-23 11:13:18 +00:00
|
|
|
#undef TOML_START_2
|
|
|
|
#undef TOML_START_1
|
2020-02-22 14:10:32 +00:00
|
|
|
#undef TOML_END
|
|
|
|
#undef TOML_IMPL_START
|
|
|
|
#undef TOML_IMPL_END
|
2020-01-04 14:21:38 +00:00
|
|
|
#endif
|
2020-02-18 21:29:59 +00:00
|
|
|
|
|
|
|
/// \mainpage toml++
|
|
|
|
///
|
2020-02-26 23:28:20 +00:00
|
|
|
/// \image html tomlplusplus-banner-small.png width=1280px
|
|
|
|
///
|
2020-02-20 21:08:20 +00:00
|
|
|
/// \tableofcontents
|
2020-02-18 21:29:59 +00:00
|
|
|
///
|
2020-02-20 21:08:20 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////
|
2020-02-18 21:29:59 +00:00
|
|
|
///
|
2020-02-20 21:08:20 +00:00
|
|
|
/// \section mainpage-features Features
|
2020-02-27 17:52:10 +00:00
|
|
|
/// - [TOML v0.5.0](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5.0.md), plus optional support for some
|
|
|
|
/// unreleased TOML features
|
2020-02-23 11:13:18 +00:00
|
|
|
/// - C++17 (plus some C++20 features where available, e.g. experimental support for char8_t strings)
|
2020-02-20 21:08:20 +00:00
|
|
|
/// - Proper UTF-8 handling (incl. BOM)
|
|
|
|
/// - Works with or without exceptions
|
|
|
|
/// - Doesn't require RTTI
|
2020-02-25 21:11:40 +00:00
|
|
|
/// - First-class support for serializing to JSON
|
2020-02-27 17:52:10 +00:00
|
|
|
/// - Tested on Clang, GCC and MSVC (VS2019)
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \section mainpage-adding-lib Adding toml++ to your project
|
2020-02-23 11:13:18 +00:00
|
|
|
/// It's header-only library so really all you have to do is clone
|
|
|
|
/// [the repository](https://github.com/marzer/tomlplusplus/) from GitHub and set your include paths.
|
|
|
|
/// There's some minor configuration you can do to customize some basic library functionality, but that's totally
|
|
|
|
/// optional. See the [README](https://github.com/marzer/tomlplusplus/blob/master/README.md) for more info.
|
|
|
|
///
|
2020-02-20 21:08:20 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \section mainpage-api-documentation API Documentation
|
2020-02-23 11:13:18 +00:00
|
|
|
/// You're looking at it! Browse the docs using the links at the top of the page.
|
|
|
|
/// You can search from anywhere by pressing the TAB key.
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \section mainpage-example Basic examples
|
|
|
|
///
|
|
|
|
///////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \subsection mainpage-example-parsing-files Parsing TOML files
|
|
|
|
/// toml++ works whether you have exceptions enabled or not. For the most part the usage is the same,
|
|
|
|
/// the main difference being how parsing errors are reported to the caller. When exceptions are enabled
|
2020-02-23 11:13:18 +00:00
|
|
|
/// a successful call to a parsing function simply returns a toml::table, whereas a failed call sees a toml::parse_error
|
|
|
|
/// thrown directly from the site of the error:
|
2020-02-18 21:29:59 +00:00
|
|
|
/// \cpp
|
|
|
|
/// #include <iostream>
|
2020-02-20 21:08:20 +00:00
|
|
|
/// #include <fstream> //required for parse_file()
|
2020-02-18 21:29:59 +00:00
|
|
|
/// #include <toml++/toml.h>
|
2020-02-20 21:08:20 +00:00
|
|
|
/// using namespace std::string_view_literals;
|
2020-02-18 21:29:59 +00:00
|
|
|
///
|
|
|
|
/// int main()
|
|
|
|
/// {
|
2020-02-20 21:08:20 +00:00
|
|
|
/// toml::table tbl;
|
|
|
|
/// try
|
|
|
|
/// {
|
|
|
|
/// tbl = toml::parse_file("configuration.toml");
|
|
|
|
/// }
|
|
|
|
/// catch (const toml::parse_error& err)
|
|
|
|
/// {
|
|
|
|
/// std::cerr
|
|
|
|
/// << "Error parsing file '"sv << *err.source().path
|
|
|
|
/// << "':\n"sv << err.description()
|
|
|
|
/// << "\n ("sv << err.source().begin << ")"sv
|
|
|
|
/// << std::endl;
|
|
|
|
/// return 1;
|
|
|
|
/// }
|
|
|
|
///
|
|
|
|
/// do_stuff_with_your_config(tbl);
|
|
|
|
/// return 0;
|
|
|
|
/// }
|
|
|
|
///
|
|
|
|
/// \ecpp
|
|
|
|
///
|
2020-02-23 11:13:18 +00:00
|
|
|
/// When exceptions are disabled parsing functions return a toml::parse_result instead and it is up to the caller
|
2020-02-20 21:08:20 +00:00
|
|
|
/// to check if parsing has been successful by examining the return value:
|
|
|
|
/// \cpp
|
|
|
|
/// #include <iostream>
|
|
|
|
/// #include <fstream> //required for parse_file()
|
|
|
|
/// #include <toml++/toml.h>
|
|
|
|
/// using namespace std::string_view_literals;
|
|
|
|
///
|
|
|
|
/// int main()
|
|
|
|
/// {
|
|
|
|
/// toml::parse_result tbl = toml::parse_file("configuration.toml");
|
|
|
|
/// if (!tbl)
|
|
|
|
/// {
|
|
|
|
/// std::cerr
|
|
|
|
/// << "Error parsing file '"sv << *tbl.error().source().path
|
|
|
|
/// << "':\n"sv << tbl.error().description()
|
|
|
|
/// << "\n ("sv << tbl.error().source().begin << ")"sv
|
|
|
|
/// << std::endl;
|
|
|
|
/// return 1;
|
|
|
|
/// }
|
|
|
|
///
|
|
|
|
/// do_stuff_with_your_config(tbl); //toml::parse_result is convertible to toml::table
|
|
|
|
/// return 0;
|
|
|
|
/// }
|
|
|
|
/// \ecpp
|
2020-02-22 14:10:32 +00:00
|
|
|
///
|
2020-02-25 21:11:40 +00:00
|
|
|
/// Instances of toml::parse_error can be printed directly to streams:
|
|
|
|
/// \cpp
|
|
|
|
/// try
|
|
|
|
/// {
|
|
|
|
/// auto tbl = toml::parse("enabled = trUe"sv); //fails; TOML booleans are case-sensitive
|
|
|
|
/// }
|
|
|
|
/// catch (const toml::parse_error & err)
|
|
|
|
/// {
|
|
|
|
/// std::cerr << "Parsing failed:\n"sv << err << std::endl;
|
|
|
|
/// return 1;
|
|
|
|
/// }
|
|
|
|
/// \ecpp
|
|
|
|
///
|
|
|
|
/// \out
|
|
|
|
/// Parsing failed:
|
|
|
|
/// Encountered unexpected character while parsing boolean; expected 'true', saw 'trU'
|
|
|
|
/// (error occurred at line 1, column 13)
|
|
|
|
/// \eout
|
|
|
|
///
|
|
|
|
/// If the default error formatting is not be suitable for your use-case you can access the error's
|
|
|
|
/// toml::source_region and description directly from the error object (as in the examples above).
|
|
|
|
///
|
2020-02-22 14:10:32 +00:00
|
|
|
/// \see
|
|
|
|
/// - toml::parse_file()
|
|
|
|
/// - toml::parse_result
|
2020-02-25 21:11:40 +00:00
|
|
|
/// - toml::parse_error
|
|
|
|
/// - toml::source_region
|
|
|
|
/// - toml::source_position
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////
|
|
|
|
///
|
2020-02-25 21:11:40 +00:00
|
|
|
/// \subsection mainpage-example-parsing-strings Parsing TOML directly from strings and streams
|
|
|
|
/// Strings and std::istreams can be read directly using toml::parse():
|
2020-02-20 21:08:20 +00:00
|
|
|
/// \cpp
|
|
|
|
/// #include <iostream>
|
2020-02-25 21:11:40 +00:00
|
|
|
/// #include <sstream>
|
2020-02-20 21:08:20 +00:00
|
|
|
/// #include <toml++/toml.h>
|
|
|
|
/// using namespace std::string_view_literals;
|
|
|
|
///
|
|
|
|
/// int main()
|
|
|
|
/// {
|
|
|
|
/// static constexpr auto source = R"(
|
|
|
|
/// [library]
|
|
|
|
/// name = "toml++"
|
|
|
|
/// version = "0.1.0"
|
|
|
|
/// authors = ["Mark Gillard <mark@notarealwebsite.com>"]
|
|
|
|
///
|
|
|
|
/// [dependencies]
|
|
|
|
/// cpp = 17
|
|
|
|
/// )"sv;
|
2020-02-25 21:11:40 +00:00
|
|
|
///
|
|
|
|
/// // parse directly from a string view:
|
|
|
|
/// {
|
|
|
|
/// auto tbl = toml::parse(source);
|
|
|
|
/// std::cout << tbl << std::endl;
|
|
|
|
/// }
|
|
|
|
///
|
|
|
|
/// // parse from a string stream:
|
|
|
|
/// {
|
|
|
|
/// std::stringstream ss{ std::string{ source } };
|
|
|
|
/// auto tbl = toml::parse(ss);
|
|
|
|
/// std::cout << tbl << std::endl;
|
|
|
|
/// }
|
|
|
|
///
|
2020-02-20 21:08:20 +00:00
|
|
|
/// return 0;
|
|
|
|
/// }
|
|
|
|
/// \ecpp
|
|
|
|
///
|
|
|
|
/// \out
|
|
|
|
/// [dependencies]
|
|
|
|
/// cpp = 17
|
|
|
|
///
|
|
|
|
/// [library]
|
|
|
|
/// authors = ["Mark Gillard <mark@notarealwebsite.com>"]
|
|
|
|
/// name = "toml++"
|
|
|
|
/// version = "0.1.0"
|
2020-02-25 21:11:40 +00:00
|
|
|
///
|
|
|
|
/// ... exactly as above, but twice
|
2020-02-20 21:08:20 +00:00
|
|
|
/// \eout
|
2020-02-25 21:11:40 +00:00
|
|
|
///
|
2020-02-22 14:10:32 +00:00
|
|
|
/// \see toml::parse()
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \subsection mainpage-example-manipulations Traversing and manipulating data
|
2020-02-26 23:28:20 +00:00
|
|
|
/// A TOML document is a tree of values, arrays and tables, represented as the toml::value, toml::array
|
|
|
|
/// and toml::table, respectively. All three inherit from toml::node, and can be easily accessed via
|
|
|
|
/// the toml::node_view:
|
2020-02-20 21:08:20 +00:00
|
|
|
/// \cpp
|
|
|
|
/// #include <iostream>
|
|
|
|
/// #include <toml++/toml.h>
|
|
|
|
/// using namespace std::string_view_literals;
|
|
|
|
///
|
|
|
|
/// int main()
|
|
|
|
/// {
|
|
|
|
/// static constexpr auto source = R"(
|
|
|
|
/// numbers = [ 1, 2, 3, "four", 5.0 ]
|
|
|
|
/// vegetables = [ "tomato", "onion", "mushroom", "lettuce" ]
|
|
|
|
/// minerals = [ "quartz", "iron", "copper", "diamond" ]
|
|
|
|
///
|
|
|
|
/// [animals]
|
|
|
|
/// cats = [ "tiger", "lion", "puma" ]
|
|
|
|
/// birds = [ "macaw", "pigeon", "canary" ]
|
|
|
|
/// fish = [ "salmon", "trout", "carp" ]
|
|
|
|
///
|
|
|
|
/// )"sv;
|
|
|
|
/// auto tbl = toml::parse(source);
|
|
|
|
///
|
2020-02-26 23:28:20 +00:00
|
|
|
/// // get a view of the element 'numbers'
|
2020-02-20 21:08:20 +00:00
|
|
|
/// auto numbers = tbl["numbers"];
|
|
|
|
/// std::cout << "table has 'numbers': "sv << !!numbers << std::endl;
|
2020-02-26 23:28:20 +00:00
|
|
|
/// std::cout << "numbers is a: "sv << numbers.type() << std::endl;
|
|
|
|
/// std::cout << "numbers: "sv << numbers << std::endl;
|
|
|
|
///
|
|
|
|
/// // get the underlying array object to do some more advanced stuff
|
|
|
|
/// if (auto arr = numbers.as_array())
|
2020-02-20 21:08:20 +00:00
|
|
|
/// {
|
2020-02-26 23:28:20 +00:00
|
|
|
/// for (auto& elem : *arr)
|
2020-02-20 21:08:20 +00:00
|
|
|
/// {
|
2020-02-26 23:28:20 +00:00
|
|
|
/// // visitation helps deal with the polymorphic nature of TOML data
|
2020-02-29 20:34:08 +00:00
|
|
|
/// elem.visit([](auto&& el) noexcept
|
2020-02-20 21:08:20 +00:00
|
|
|
/// {
|
2020-02-26 23:28:20 +00:00
|
|
|
/// if constexpr (toml::is_number<decltype(el)>)
|
|
|
|
/// (*el)++;
|
|
|
|
/// else if constexpr (toml::is_string<decltype(el)>)
|
|
|
|
/// el = "five"sv;
|
2020-02-20 21:08:20 +00:00
|
|
|
/// });
|
|
|
|
/// }
|
2020-02-26 23:28:20 +00:00
|
|
|
///
|
|
|
|
/// // arrays are very similar to std::vector
|
|
|
|
/// arr->push_back(7);
|
|
|
|
/// arr->emplace_back<toml::array>(8, 9);
|
|
|
|
/// std::cout << "numbers: "sv << numbers << std::endl;
|
2020-02-20 21:08:20 +00:00
|
|
|
/// }
|
|
|
|
///
|
2020-02-26 23:28:20 +00:00
|
|
|
/// // node-views can be chained to quickly query deeper
|
|
|
|
/// std::cout << "cats: "sv << tbl["animals"]["cats"] << std::endl;
|
|
|
|
/// std::cout << "fish[1]: "sv << tbl["animals"]["fish"][1] << std::endl;
|
|
|
|
///
|
|
|
|
/// // ...even if the element doesn't exist
|
|
|
|
/// std::cout << "dinosaurs: "sv << tbl["animals"]["dinosaurs"] << std::endl; //no dinosaurs :(
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
/// return 0;
|
|
|
|
/// }
|
|
|
|
/// \ecpp
|
|
|
|
///
|
|
|
|
/// \out
|
|
|
|
/// table has 'numbers': true
|
2020-02-26 23:28:20 +00:00
|
|
|
/// numbers is an: array
|
|
|
|
/// numbers: [1, 2, 3, "four", 5.0]
|
|
|
|
/// numbers: [2, 3, 4, "five", 6.0, 7, [8, 9]]
|
|
|
|
/// cats: ["tiger", "lion", "puma"]
|
|
|
|
/// fish[1]: "trout"
|
|
|
|
/// dinosaurs:
|
2020-02-20 21:08:20 +00:00
|
|
|
/// \eout
|
|
|
|
///
|
2020-02-22 14:10:32 +00:00
|
|
|
/// \see
|
|
|
|
/// - toml::node
|
2020-02-26 23:28:20 +00:00
|
|
|
/// - toml::node_view
|
|
|
|
/// - toml::value
|
2020-02-22 14:10:32 +00:00
|
|
|
/// - toml::array
|
|
|
|
/// - toml::table
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \subsection mainpage-example-serialization Serializing as TOML and JSON
|
|
|
|
/// \cpp
|
|
|
|
/// #include <iostream>
|
|
|
|
/// #include <toml++/toml.h>
|
|
|
|
///
|
|
|
|
/// int main()
|
|
|
|
/// {
|
2020-02-18 21:29:59 +00:00
|
|
|
/// auto tbl = toml::table{{
|
|
|
|
/// { "lib", "toml++" },
|
|
|
|
/// { "cpp", toml::array{ 17, 20, "and beyond" } },
|
|
|
|
/// { "toml", toml::array{ "0.5.0", "and beyond" } },
|
|
|
|
/// { "repo", "https://github.com/marzer/tomlplusplus/" },
|
|
|
|
/// { "author", toml::table{{
|
|
|
|
/// { "name", "Mark Gillard" },
|
|
|
|
/// { "github", "https://github.com/marzer" },
|
|
|
|
/// { "twitter", "https://twitter.com/marzer8789" }
|
|
|
|
/// }}
|
|
|
|
/// },
|
|
|
|
/// }};
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
/// std::cout << "###### TOML ######"sv << std::endl;
|
|
|
|
/// std::cout << tbl << std::endl << std::endl;
|
2020-02-18 21:29:59 +00:00
|
|
|
///
|
2020-02-20 21:08:20 +00:00
|
|
|
/// std::cout << "###### JSON ######"sv << std::endl;
|
|
|
|
/// std::cout << toml::json_formatter{ tbl } << std::endl;
|
2020-02-18 21:29:59 +00:00
|
|
|
/// return 0;
|
|
|
|
/// }
|
|
|
|
/// \ecpp
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
2020-02-18 21:29:59 +00:00
|
|
|
/// \out
|
2020-02-20 21:08:20 +00:00
|
|
|
/// ###### TOML ######
|
|
|
|
/// cpp = [17, 20, "and beyond"]
|
2020-02-18 21:29:59 +00:00
|
|
|
/// lib = "toml++"
|
|
|
|
/// repo = "https://github.com/marzer/tomlplusplus/"
|
2020-02-20 21:08:20 +00:00
|
|
|
/// toml = ["0.5.0", "and beyond"]
|
2020-02-18 21:29:59 +00:00
|
|
|
///
|
|
|
|
/// [author]
|
|
|
|
/// github = "https://github.com/marzer"
|
|
|
|
/// name = "Mark Gillard"
|
|
|
|
/// twitter = "https://twitter.com/marzer8789"
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
/// ###### JSON ######
|
|
|
|
/// {
|
|
|
|
/// "author" : {
|
|
|
|
/// "github" : "https://github.com/marzer",
|
|
|
|
/// "name" : "Mark Gillard",
|
|
|
|
/// "twitter" : "https://twitter.com/marzer8789"
|
|
|
|
/// },
|
|
|
|
/// "cpp" : [
|
|
|
|
/// 17,
|
|
|
|
/// 20,
|
|
|
|
/// "and beyond"
|
|
|
|
/// ],
|
|
|
|
/// "lib" : "toml++",
|
|
|
|
/// "repo" : "https://github.com/marzer/tomlplusplus/",
|
|
|
|
/// "toml" : [
|
|
|
|
/// "0.5.0",
|
|
|
|
/// "and beyond"
|
|
|
|
/// ]
|
|
|
|
/// }
|
2020-02-18 21:29:59 +00:00
|
|
|
/// \eout
|
2020-02-22 14:10:32 +00:00
|
|
|
/// \see
|
|
|
|
/// - toml::default_formatter
|
|
|
|
/// - toml::json_formatter
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \section mainpage-contributing Contributing
|
2020-02-25 21:11:40 +00:00
|
|
|
/// Contributions are very welcome! Either by [reporting issues](https://github.com/marzer/tomlplusplus/issues) or submitting pull requests.
|
|
|
|
/// If you wish to submit a pull request, please see [CONTRIBUTING](https://github.com/marzer/tomlplusplus/blob/master/CONTRIBUTING.md)
|
|
|
|
/// for all the details you need to get going.
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
///
|
|
|
|
/// \section mainpage-license License
|
|
|
|
///
|
2020-02-23 11:13:18 +00:00
|
|
|
/// toml++ is licensed under the terms of the MIT license - see
|
|
|
|
/// [LICENSE](https://github.com/marzer/tomlplusplus/blob/master/LICENSE).
|
2020-02-20 21:08:20 +00:00
|
|
|
///
|
2020-02-23 11:13:18 +00:00
|
|
|
/// UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's
|
|
|
|
/// 'Flexible and Economical UTF - 8 Decoder', which is also subject to the terms of the MIT license - see
|
|
|
|
/// [LICENSE-utf8-decoder](https://github.com/marzer/tomlplusplus/blob/master/LICENSE-utf8-decoder).
|
2020-02-26 23:28:20 +00:00
|
|
|
///
|
|
|
|
/// \m_class{m-note m-default}
|
|
|
|
///
|
|
|
|
/// If you're using the single-header version of the library you don't need to distribute these files;
|
|
|
|
/// their contents is included in the preamble at the top of the file.
|
2020-02-27 17:52:10 +00:00
|
|
|
///
|