parseDouble overloads
Synopses
Declared in <bdlb_numericparseutil.h>
Parse the specified inputString for a sequence of characters matching the production rule <DOUBLE> (see {Grammar Production Rules}) 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. Return zero on success, and a non‐zero value otherwise. The value of result is unchanged if a parse failure occurs unless it is a range error (value ERANGE from <cerrno>). In case of ERANGE return value result will be set to zero on underflow and infinity in case of overflow, with the appropriate sign. The behavior is undefined unless the current numeric locale is the "C" locale, such that strcmp(setlocale(LC_NUMERIC, 0), "C") == 0. For more information see {Floating Point Values}.
static
int
parseDouble(
double* result,
std::string_view const& inputString);
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.
static
int
parseDouble(
double* result,
std::string_view* remainder,
std::string_view const& inputString);
Created with MrDocs