Function toml_parser::SplitNodeKey(const CTokenRange&)#
Defined in File miscellaneous.h
Function Documentation#
-
std::pair<std::reference_wrapper<const CToken>, CTokenRange> toml_parser::SplitNodeKey(const CTokenRange &rrangeKeyPath)#
Split the node key contained in the token range in a first node key and the rest of the node key (if available). Separators are the dot, for table separation and [] index for array separation.
- Parameters:
rrangeKeyPath – [in] Reference to the token range ccontaining the tokens representing the key path.
- Returns:
Pair of string containing the first key (unquoted) and the rest of the key string (still quoted) if applicable. If no key is available, will be a reference to two empty strings. The dot and the indexing markers will not be part of the returned token.