#include <regex.h>
Public Types | |
typedef Encoding::Ch | Ch |
typedef RegexType::EncodingType | Encoding |
Public Member Functions | |
GenericRegexSearch (const RegexType ®ex, Allocator *allocator=0) | |
template<typename InputStream > | |
bool | Match (InputStream &is) |
bool | Match (const Ch *s) |
template<typename InputStream > | |
bool | Search (InputStream &is) |
bool | Search (const Ch *s) |
~GenericRegexSearch () | |
Private Types | |
typedef RegexType::Range | Range |
typedef RegexType::State | State |
Private Member Functions | |
bool | AddState (Stack< Allocator > &l, SizeType index) |
size_t | GetStateSetSize () const |
bool | MatchRange (SizeType rangeIndex, unsigned codepoint) const |
template<typename InputStream > | |
bool | SearchWithAnchoring (InputStream &is, bool anchorBegin, bool anchorEnd) |
Private Attributes | |
Allocator * | allocator_ |
Allocator * | ownAllocator_ |
const RegexType & | regex_ |
Stack< Allocator > | state0_ |
Stack< Allocator > | state1_ |
uint32_t * | stateSet_ |
typedef Encoding::Ch internal::GenericRegexSearch< RegexType, Allocator >::Ch |
typedef RegexType::EncodingType internal::GenericRegexSearch< RegexType, Allocator >::Encoding |
|
private |
|
private |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |