ADTF  3.18.2
cRegularExpressionArg

Regular expression argument class. More...

Public Member Functions

 cRegularExpressionArg ()
 Empty constructor so we can declare arrays of cRegularExpressionArg.
 
 cRegularExpressionArg (fnRegExpParser pParser, tVoid *pData)
 Copy constructor. More...
 
tVoid Set (fnRegExpParser pParser, tVoid *pData)
 Assign parser and data. More...
 
tVoidGetData () const
 Retrieve arguments. More...
 
fnRegExpParser GetParser () const
 Retrieve the parser. More...
 
 cRegularExpressionArg (tChar *p)
 CTR. More...
 
 cRegularExpressionArg (cString *p)
 CTR. More...
 
 cRegularExpressionArg (cStringPiece *p)
 CTR. More...
 
 cRegularExpressionArg (tVoid *pRef)
 CTR. More...
 
tBool Parse (const tChar *str, tInt n) const
 Parse the given string. More...
 

Private Member Functions

 AEVREGEXP_DECLARE_INTEGER_PARSER (tInt8)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tUInt8)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tInt16)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tUInt16)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tInt32)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tUInt32)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tInt64)
 
 AEVREGEXP_DECLARE_INTEGER_PARSER (tUInt64)
 

Static Private Member Functions

static tBool parse_null (const tChar *str, tInt n, tVoid *dest)
 
static tBool parse_tChar (const tChar *str, tInt n, tVoid *dest)
 
static tBool parse_tFloat32 (const tChar *str, tInt n, tVoid *dest)
 
static tBool parse_tFloat64 (const tChar *str, tInt n, tVoid *dest)
 
static tBool parse_stdstring (const tChar *str, tInt n, tVoid *dest)
 
static tBool parse_string (const tChar *str, tInt n, tVoid *dest)
 
static tBool parse_stringpiece (const tChar *str, tInt n, tVoid *dest)
 
static tBool A_UTILS_DEPRECATED() parse_int (const tChar *str, tInt n, tVoid *dest)
 

Private Attributes

tVoidarg_
 
fnRegExpParser parser_
 

Detailed Description

Regular expression argument class.

Definition at line 421 of file regularexpression_helper.h.

Constructor & Destructor Documentation

◆ cRegularExpressionArg() [1/5]

cRegularExpressionArg ( fnRegExpParser  pParser,
tVoid pData 
)
inline

Copy constructor.

Parameters
pParser[in] Parser.
pData[in] Data.

Definition at line 472 of file regularexpression_helper.h.

◆ cRegularExpressionArg() [2/5]

cRegularExpressionArg ( tChar p)
inline

CTR.

Parameters
[in]pargument as tChar.

Definition at line 545 of file regularexpression_helper.h.

◆ cRegularExpressionArg() [3/5]

cRegularExpressionArg ( cString p)
inline

CTR.

Parameters
p[in] argument as cString.

Definition at line 552 of file regularexpression_helper.h.

◆ cRegularExpressionArg() [4/5]

CTR.

Parameters
p[in] argument as cStringPiece.

Definition at line 559 of file regularexpression_helper.h.

◆ cRegularExpressionArg() [5/5]

cRegularExpressionArg ( tVoid pRef)
inline

CTR.

Parameters
pRef[in] argument as tVoid.

Definition at line 566 of file regularexpression_helper.h.

Member Function Documentation

◆ GetData()

tVoid* GetData ( ) const
inline

Retrieve arguments.

Returns
Arguments.

Definition at line 496 of file regularexpression_helper.h.

◆ GetParser()

fnRegExpParser GetParser ( ) const
inline

Retrieve the parser.

Returns
The parser.

Definition at line 502 of file regularexpression_helper.h.

◆ Parse()

tBool Parse ( const tChar str,
tInt  n 
) const
inline

Parse the given string.

Parameters
str[in] String to parse.
n[in] Length.
Returns
True, if parsing is successful.

Definition at line 580 of file regularexpression_helper.h.

◆ Set()

tVoid Set ( fnRegExpParser  pParser,
tVoid pData 
)
inline

Assign parser and data.

Parameters
pParser[in] Parser.
pData[in] Data.
Returns
tVoid

Definition at line 485 of file regularexpression_helper.h.