BloombergLP::bdlb::NumericParseUtil

This struct provides a namespace for a suite of stateless procedures that perform parsing functionality for numbers.

Synopsis

Declared in <bdlb_numericparseutil.h>

struct NumericParseUtil;

Type Aliases

NameDescription
size_type Shorter name for readability.

Static Member Functions

NameDescription
characterToDigit Determine whether the specified character represents a digit in the specified base; return the numeric equivalent if so, and -1 otherwise. The behavior is undefined if either character or base is 0 and 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]).
parseDouble parseDouble overloads
parseInt parseInt overloads
parseInt64 parseInt64 overloads
parseShort parseShort overloads
parseSignedInteger parseSignedInteger overloads
parseUint parseUint overloads
parseUint64 parseUint64 overloads
parseUnsignedInteger parseUnsignedInteger overloads
parseUshort parseUshort overloads