parse_integer
Defined in header: <orcus/parser_global.hpp>
-
const char *orcus::parse_integer(const char *p, const char *p_end, long &value)
Parse a decimal number string into a signed integer value.
Note
Use of this function should be eventually replaced with std::from_chars() once it becomes available.
- Parameters:
p – pointer to the first character to start parsing from.
p_end – pointer to the first character not allowed to parse.
value – output parameter to assign the matched value to.
- Returns:
pointer to the first non-matching character.