parse_to_closing_single_quote

Defined in header: <orcus/parser_global.hpp>

const char *orcus::parse_to_closing_single_quote(const char *p, std::size_t max_length)

Starting from the opening single quote position, parse string all the way to the closing quote. Two single-quote characters (‘’) will be interpreted as encoded one single-quote character.

Parameters:
  • p – it should point to the opening single quote character.

  • max_length – maximum length to parse.

Returns:

address of the character immediately after the closing quote, or nullptr in case no closing quote is found.