Class: etk::RegExpNode
Synopsis:
+ RegExpNode (void);
+ ~RegExpNode (void);
+ int32_t generate (const std::vector<char32_t> & _data);
+ bool parse (const CLASS_TYPE & _data,
int64_t _currentPos,
int64_t _lenMax,
int64_t & _findLen);
+ void display (uint32_t _level);
+ void setMult (uint32_t _min,
uint32_t _max);
# uint32_t getMultMin (void);
# uint32_t getMultMax (void);
Description:
/** * @brief Node Elements for every-one */Detail:
etk::RegExpNode ()
RegExpNode(void);
Constructor
etk::~RegExpNode ()
~RegExpNode(void);
Destructor
generate ()
int32_t generate(const std::vector<char32_t> & _data);
Generate the regular expression with the current "converted string"
Parameter [input]: _data Property of the regexp
Return: the number of element used
parse ()
bool parse(const CLASS_TYPE & _data,
int64_t _currentPos,
int64_t _lenMax,
int64_t & _findLen);
Parse the current node
Parameter [input]: _data Data to parse (start pointer / or class that have access with operator[] )
Parameter [input]: _currentPos Current parsing position.
Parameter [input]: _lenMax Maximum position to parse the data (can be not hte end of the data due to the fact sometime we want to parse sub section).
Parameter [input]: _findLen number of element parssed
Return: true : Find something
Return: false : Find nothing
display ()
void display(uint32_t _level);
Display the current node properties
Parameter [input]: level of the node
setMult ()
void setMult(uint32_t _min,
uint32_t _max);
Set the multiplicity of this Node.
Parameter [input]: _min The minimum appear time.
Parameter [input]: _max The maximum appear time.
getMultMin ()
uint32_t getMultMin(void);
Get the minimum multiplicity.
Return: The minimum appear availlable.
getMultMax ()
uint32_t getMultMax(void);
Get the maximum multiplicity.
Return: The maximum appear availlable.
etk::RegExpNode ()
RegExpNode(void);
Constructor
etk::~RegExpNode ()
~RegExpNode(void);
Destructor
generate ()
int32_t generate(const std::vector<char32_t> & _data);
Generate the regular expression with the current "converted string"
-
Parameter [input]: _data Property of the regexp
Return: the number of element used
parse ()
bool parse(const CLASS_TYPE & _data, int64_t _currentPos, int64_t _lenMax, int64_t & _findLen);
Parse the current node
-
Parameter [input]: _data Data to parse (start pointer / or class that have access with operator[] )
Parameter [input]: _currentPos Current parsing position.
Parameter [input]: _lenMax Maximum position to parse the data (can be not hte end of the data due to the fact sometime we want to parse sub section).
Parameter [input]: _findLen number of element parssed
Return: true : Find something
Return: false : Find nothing
display ()
void display(uint32_t _level);
Display the current node properties
-
Parameter [input]: level of the node
setMult ()
void setMult(uint32_t _min, uint32_t _max);
Set the multiplicity of this Node.
-
Parameter [input]: _min The minimum appear time.
Parameter [input]: _max The maximum appear time.
getMultMin ()
uint32_t getMultMin(void);
Get the minimum multiplicity.
-
Return: The minimum appear availlable.
getMultMax ()
uint32_t getMultMax(void);
Get the maximum multiplicity.
-
Return: The maximum appear availlable.