Monero
Loading...
Searching...
No Matches
internal::GenericRegexSearch< RegexType, Allocator > Class Template Reference

#include <regex.h>

Collaboration diagram for internal::GenericRegexSearch< RegexType, Allocator >:

Public Types

typedef RegexType::EncodingType Encoding
typedef Encoding::Ch Ch

Public Member Functions

 GenericRegexSearch (const RegexType &regex, Allocator *allocator=0)
 ~GenericRegexSearch ()
template<typename InputStream>
bool Match (InputStream &is)
bool Match (const Ch *s)
template<typename InputStream>
bool Search (InputStream &is)
bool Search (const Ch *s)

Private Types

typedef RegexType::State State
typedef RegexType::Range Range

Private Member Functions

template<typename InputStream>
bool SearchWithAnchoring (InputStream &is, bool anchorBegin, bool anchorEnd)
size_t GetStateSetSize () const
bool AddState (Stack< Allocator > &l, SizeType index)
bool MatchRange (SizeType rangeIndex, unsigned codepoint) const

Private Attributes

const RegexType & regex_
Allocatorallocator_
AllocatorownAllocator_
Stack< Allocatorstate0_
Stack< Allocatorstate1_
uint32_tstateSet_

Member Typedef Documentation

◆ Ch

template<typename RegexType, typename Allocator = CrtAllocator>
typedef Encoding::Ch internal::GenericRegexSearch< RegexType, Allocator >::Ch

◆ Encoding

template<typename RegexType, typename Allocator = CrtAllocator>
typedef RegexType::EncodingType internal::GenericRegexSearch< RegexType, Allocator >::Encoding

◆ Range

template<typename RegexType, typename Allocator = CrtAllocator>
typedef RegexType::Range internal::GenericRegexSearch< RegexType, Allocator >::Range
private

◆ State

template<typename RegexType, typename Allocator = CrtAllocator>
typedef RegexType::State internal::GenericRegexSearch< RegexType, Allocator >::State
private

Constructor & Destructor Documentation

◆ GenericRegexSearch()

template<typename RegexType, typename Allocator = CrtAllocator>
internal::GenericRegexSearch< RegexType, Allocator >::GenericRegexSearch ( const RegexType & regex,
Allocator * allocator = 0 )
inline

◆ ~GenericRegexSearch()

template<typename RegexType, typename Allocator = CrtAllocator>
internal::GenericRegexSearch< RegexType, Allocator >::~GenericRegexSearch ( )
inline

Member Function Documentation

◆ AddState()

template<typename RegexType, typename Allocator = CrtAllocator>
bool internal::GenericRegexSearch< RegexType, Allocator >::AddState ( Stack< Allocator > & l,
SizeType index )
inlineprivate

◆ GetStateSetSize()

template<typename RegexType, typename Allocator = CrtAllocator>
size_t internal::GenericRegexSearch< RegexType, Allocator >::GetStateSetSize ( ) const
inlineprivate

◆ Match() [1/2]

template<typename RegexType, typename Allocator = CrtAllocator>
bool internal::GenericRegexSearch< RegexType, Allocator >::Match ( const Ch * s)
inline

◆ Match() [2/2]

template<typename RegexType, typename Allocator = CrtAllocator>
template<typename InputStream>
bool internal::GenericRegexSearch< RegexType, Allocator >::Match ( InputStream & is)
inline

◆ MatchRange()

template<typename RegexType, typename Allocator = CrtAllocator>
bool internal::GenericRegexSearch< RegexType, Allocator >::MatchRange ( SizeType rangeIndex,
unsigned codepoint ) const
inlineprivate

◆ Search() [1/2]

template<typename RegexType, typename Allocator = CrtAllocator>
bool internal::GenericRegexSearch< RegexType, Allocator >::Search ( const Ch * s)
inline

◆ Search() [2/2]

template<typename RegexType, typename Allocator = CrtAllocator>
template<typename InputStream>
bool internal::GenericRegexSearch< RegexType, Allocator >::Search ( InputStream & is)
inline

◆ SearchWithAnchoring()

template<typename RegexType, typename Allocator = CrtAllocator>
template<typename InputStream>
bool internal::GenericRegexSearch< RegexType, Allocator >::SearchWithAnchoring ( InputStream & is,
bool anchorBegin,
bool anchorEnd )
inlineprivate

Member Data Documentation

◆ allocator_

template<typename RegexType, typename Allocator = CrtAllocator>
Allocator* internal::GenericRegexSearch< RegexType, Allocator >::allocator_
private

◆ ownAllocator_

template<typename RegexType, typename Allocator = CrtAllocator>
Allocator* internal::GenericRegexSearch< RegexType, Allocator >::ownAllocator_
private

◆ regex_

template<typename RegexType, typename Allocator = CrtAllocator>
const RegexType& internal::GenericRegexSearch< RegexType, Allocator >::regex_
private

◆ state0_

template<typename RegexType, typename Allocator = CrtAllocator>
Stack<Allocator> internal::GenericRegexSearch< RegexType, Allocator >::state0_
private

◆ state1_

template<typename RegexType, typename Allocator = CrtAllocator>
Stack<Allocator> internal::GenericRegexSearch< RegexType, Allocator >::state1_
private

◆ stateSet_

template<typename RegexType, typename Allocator = CrtAllocator>
uint32_t* internal::GenericRegexSearch< RegexType, Allocator >::stateSet_
private

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