BloombergLP::bdlb::NumericParseUtil::parseUint64

Parse a 64-bit unsigned integer from a string, also returning the suffix.

Synopsis

Declared in <bdlb_numericparseutil.h>

static
int
parseUint64(
    bsls::Types::Uint64* result,
    std::string_view* remainder,
    std::string_view const& inputString,
    int base = 10);

Description

Same as the overload above for parseUint64.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultlocation to store the parsed value
remainderunparsed suffix of inputString after a successful parse (unchanged on failure)
inputStringtext to parse
basenumeric base in [2 .. 36] (default 10)