[#BloombergLP-bdlb-NumericParseUtil-parseInt-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NumericParseUtil.adoc[NumericParseUtil]::parseInt :relfileprefix: ../../../ :mrdocs: `parseInt` overloads == Synopses Declared in `<bdlb_numericparseutil.h>` Parse an `int` from the leading characters of a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseInt-02.adoc[parseInt]( int* result, std::string_view const& inputString, int base = 10); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseInt-02.adoc[_» more..._]# Parse an `int` from a string, also returning the unparsed suffix. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseInt-0d.adoc[parseInt]( int* result, std::string_view* remainder, std::string_view const& inputString, int base = 10); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseInt-0d.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]` (default 10) | *remainder* | unparsed suffix of `inputString` after a successful parse (unchanged on failure) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#