Quick Links: |
#include <balxml_typesparserutil.h>
Static Public Member Functions | |
template<class TYPE > | |
static int | parse (TYPE *result, const char *input, int inputLength, int formattingMode) |
template<class TYPE > | |
static int | parseBase64 (TYPE *result, const char *input, int inputLength) |
template<class TYPE > | |
static int | parseDecimal (TYPE *result, const char *input, int inputLength) |
template<class TYPE > | |
static int | parseDefault (TYPE *result, const char *input, int inputLength) |
template<class TYPE > | |
static int | parseHex (TYPE *result, const char *input, int inputLength) |
template<class TYPE > | |
static int | parseList (TYPE *result, const char *input, int inputLength) |
template<class TYPE > | |
static int | parseText (TYPE *result, const char *input, int inputLength) |
This struct
contains functions for parsing input strings using various XML formatting modes.
See Component balxml_typesparserutil
static int balxml::TypesParserUtil::parse | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength, | |||
int | formattingMode | |||
) | [static] |
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).
static int balxml::TypesParserUtil::parseBase64 | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength | |||
) | [static] |
Parse the specified input
of the specified inputLength
using bdlat_FormattingMode::e_BASE64
and load the result into the specified result
. Return 0 on success, and a non-zero value otherwise.
static int balxml::TypesParserUtil::parseDecimal | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength | |||
) | [static] |
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.
static int balxml::TypesParserUtil::parseDefault | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength | |||
) | [static] |
Parse the specified input
of the specified inputLength
using bdlat_FormattingMode::e_DEFAULT
and load the result into the specified result
. Return 0 on success, and a non-zero value otherwise.
static int balxml::TypesParserUtil::parseHex | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength | |||
) | [static] |
Parse the specified input
of the specified inputLength
using bdlat_FormattingMode::e_HEX
and load the result into the specified result
. Return 0 on success, and a non-zero value otherwise.
static int balxml::TypesParserUtil::parseList | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength | |||
) | [static] |
Parse the specified input
of the specified inputLength
using bdlat_FormattingMode::e_LIST
and load the result into the specified result
. Return 0 on success, and a non-zero value otherwise.
static int balxml::TypesParserUtil::parseText | ( | TYPE * | result, | |
const char * | input, | |||
int | inputLength | |||
) | [static] |
Parse the specified input
of the specified inputLength
using bdlat_FormattingMode::e_TEXT
and load the result into the specified result
. Return 0 on success, and a non-zero value otherwise.