156#if TOML_ENABLE_WINDOWS_COMPAT
236#if TOML_HAS_CHAR8 && TOML_ENABLE_WINDOWS_COMPAT
350 return parse(std::string_view{ str, len });
377 parse_result operator"" _toml(
const char8_t* str,
size_t len)
379 return parse(std::u8string_view{ str, len });
The result of a parsing operation.
Definition parse_result.hpp:53
#define TOML_CALLCONV
Calling convention to apply to exported free/static functions. \detail Not defined by default (let th...
Definition preprocessor.hpp:1134
#define TOML_EXCEPTIONS
Sets whether the library uses exceptions to report parsing failures. \detail Defaults to 1 or 0 accor...
Definition preprocessor.hpp:1126
#define TOML_EXPORTED_FREE_FUNCTION
An 'export' annotation to add to free functions. \detail Not defined by default.
Definition preprocessor.hpp:988
TOML_ABI_NAMESPACE_END
Definition parser.hpp:384
TOML_NAMESPACE_START
Definition parser.hpp:15
TOML_NODISCARD TOML_EXPORTED_FREE_FUNCTION parse_result TOML_CALLCONV parse_file(std::string_view file_path)
Parses a TOML document from a file.
Definition parser.inl:3449
TOML_ABI_NAMESPACE_END
Definition parser.hpp:320
TOML_NODISCARD TOML_EXPORTED_FREE_FUNCTION parse_result TOML_CALLCONV parse(std::string_view doc, std::string_view source_path={})
Parses a TOML document from a string view.
Definition parser.inl:3427
TOML_NAMESPACE_END
Definition parser.hpp:387
#define TOML_ABI_NAMESPACE_BOOL(cond, T, F)
Definition preprocessor.hpp:1323
#define TOML_NODISCARD
Definition preprocessor.hpp:439
#define TOML_ALWAYS_INLINE
Definition preprocessor.hpp:405