17 public std::map<AString, AString>
24 cNameValueParser(
const char * a_Data,
size_t a_Size,
bool a_AllowsKeyOnly =
true);
27 void Parse(
const char * a_Data,
size_t a_Size);
AString m_CurrentValue
Buffer for the current Value;.
Parsing the space in front of the next key.
Just parsed a Double-quote sign after the Equal sign.
The parser has already been instructed to finish and doesn't expect any more data.
Just parsed the = sign after a name.
The parser has encountered an invalid input; further parsing is skipped.
Currently adding more chars to the key in m_CurrentKey.
bool Finish(void)
Notifies the parser that no more data will be coming.
bool IsFinished(void) const
Returns true if the parser expects no more data.
AString m_CurrentKey
Buffer for the current Key.
Just parsed a raw value without a quote.
eState m_State
The current state of the parser.
bool m_AllowsKeyOnly
If true, the parser will accept keys without an equal sign and the value.
Space after m_CurrentKey.
void Parse(const char *a_Data, size_t a_Size)
Parses the data given.
Just parsed a Single-quote sign after the Equal sign.
bool IsValid(void) const
Returns true if the data parsed so far was valid.
cNameValueParser(bool a_AllowsKeyOnly=true)
Creates an empty parser.
Just finished parsing the value, waiting for semicolon or data end.