BloombergLP::balxml::TypesParserUtil::parse

Parse the specified input using the specified formattingMode.

Synopsis

Declared in <balxml_typesparserutil.h>

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

Description

Parse the specified input of the specified inputLength using the specified formattingMode and load the result into the specified result. Return 0 on success, and a non-zero value otherwise. The behavior is undefined unless the parameterized TYPE and the formattingMode combination is supported (supported combinations are listed in the component-level documentation).

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultparsed value
inputcharacter buffer to parse
inputLengthnumber of characters in input
formattingModeXML formatting mode to apply