Class: etk::RegExp
Synopsis:
+ RegExp (const std::u32string & _exp);
+ RegExp (const std::string & _exp);
+ ~RegExp (void);
+ void setRegExp (const std::string & _exp);
+ void setRegExp (const std::u32string & _regexp);
+ std::string getRegExp (void);
+ const std::u32string & getURegExp (void);
+ bool getStatus (void);
+ bool process (const CLASS_TYPE & _SearchIn,
int64_t _startPos,
int64_t _endPos,
char32_t _escapeChar);
+ bool processOneElement (const CLASS_TYPE & _SearchIn,
int64_t _startPos,
int64_t _endPos,
char32_t _escapeChar);
+ int64_t start (void);
+ int64_t stop (void);
+ void display (void);
+ void drawColoredRegEx (void);
- bool checkGoodPosition (const std::vector<char32_t> & _tmpExp,
int64_t & _pos);
- bool checkGoodPosition (const std::vector<char32_t> & _tmpExp);
Detail:
etk::RegExp ()
RegExp(const std::u32string & _exp);
Constructor
Parameter [input] [output]: _exp Regular expression to parse
etk::RegExp ()
RegExp(const std::string & _exp);
etk::~RegExp ()
~RegExp(void);
Destructor
setRegExp ()
void setRegExp(const std::string & _exp);
Set a new regular expression matching
Parameter [input]: _exp the new expression to search
setRegExp ()
void setRegExp(const std::u32string & _regexp);
getRegExp ()
std::string getRegExp(void);
Get the regular expression string
Return: the string representing the RegExp
getURegExp ()
const std::u32string & getURegExp(void);
getStatus ()
bool getStatus(void);
Get the status if the regular expression parsing
Return: true : the regExp is correctly parsed
Return: false : an error occcured (check log ...)
process ()
bool process(const CLASS_TYPE & _SearchIn,
int64_t _startPos,
int64_t _endPos,
char32_t _escapeChar);
process the seach of the regular expression in a defined class type
Parameter [input]: _SearchIn table of element to seach in
Parameter [input]: _startPos start position to search
Parameter [input]: _endPos end position to search
Parameter [input]: _escapeChar special char that remove other char real type
Return: true : find something, false otherwise
processOneElement ()
bool processOneElement(const CLASS_TYPE & _SearchIn,
int64_t _startPos,
int64_t _endPos,
char32_t _escapeChar);
start ()
int64_t start(void);
Get the expression start position detected
Return: position of the start regExp
stop ()
int64_t stop(void);
Get the expression stop position detected
Return: position of the stop regExp
display ()
void display(void);
Display the reg Exp
drawColoredRegEx ()
void drawColoredRegEx(void);
Just display the regExp in color ...
checkGoodPosition ()
bool checkGoodPosition(const std::vector<char32_t> & _tmpExp,
int64_t & _pos);
Parameter [input] [output]:
checkGoodPosition ()
bool checkGoodPosition(const std::vector<char32_t> & _tmpExp);
Parameter [input] [output]:
etk::RegExp ()
RegExp(const std::u32string & _exp);
Constructor
-
Parameter [input] [output]: _exp Regular expression to parse
etk::RegExp ()
RegExp(const std::string & _exp);
etk::~RegExp ()
~RegExp(void);
Destructor
setRegExp ()
void setRegExp(const std::string & _exp);
Set a new regular expression matching
-
Parameter [input]: _exp the new expression to search
setRegExp ()
void setRegExp(const std::u32string & _regexp);
getRegExp ()
std::string getRegExp(void);
Get the regular expression string
-
Return: the string representing the RegExp
getURegExp ()
const std::u32string & getURegExp(void);
getStatus ()
bool getStatus(void);
Get the status if the regular expression parsing
-
Return: true : the regExp is correctly parsed
Return: false : an error occcured (check log ...)
process ()
bool process(const CLASS_TYPE & _SearchIn, int64_t _startPos, int64_t _endPos, char32_t _escapeChar);
process the seach of the regular expression in a defined class type
-
Parameter [input]: _SearchIn table of element to seach in
Parameter [input]: _startPos start position to search
Parameter [input]: _endPos end position to search
Parameter [input]: _escapeChar special char that remove other char real type
Return: true : find something, false otherwise
processOneElement ()
bool processOneElement(const CLASS_TYPE & _SearchIn, int64_t _startPos, int64_t _endPos, char32_t _escapeChar);
start ()
int64_t start(void);
Get the expression start position detected
-
Return: position of the start regExp
stop ()
int64_t stop(void);
Get the expression stop position detected
-
Return: position of the stop regExp
display ()
void display(void);
Display the reg Exp
drawColoredRegEx ()
void drawColoredRegEx(void);
Just display the regExp in color ...
checkGoodPosition ()
bool checkGoodPosition(const std::vector<char32_t> & _tmpExp, int64_t & _pos);
-
Parameter [input] [output]:
checkGoodPosition ()
bool checkGoodPosition(const std::vector<char32_t> & _tmpExp);
-
Parameter [input] [output]: