Parse an unsigned integer with a digit-count limit from a string.
Declared in <bdlb_numericparseutil.h>
static
int
parseUnsignedInteger(
bsls::Types::Uint64* result,
std::string_view const& inputString,
int base,
bsls::Types::Uint64 const maxValue,
int maxNumDigits);
Same as the overload above for parseUnsignedInteger.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | location to store the parsed value |
| inputString | text to parse |
| base | numeric base in [2 .. 36] |
| maxValue | highest acceptable parsed value |
| maxNumDigits | maximum number of digit characters to consume |