BloombergLP::balxml::TypesParserUtil::parseDecimal

Parse the specified input using bdlat_FormattingMode::e_DEC.

Synopsis

Declared in <balxml_typesparserutil.h>

template<class TYPE>
static
int
parseDecimal(
    TYPE* result,
    char const* input,
    int inputLength);

Description

Parse the specified input of the specified inputLength using bdlat_FormattingMode::e_DEC and load the result into the specified result. Return 0 on success, and a non-zero value otherwise.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultparsed value
inputcharacter buffer to parse
inputLengthnumber of characters in input