[#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 the specified `inputString` for a sequence of characters representing digits in the specified `base`, consuming the maximum up to the optionally specified `maxNumDigits` that form a number whose value does not exceed the specified `maxValue`. Place into the specified `result` the extracted value. Optionally specify `remainder`, in which to store the remainder of the `inputString` immediately following the successfully parsed text, or the position at which a parse failure was detected. Return 0 on success, and a non‐zero value otherwise. The value of `result` is unchanged if a parse failure occurs. If `maxNumDigits` is not specified, it defaults to a number larger than the number of possible digits in an unsigned 64‐bit integer. The behavior is undefined unless `2 < = base` and `base <= 36` (i.e., bases where digits are representable by characters `[ 0 .. 9 ]`, `[ a .. z ]` or `[ A .. Z ]`). [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..._]# Same as the overload above for `parseUnsignedInteger`. [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..._]# Same as the preceding `parseUnsignedInteger` overload, also loading the unparsed suffix into `remainder`. [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..._]# Same as the overload above for `parseUnsignedInteger`. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#