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


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


setRegExp ()

void setRegExp(const std::u32string & _regexp);



getRegExp ()

std::string getRegExp(void);

Get the regular expression string


getURegExp ()

const std::u32string & getURegExp(void);



getStatus ()

bool getStatus(void);

Get the status if the regular expression parsing


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


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


stop ()

int64_t stop(void);

Get the expression stop position detected


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);



checkGoodPosition ()

bool checkGoodPosition(const std::vector<char32_t> & _tmpExp);