GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Classes | Public Types | Public Member Functions | List of all members
internal::GenericRegex< Encoding, Allocator > Class Template Reference

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
 

Detailed Description

template<typename Encoding, typename Allocator = CrtAllocator>
class internal::GenericRegex< Encoding, Allocator >

Regular expression engine with subset of ECMAscript grammar.

Supported regular expression syntax:

Note
This is a Thompson NFA engine, implemented with reference to Cox, Russ. "Regular Expression Matching Can Be Simple And Fast (but is slow in Java, Perl, PHP, Python, Ruby,...).", https://swtch.com/~rsc/regexp/regexp1.html

The documentation for this class was generated from the following file: