1#ifndef NEFORCE_CORE_FILE_ENV_ENV_PARSER_HPP__
2#define NEFORCE_CORE_FILE_ENV_ENV_PARSER_HPP__
15NEFORCE_BEGIN_NAMESPACE__
58 void skip_whitespace()
noexcept;
65 void skip_line()
noexcept;
71 char current()
const noexcept;
78 char peek(
size_t offset = 1)
const noexcept;
84 bool eof()
const noexcept;
98 bool is_comment_line(
const string& line)
const;
105 bool is_blank_line(
const string& line)
const;
126 string parse_unquoted_value(
const string& line,
size_t& pos)
const;
136 string parse_single_quoted_value(
const string& line,
size_t& pos)
const;
146 string parse_double_quoted_value(
const string& line,
size_t& pos)
const;
154 void parse_line(
const string& line)
const;
164 text_(_NEFORCE
move(text)),
193NEFORCE_END_NAMESPACE__
optional< unique_ptr< env_document > > try_parse()
尝试执行解析
unique_ptr< env_document > parse()
执行解析
env_parser(string text) noexcept
构造函数
constexpr void advance(Iterator &i, Distance n)
将迭代器前进指定距离
constexpr Iterator2 move(Iterator1 first, Iterator1 last, Iterator2 result) noexcept(noexcept(inner::__move_aux(first, last, result)))
移动范围元素
NEFORCE_ALWAYS_INLINE_INLINE bool name(char *buffer, size_t size)
获取当前线程名称
NEFORCE_CONSTEXPR20 unique_ptr< T > make_unique(Args &&... args)
创建unique_ptr