[#BloombergLP-bdlb-NumericParseUtil-parseShort-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NumericParseUtil.adoc[NumericParseUtil]::parseShort :relfileprefix: ../../../ :mrdocs: `parseShort` overloads == Synopses Declared in `<bdlb_numericparseutil.h>` Parse the specified `inputString` for the maximal sequence of characters forming a valid <SHORT> (see {Grammar Production Rules}) in the optionally specified `base` or in base 10 if `base` is not specified, and place into the specified `result` the corresponding 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. If the parsed number is outside of the `[SHRT_MIN .. SHRT_MAX]` range the `result` will be the longest number that does not over/underflow and `remainder` will start at the first digit that would make the number too large/small. Return zero on success, and a non‐zero value otherwise. The value of `result` is unchanged if a parse failure occurs. The behavior is undefined unless `2 <= base` and `base <= 36` (i.e., bases where digits are representable by characters in the range [`0`‐`9`], [`a`‐`z`]or [`A`‐`Z`]). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseShort-03.adoc[parseShort]( short* result, std::string_view const& inputString, int base = 10); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseShort-03.adoc[_» more..._]# Same as the overload not taking `remainder`, but store in the specified `remainder` the remainder of the `inputString` immediately following the successfully parsed text, or the position at which a parse failure was detected. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlb/NumericParseUtil/parseShort-01.adoc[parseShort]( short* result, std::string_view* remainder, std::string_view const& inputString, int base = 10); ---- [.small]#xref:BloombergLP/bdlb/NumericParseUtil/parseShort-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#