Function toml_parser::SplitNodeKey(const std::string&)#

Function Documentation#

std::pair<std::string, std::string> toml_parser::SplitNodeKey(const std::string &rssKeyPath)#

Split the node key 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:

rssKeyPath[in] Reference to the string containing 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 first string.