|
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) | |
| 构造函数 | |
| unique_ptr< toml_table > | parse () |
| 执行解析 | |
| optional< unique_ptr< toml_table > > | try_parse () |
| 尝试执行解析 | |
|
inlineexplicit |
构造函数
| text | 待解析的TOML文本 |
初始化解析器,创建空的根表格。
在文件 toml_parser.hpp 第 352 行定义.
引用了 make_unique(), move() , 以及 size().
| unique_ptr< toml_table > toml_parser::parse | ( | ) |
| optional< unique_ptr< toml_table > > toml_parser::try_parse | ( | ) |
尝试执行解析
如果解析成功返回包含根表格的optional, 如果解析失败返回空的optional。