Parse a bounded signed integer from a string, also returning the suffix.
Declared in <bdlb_numericparseutil.h>
static
int
parseSignedInteger(
bsls::Types::Int64* result,
std::string_view* remainder,
std::string_view const& inputString,
int base,
bsls::Types::Int64 const minValue,
bsls::Types::Int64 const maxValue);
Same as the overload above for parseSignedInteger.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | location to store the parsed value |
| remainder | unparsed suffix of inputString after a successful parse (unchanged on failure) |
| inputString | text to parse |
| base | numeric base in [2 .. 36] |
| minValue | lowest acceptable parsed value (must be negative) |
| maxValue | highest acceptable parsed value (must be positive) |