[DEV] add prude sample

This commit is contained in:
Edouard DUPIN 2017-08-16 21:55:55 +02:00
parent 867064d9eb
commit 4b8e0397f7
2 changed files with 14 additions and 5 deletions

4
.prude Normal file
View File

@ -0,0 +1,4 @@
etk
obj
rgb
rgba

View File

@ -114,7 +114,7 @@ normal mode :
multiplicity: multiplicity:
* ==> {0, 2147483647} (try to have the minimum size) * ==> {0, 2147483647} (try to have the minimum size)
? ==> {0, 1} ? ==> {0, 1} (or force the size to be the smallest)
+ ==> {1, 2147483647} (try to have the minimum size) + ==> {1, 2147483647} (try to have the minimum size)
{x} ==> {x, x} (try to have the minimum size) {x} ==> {x, x} (try to have the minimum size)
{x,y} ==> {x, y} (try to have the minimum size) {x,y} ==> {x, y} (try to have the minimum size)
@ -122,6 +122,12 @@ multiplicity:
option of the system parsing: option of the system parsing:
enable-multiple-lines ... enable-multiple-lines ...
*/ */
class OptionList {
public:
bool m_multilineEnable;
};
/** /**
* @brief convertion table of every element in a regular expression. * @brief convertion table of every element in a regular expression.
* @not-in-doc * @not-in-doc
@ -1378,9 +1384,8 @@ template<class CLASS_TYPE> class RegExp {
bool m_notBeginWithChar; //!< The regular expression must not have previously a char [a-zA-Z0-9_] bool m_notBeginWithChar; //!< The regular expression must not have previously a char [a-zA-Z0-9_]
bool m_notEndWithChar; //!< The regular expression must not have after the end a char [a-zA-Z0-9_] bool m_notEndWithChar; //!< The regular expression must not have after the end a char [a-zA-Z0-9_]
bool m_maximize; //!< by default the regexp find the minimum size of a regexp . bool m_maximize; //!< by default the regexp find the minimum size of a regexp .
OptionList m_options; //!< Global option list of the reg-ex.
public: public:
// create the regular expression
/** /**
* @brief Constructor * @brief Constructor
* @param[in,out] _exp Regular expression to parse * @param[in,out] _exp Regular expression to parse
@ -1412,13 +1417,13 @@ template<class CLASS_TYPE> class RegExp {
compile(etk::to_u32string(_exp)); compile(etk::to_u32string(_exp));
} }
}; };
/** /**
* @brief Destructor * @brief Destructor
*/ */
~RegExp() { ~RegExp() {
m_isOk = false; m_isOk = false;
}; };
/** /**
* @brief SetMaximizing of the regexp * @brief SetMaximizing of the regexp
* @param[in] _value Maximize or not the regExp * @param[in] _value Maximize or not the regExp