Skip to main content

parse_c_int

Function parse_c_int 

Source
pub(crate) fn parse_c_int(text: &str) -> Option<i32>
Expand description

Parses an integer as std::stoi(s, &parsed, 0) does (leading whitespace, optional sign, 0x hex or leading-0 octal), requiring the whole string to be consumed and the value to fit an int.