#include <balxml_typesparserutil.h>
|
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.
◆ parse()
template<class TYPE >
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).
◆ parseBase64()
template<class TYPE >
int balxml::TypesParserUtil::parseBase64 |
( |
TYPE * |
result, |
|
|
const char * |
input, |
|
|
int |
inputLength |
|
) |
| |
|
inlinestatic |
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.
◆ parseDecimal()
template<class TYPE >
int balxml::TypesParserUtil::parseDecimal |
( |
TYPE * |
result, |
|
|
const char * |
input, |
|
|
int |
inputLength |
|
) |
| |
|
inlinestatic |
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.
◆ parseDefault()
template<class TYPE >
int balxml::TypesParserUtil::parseDefault |
( |
TYPE * |
result, |
|
|
const char * |
input, |
|
|
int |
inputLength |
|
) |
| |
|
inlinestatic |
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.
◆ parseHex()
template<class TYPE >
int balxml::TypesParserUtil::parseHex |
( |
TYPE * |
result, |
|
|
const char * |
input, |
|
|
int |
inputLength |
|
) |
| |
|
inlinestatic |
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.
◆ parseList()
template<class TYPE >
int balxml::TypesParserUtil::parseList |
( |
TYPE * |
result, |
|
|
const char * |
input, |
|
|
int |
inputLength |
|
) |
| |
|
inlinestatic |
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.
◆ parseText()
template<class TYPE >
int balxml::TypesParserUtil::parseText |
( |
TYPE * |
result, |
|
|
const char * |
input, |
|
|
int |
inputLength |
|
) |
| |
|
inlinestatic |
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.
The documentation for this struct was generated from the following file: