|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
toml配置解析器 更多...
#include <toml_parser.hpp>
Public 成员函数 | |
| toml_parser (string text) noexcept | |
| 构造函数 | |
| unique_ptr< toml_table > | parse () |
| 执行解析 | |
| optional< unique_ptr< toml_table > > | try_parse () |
| 尝试执行解析 | |
|
inlineexplicitnoexcept |
| unique_ptr< toml_table > toml_parser::parse | ( | ) |
| optional< unique_ptr< toml_table > > toml_parser::try_parse | ( | ) |
尝试执行解析
如果解析成功返回包含根表格的optional, 如果解析失败返回空的optional。