Function toml_parser::QuoteText#

Function Documentation#

std::string toml_parser::QuoteText(const std::string &rssText, EQuoteRequest eQuoteRequest = EQuoteRequest::smart_text)#

If the provided key contains characters which are not allowed to be used in a bare-key, add quotes to the key and use escape characters if applicable.

Parameters:
  • rssText[in] The text to (optionally) quote.

  • eQuoteRequest[in] The quotation method requested.

Returns:

The quoted key (if applicable); otherwise the key without quotes.