Parse a bounded unsigned integer from a string, also returning the suffix.
Synopsis
Declared in <bdlb_numericparseutil.h>
static
int
parseUnsignedInteger(
bsls::Types::Uint64* result,
std::string_view* remainder,
std::string_view const& inputString,
int base,
bsls::Types::Uint64 const maxValue);
Description
Same as the preceding parseUnsignedInteger overload, also loading the unparsed suffix into remainder.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
result |
location to store the parsed value |
remainder |
unparsed suffix of |
inputString |
text to parse |
base |
numeric base in |
maxValue |
highest acceptable parsed value |
Created with MrDocs