GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Regular expression engine with subset of ECMAscript grammar. More...
#include <regex.h>
Public Types | |
typedef Encoding::Ch | Ch |
Public Member Functions | |
GenericRegex (const Ch *source, Allocator *allocator=0) | |
bool | IsValid () const |
template<typename InputStream > | |
bool | Match (InputStream &is) const |
bool | Match (const Ch *s) const |
template<typename InputStream > | |
bool | Search (InputStream &is) const |
bool | Search (const Ch *s) const |
Regular expression engine with subset of ECMAscript grammar.
Supported regular expression syntax:
ab
Concatenationa|b
Alternationa
? Zero or onea*
Zero or morea+
One or morea{3}
Exactly 3 timesa{3
,} At least 3 timesa{3
,5} 3 to 5 times
(ab) Grouping^a
At the beginninga$
At the end
. Any character
[abc] Character classes
[a-c] Character class range
[a-z0-9_] Character class combination
[^abc] Negated character classes
[^a-c] Negated character class range
[] Backspace (U+0008)\
| \\ ... Escape characters\f
Form feed (U+000C)\n
Line feed (U+000A)\r
Carriage return (U+000D)\t
Tab (U+0009)\v
Vertical tab (U+000B)