[#BloombergLP-bdlb-NumericParseUtil-parseUnsignedInteger-0d5] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NumericParseUtil.adoc[NumericParseUtil]::parseUnsignedInteger :relfileprefix: ../../../ :mrdocs: `parseUnsignedInteger` overloads == Synopses Declared in `<bdlb_numericparseutil.h>` Parse an unsigned integer not exceeding `maxValue` from a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-0d4.adoc[parseUnsignedInteger]( xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* result, std::string_view const& inputString, int base, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] const maxValue); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-0d4.adoc[_» more..._]# Parse an unsigned integer with a digit‐count limit from a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-08.adoc[parseUnsignedInteger]( xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* result, std::string_view const& inputString, int base, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] const maxValue, int maxNumDigits); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-08.adoc[_» more..._]# Parse a bounded unsigned integer from a string, also returning the suffix. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-05.adoc[parseUnsignedInteger]( xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* result, std::string_view* remainder, std::string_view const& inputString, int base, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] const maxValue); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-05.adoc[_» more..._]# Parse a digit‐limited unsigned integer from a string, also returning the suffix. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-07.adoc[parseUnsignedInteger]( xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* result, std::string_view* remainder, std::string_view const& inputString, int base, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] const maxValue, int maxNumDigits); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseUnsignedInteger-07.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | 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 | *remainder* | unparsed suffix of `inputString` after a successful parse (unchanged on failure) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#