Skip to content

Latest commit

 

History

History
1135 lines (754 loc) · 84.7 KB

api.md

File metadata and controls

1135 lines (754 loc) · 84.7 KB

Summary

Members Descriptions
namespace rexgen
class GenericError
class SyntaxError
struct _RexgenOptions

namespace rexgen

Summary

Members Descriptions
enum RegexType
class rexgen::ClassRegex
class rexgen::ClassRegexIterator
class rexgen::CompoundRegex
class rexgen::CompoundRegexIterator
class rexgen::FastIteratorPermuter
class rexgen::GroupReference
class rexgen::GroupReferenceIterator
class rexgen::IteratorPermuter
class rexgen::IteratorState
class rexgen::Quantifier
class rexgen::RangeIterator
class rexgen::Regex
class rexgen::RegexAlternatives
class rexgen::RegexAlternativesIterator
class rexgen::RegexContainer
class rexgen::RexgenFlexLexer
class rexgen::RexgenOptions
class rexgen::RexgenParsingDriver
class rexgen::StreamRegex
class rexgen::StreamRegexIterator
class rexgen::TerminalRegex
class rexgen::TerminalRegexIterator
class rexgen::TopIterator
struct rexgen::t_group_options

Members

Values Descriptions
Compound
Alternative
Terminal
Class
Reference
Stream
Range

class rexgen::ClassRegex

class rexgen::ClassRegex
  : public rexgen::Regex

Summary

Members Descriptions
public void addCharacter(const wchar_t & ch)
public void addRange(const wchar_t & a,const wchar_t & b)
public inline void addRange(CharacterClassType ct)
public bool contains(const wchar_t & ch) const
public inline virtual RegexType getRegexType() const
public void merge(const std::shared_ptr< ClassRegex > & other)
public virtual std::unique_ptr< Iterator > iterator(IteratorState &) const
public virtual std::unique_ptr< Iterator > singleIterator(IteratorState &) const
enum CharacterClassType
private std::set< wchar_t > characters
private std::set< CharacterClassType>ranges
private void removeCharacterInstances(const wchar_t min,const wchar_t max)
private void removeCharacterInstances(CharacterClassType ct)
private void minimize()

Members

public void addCharacter(const wchar_t & ch)

public void addRange(const wchar_t & a,const wchar_t & b)

public inline void addRange(CharacterClassType ct)

public bool contains(const wchar_t & ch) const

public inline virtual RegexType getRegexType() const

public void merge(const std::shared_ptr< ClassRegex > & other)

public virtual std::unique_ptr< Iterator > iterator(IteratorState &) const

public virtual std::unique_ptr< Iterator > singleIterator(IteratorState &) const

Values Descriptions
DIGITS
UPPERCASE
LOWERCASE
WORDCHARACTERS
SPACES

private std::set< wchar_t > characters

private std::set< CharacterClassType>ranges

private void removeCharacterInstances(const wchar_t min,const wchar_t max)

private void minimize()

class rexgen::ClassRegexIterator

class rexgen::ClassRegexIterator
  : public Iterator

Summary

Members Descriptions
public template<>
inline ClassRegexIterator(Iter begin,Iter end)
public inline virtual ~ClassRegexIterator()
public inline virtual void updateReferences(IteratorState &)
public inline virtual void updateAttributes(IteratorState &)
public inline void value(SimpleString * dst) const
public inline bool next()
public inline size_t size() const
public inline bool hasNext() const
public inline bool canUseValue() const
public inline std::shared_ptr< SerializableState > getCurrentState() const
public inline void setCurrentState(const std::shared_ptr< SerializableState > & s)
private signed int current
private int characters_count
private SimpleString characters
private vector< std::string::size_type > indices
private vector< std::string::size_type > lengths

Members

public template<>
inline ClassRegexIterator(Iter begin,Iter end)

public inline virtual ~ClassRegexIterator()

public inline virtual void updateReferences(IteratorState &)

public inline virtual void updateAttributes(IteratorState &)

public inline void value(SimpleString * dst) const

public inline bool next()

public inline size_t size() const

public inline bool hasNext() const

public inline bool canUseValue() const

public inline std::shared_ptr< SerializableState > getCurrentState() const

public inline void setCurrentState(const std::shared_ptr< SerializableState > & s)

private signed int current

private int characters_count

private SimpleString characters

private vector< std::string::size_type > indices

private vector< std::string::size_type > lengths

class rexgen::CompoundRegex

class rexgen::CompoundRegex
  : public rexgen::RegexContainer

Summary

Members Descriptions
public void prependRegex(const std::shared_ptr< Regex > & regex)
public void appendRegex(const std::shared_ptr< Regex > & regex)
public inline virtual RegexType getRegexType() const
public virtual std::unique_ptr< Iterator > iterator(IteratorState & state) const
public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const

Members

public void prependRegex(const std::shared_ptr< Regex > & regex)

public void appendRegex(const std::shared_ptr< Regex > & regex)

public inline virtual RegexType getRegexType() const

public virtual std::unique_ptr< Iterator > iterator(IteratorState & state) const

public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const

class rexgen::CompoundRegexIterator

class rexgen::CompoundRegexIterator
  : public IteratorContainer

Summary

Members Descriptions
public explicit CompoundRegexIterator()
public bool next()
public void value(SimpleString * dst) const
public std::shared_ptr< SerializableState > getCurrentState() const
public void setCurrentState(const std::shared_ptr< SerializableState > & state)

Members

public explicit CompoundRegexIterator()

public bool next()

public void value(SimpleString * dst) const

public std::shared_ptr< SerializableState > getCurrentState() const

public void setCurrentState(const std::shared_ptr< SerializableState > & state)

class rexgen::FastIteratorPermuter

class rexgen::FastIteratorPermuter
  : public Iterator

Summary

Members Descriptions
public inline FastIteratorPermuter(unsigned int count)
public inline void value(SimpleString * dst) const
public inline bool next()
public inline void updateAttributes(IteratorState & iterState)
public inline void updateReferences(IteratorState & iterState)
private std::vector< ITERATOR > iterators

Members

public inline FastIteratorPermuter(unsigned int count)

public inline void value(SimpleString * dst) const

public inline bool next()

public inline void updateAttributes(IteratorState & iterState)

public inline void updateReferences(IteratorState & iterState)

private std::vector< ITERATOR > iterators

class rexgen::GroupReference

class rexgen::GroupReference
  : public rexgen::Regex

Summary

Members Descriptions
public inline explicit GroupReference(int _groupId)
public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const
public inline virtual RegexType getRegexType() const
public inline virtual int getGroupId() const
public inline const std::weak_ptr< Regex> &getRegex() const
public inline void setRegex(const std::weak_ptr< Regex > & re)
public inline std::uint64_t size() const
private const int groupId
private std::weak_ptr< Regex>groupRef

Members

public inline explicit GroupReference(int _groupId)

public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const

public inline virtual RegexType getRegexType() const

public inline virtual int getGroupId() const

public inline const std::weak_ptr< Regex> &getRegex() const

public inline void setRegex(const std::weak_ptr< Regex > & re)

public inline std::uint64_t size() const

private const int groupId

private std::weak_ptr< Regex>groupRef

class rexgen::GroupReferenceIterator

class rexgen::GroupReferenceIterator
  : public IteratorContainer

Summary

Members Descriptions
public inline GroupReferenceIterator(int group)
public inline bool hasNext() const
public inline bool next()
public inline void value(SimpleString * dst) const
public void updateReferences(IteratorState & iterState)
private NullIterator null_iter
private int groupId
private std::reference_wrapper< Iterator > groupRef

Members

public inline GroupReferenceIterator(int group)

public inline bool hasNext() const

public inline bool next()

public inline void value(SimpleString * dst) const

public void updateReferences(IteratorState & iterState)

private NullIterator null_iter

private int groupId

private std::reference_wrapper< Iterator > groupRef

class rexgen::IteratorPermuter

class rexgen::IteratorPermuter
  : public IteratorContainer

Summary

Members Descriptions
public void value(SimpleString * dst) const
public IteratorPermuter(const Regex & re,IteratorState & is,unsigned int min,unsigned int max)
public bool next()
public void init()
private const unsigned int min_occurs
private const unsigned int max_occurs
private unsigned int current
private unsigned int occurs

Members

public void value(SimpleString * dst) const

public IteratorPermuter(const Regex & re,IteratorState & is,unsigned int min,unsigned int max)

public bool next()

public void init()

private const unsigned int min_occurs

private const unsigned int max_occurs

private unsigned int current

private unsigned int occurs

class rexgen::IteratorState

Summary

Members Descriptions
public inline explicit IteratorState()
public IteratorState(const IteratorState &) = delete
public IteratorState(IteratorState &&) = delete
public IteratorState&operator=(const IteratorState &) = delete
public IteratorState&operator=(IteratorState &&) = delete
public inline void registerIterator(int id,std::reference_wrapper< Iterator > iterator)
public inline bool hasId(int id) const
public inline std::reference_wrapper< Iterator > operator[](int id) const
public inline void setStreamIterator(std::unique_ptr< StreamRegexIterator > & iter)
public inline bool hasStreamIterator() const
public inline std::reference_wrapper< StreamRegexIterator>getStreamIterator() const
private std::map< int, std::reference_wrapper< Iterator > > groupIterators
private mutable std::unique_ptr< StreamRegexIterator>streamIterator

Members

public inline explicit IteratorState()

public IteratorState(const IteratorState &) = delete

public IteratorState(IteratorState &&) = delete

public IteratorState&operator=(const IteratorState &) = delete

public inline void registerIterator(int id,std::reference_wrapper< Iterator > iterator)

public inline bool hasId(int id) const

public inline std::reference_wrapper< Iterator > operator[](int id) const

public inline void setStreamIterator(std::unique_ptr< StreamRegexIterator > & iter)

public inline bool hasStreamIterator() const

public inline std::reference_wrapper< StreamRegexIterator>getStreamIterator() const

private std::map< int, std::reference_wrapper< Iterator > > groupIterators

private mutable std::unique_ptr< StreamRegexIterator>streamIterator

class rexgen::Quantifier

Summary

Members Descriptions
public unsigned int min
public unsigned int max
public inline Quantifier()
public inline Quantifier(unsigned int _min,unsigned int _max)
public inline Quantifier(const Quantifier & other)
public inline virtual ~Quantifier()
public inline virtual Quantifier&operator=(const Quantifier & other)
public inline virtual bool operator==(const Quantifier & other) const
public inline unsigned int getMin() const
public inline unsigned int getMax() const
public inline void setMin(unsigned _min)
public inline void setMax(unsigned _max)

Members

public unsigned int min

public unsigned int max

public inline Quantifier()

public inline Quantifier(unsigned int _min,unsigned int _max)

public inline Quantifier(const Quantifier & other)

public inline virtual ~Quantifier()

public inline virtual Quantifier&operator=(const Quantifier & other)

public inline virtual bool operator==(const Quantifier & other) const

public inline unsigned int getMin() const

public inline unsigned int getMax() const

public inline void setMin(unsigned _min)

public inline void setMax(unsigned _max)

class rexgen::RangeIterator

class rexgen::RangeIterator
  : public Iterator

Summary

Members Descriptions
public inline explicit RangeIterator()
public inline void value(SimpleString * dst) const
public inline bool next()
public inline void updateReferences(IteratorState &)
public inline void updateAttributes(IteratorState &)
private char current
private const char minimum
private const char maximum

Members

public inline explicit RangeIterator()

public inline void value(SimpleString * dst) const

public inline bool next()

public inline void updateReferences(IteratorState &)

public inline void updateAttributes(IteratorState &)

private char current

private const char minimum

private const char maximum

class rexgen::Regex

Summary

Members Descriptions
public inline Regex()
public inline virtual ~Regex()
public inline unsigned int getMinOccurs() const
public inline unsigned int getMaxOccurs() const
public inline void setMinOccurs(unsigned int _min)
public inline void setMaxOccurs(unsigned int _max)
public inline void setQuantifier(const Quantifier & q)
public RegexType getRegexType() const
public virtual std::unique_ptr< Iterator > iterator(IteratorState & state) const
public std::unique_ptr< Iterator > singleIterator(IteratorState & state) const
public inline int getId() const
public inline virtual int getGroupId() const
public inline virtual bool usesCallback() const
protected inline virtual int createId()
private Quantifier quantifier
private int id

Members

public inline Regex()

public inline virtual ~Regex()

public inline unsigned int getMinOccurs() const

public inline unsigned int getMaxOccurs() const

public inline void setMinOccurs(unsigned int _min)

public inline void setMaxOccurs(unsigned int _max)

public inline void setQuantifier(const Quantifier & q)

public RegexType getRegexType() const

public virtual std::unique_ptr< Iterator > iterator(IteratorState & state) const

public std::unique_ptr< Iterator > singleIterator(IteratorState & state) const

public inline int getId() const

public inline virtual int getGroupId() const

public inline virtual bool usesCallback() const

protected inline virtual int createId()

private int id

class rexgen::RegexAlternatives

class rexgen::RegexAlternatives
  : public rexgen::RegexContainer

Summary

Members Descriptions
public inline RegexAlternatives()
public inline void addRegex(std::shared_ptr< Regex > & regex)
public inline virtual RegexType getRegexType() const
public virtual std::unique_ptr< Iterator > iterator(IteratorState & state) const
public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const
public inline virtual int getGroupId() const
public inline void setGroupId(int _id)
public inline void setGroupOptions(const t_group_options & opts)
private int groupId
private int handle_case

Members

public inline RegexAlternatives()

public inline void addRegex(std::shared_ptr< Regex > & regex)

public inline virtual RegexType getRegexType() const

public virtual std::unique_ptr< Iterator > iterator(IteratorState & state) const

public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const

public inline virtual int getGroupId() const

public inline void setGroupId(int _id)

public inline void setGroupOptions(const t_group_options & opts)

private int groupId

private int handle_case

class rexgen::RegexAlternativesIterator

class rexgen::RegexAlternativesIterator
  : public IteratorContainer

Summary

Members Descriptions
public explicit RegexAlternativesIterator()
public bool next()
public inline void value(SimpleString * dst) const
public void addChild(std::unique_ptr< Iterator > && re)
public std::shared_ptr< SerializableState > getCurrentState() const
public void setCurrentState(const std::shared_ptr< SerializableState > & state)
private bool canUseValue() const

Members

public explicit RegexAlternativesIterator()

public bool next()

public inline void value(SimpleString * dst) const

public void addChild(std::unique_ptr< Iterator > && re)

public std::shared_ptr< SerializableState > getCurrentState() const

public void setCurrentState(const std::shared_ptr< SerializableState > & state)

private bool canUseValue() const

class rexgen::RegexContainer

class rexgen::RegexContainer
  : public rexgen::Regex

Summary

Members Descriptions
public inline virtual bool usesCallback() const
protected std::deque< std::shared_ptr< Regex> >regexObjects
protected inline std::deque< std::shared_ptr< Regex> > &getChildren()

Members

public inline virtual bool usesCallback() const

protected std::deque< std::shared_ptr< Regex> >regexObjects

protected inline std::deque< std::shared_ptr< Regex> > &getChildren()

class rexgen::RexgenFlexLexer

class rexgen::RexgenFlexLexer
  : public yyFlexLexer

Summary

Members Descriptions
public RexgenFlexLexer(const std::string & input)
public RexgenParser::symbol_type rexgen_lex(RexgenParsingDriver & driver)
public int LexerInput(char * buf,int max_size)
public rexgen::RexgenParser::symbol_type beginGroupWithOptions(RexgenParsingDriver & driver) const
public rexgen::RexgenParser::symbol_type beginGroup(RexgenParsingDriver & driver) const
private std::string content
private std::string::const_iterator content_ptr
private std::wstring wcontent
private std::wstring::const_iterator wcontent_ptr
public static char hex2bin(const char c)
public static char parseAnsiChar(const char * text)
public static uint32_t parseUnicodeChar(const char * text)
public static void UTF8_validate_second_byte(const unsigned char c)
public static uint32_t parseUTF8(const unsigned char * text)

Members

public RexgenFlexLexer(const std::string & input)

public RexgenParser::symbol_type rexgen_lex(RexgenParsingDriver & driver)

public int LexerInput(char * buf,int max_size)

public rexgen::RexgenParser::symbol_type beginGroupWithOptions(RexgenParsingDriver & driver) const

public rexgen::RexgenParser::symbol_type beginGroup(RexgenParsingDriver & driver) const

private std::string content

private std::string::const_iterator content_ptr

private std::wstring wcontent

private std::wstring::const_iterator wcontent_ptr

public static char hex2bin(const char c)

public static char parseAnsiChar(const char * text)

public static uint32_t parseUnicodeChar(const char * text)

public static void UTF8_validate_second_byte(const unsigned char c)

public static uint32_t parseUTF8(const unsigned char * text)

class rexgen::RexgenOptions

Summary

Members Descriptions
public bool ignore_case
public charset encoding
public std::FILE * infile
public callback_fp_mb stream_callback
public void(* parser_error
public inline RexgenOptions()

Members

public std::FILE * infile

public void(* parser_error

public inline RexgenOptions()

class rexgen::RexgenParsingDriver

Summary

Members Descriptions
public RexgenParsingDriver(const RexgenOptions & __options)
public inline int nextGroupId()
public std::shared_ptr< rexgen::Regex>parse(const std::string & regex)
public void registerGroupReference(std::shared_ptr< GroupReference > gr)
public const std::shared_ptr< std::set< std::shared_ptr< GroupReference> > > &getGroupReferences(int id) const
public void registerGroup(std::weak_ptr< Regex > & re)
public const std::weak_ptr< Regex> &getGroupRegex(int id) const
public const map< int, std::weak_ptr< Regex> > &getGroups() const
public void updateAllGroupReferences() iterates through all group references and calls updateGroupReferences for each
public void updateGroupReferences(const std::weak_ptr< Regex > & wre)
public bool hasInvalidGroupReferences() const
public inline FILE * getInFile() const
public inline callback_fp_mb getStreamCallback() const
public inline void handleParserError(const char * msg) const
public inline void setResult(const std::shared_ptr< Regex > & regex)
public inline std::shared_ptr< Regex>getResult()
public std::shared_ptr< Regex>getStreamRegex() this is the handling of \0 - terminals in the regex. the first occurance of \0 creates a StreamRegex and returns it, all following occurances return a reference to the previously created StreamRegex. We must make this distinction, because StreamReference handles calls to next() by going to the next word, and calling next() for the whole regex would result in multiple calls to next() for each single occurance of \0. So, we return a GroupReference, which does not forward the invocation of next() to the StreamRegex
private std::shared_ptr< Regex>result
private int groupId
private const RexgenOptions&options
private std::map< int, std::shared_ptr< std::set< std::shared_ptr< GroupReference> > > >groupRefs
private std::map< int, std::weak_ptr< Regex> >groups
private std::shared_ptr< StreamRegex>streamRegex
private std::shared_ptr< RexgenFlexLexer>scanner
private std::shared_ptr< RexgenParser > parser

Members

public RexgenParsingDriver(const RexgenOptions & __options)

public inline int nextGroupId()

public std::shared_ptr< rexgen::Regex>parse(const std::string & regex)

public void registerGroupReference(std::shared_ptr< GroupReference > gr)

public const std::shared_ptr< std::set< std::shared_ptr< GroupReference> > > &getGroupReferences(int id) const

public void registerGroup(std::weak_ptr< Regex > & re)

public const std::weak_ptr< Regex> &getGroupRegex(int id) const

public const map< int, std::weak_ptr< Regex> > &getGroups() const

iterates through all group references and calls updateGroupReferences for each

public void updateGroupReferences(const std::weak_ptr< Regex > & wre)

public inline FILE * getInFile() const

public inline callback_fp_mb getStreamCallback() const

public inline void handleParserError(const char * msg) const

public inline void setResult(const std::shared_ptr< Regex > & regex)

public inline std::shared_ptr< Regex>getResult()

public std::shared_ptr< Regex>getStreamRegex()

this is the handling of \0 - terminals in the regex. the first occurance of \0 creates a StreamRegex and returns it, all following occurances return a reference to the previously created StreamRegex. We must make this distinction, because StreamReference handles calls to next() by going to the next word, and calling next() for the whole regex would result in multiple calls to next() for each single occurance of \0. So, we return a GroupReference, which does not forward the invocation of next() to the StreamRegex

private std::shared_ptr< Regex>result

private int groupId

private const RexgenOptions&options

private std::map< int, std::shared_ptr< std::set< std::shared_ptr< GroupReference> > > >groupRefs

private std::map< int, std::weak_ptr< Regex> >groups

private std::shared_ptr< StreamRegex>streamRegex

private std::shared_ptr< RexgenFlexLexer>scanner

private std::shared_ptr< RexgenParser > parser

class rexgen::StreamRegex

class rexgen::StreamRegex
  : public rexgen::Regex

Summary

Members Descriptions
public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const
public explicit StreamRegex(callback_fp_mb cb)
public inline virtual RegexType getRegexType() const
public inline virtual bool usesCallback() const
private callback_fp_mb callback

Members

public virtual std::unique_ptr< Iterator > singleIterator(IteratorState & state) const

public explicit StreamRegex(callback_fp_mb cb)

public inline virtual RegexType getRegexType() const

public inline virtual bool usesCallback() const

class rexgen::StreamRegexIterator

class rexgen::StreamRegexIterator
  : public Iterator

Summary

Members Descriptions
public inline StreamRegexIterator(callback_fp_mb cb)
public inline bool next()
public inline bool forceNext()
public inline bool hasNext() const
public inline void value(SimpleString * dst) const
public inline void updateReferences(IteratorState &)
public inline void updateAttributes(IteratorState &)
public inline bool isSingleton() const
public std::shared_ptr< SerializableState > getCurrentState() const
public void setCurrentState(const std::shared_ptr< SerializableState > & state)
private callback_fp_mb callback
private byte_t buffer
private size_t length
private bool __hasNext
private void readNextWord()

Members

public inline bool next()

public inline bool forceNext()

public inline bool hasNext() const

public inline void value(SimpleString * dst) const

public inline void updateReferences(IteratorState &)

public inline void updateAttributes(IteratorState &)

public inline bool isSingleton() const

public std::shared_ptr< SerializableState > getCurrentState() const

public void setCurrentState(const std::shared_ptr< SerializableState > & state)

private byte_t buffer

private size_t length

private bool __hasNext

private void readNextWord()

class rexgen::TerminalRegex

class rexgen::TerminalRegex
  : public rexgen::Regex

Summary

Members Descriptions
public inline explicit TerminalRegex(wchar_t ch)
public void prepend(const std::shared_ptr< TerminalRegex > & tre)
public inline const char_type*getValue() const
public inline virtual RegexType getRegexType() const
public inline virtual std::unique_ptr< Iterator > singleIterator(IteratorState &) const
private std::vector< wchar_t > value

Members

public inline explicit TerminalRegex(wchar_t ch)

public void prepend(const std::shared_ptr< TerminalRegex > & tre)

public inline const char_type*getValue() const

public inline virtual RegexType getRegexType() const

public inline virtual std::unique_ptr< Iterator > singleIterator(IteratorState &) const

private std::vector< wchar_t > value

class rexgen::TerminalRegexIterator

class rexgen::TerminalRegexIterator
  : public Iterator

Summary

Members Descriptions
public inline TerminalRegexIterator(const wchar_t * _terminal,size_t elements)
public inline bool next()
public inline void value(SimpleString * dst) const
public inline bool hasNext() const
public inline void updateReferences(IteratorState &)
public inline void updateAttributes(IteratorState &)
private SimpleString terminal

Members

public inline TerminalRegexIterator(const wchar_t * _terminal,size_t elements)

public inline bool next()

public inline void value(SimpleString * dst) const

public inline bool hasNext() const

public inline void updateReferences(IteratorState &)

public inline void updateAttributes(IteratorState &)

private SimpleString terminal

class rexgen::TopIterator

class rexgen::TopIterator
  : public Iterator

Summary

Members Descriptions
public inline explicit TopIterator(std::shared_ptr< Regex > & re)
public inline bool next()
public inline void value(SimpleString * dst) const
public inline void updateReferences(IteratorState &)
public inline void updateAttributes(IteratorState &)
public inline std::shared_ptr< SerializableState > getCurrentState() const
public inline void setCurrentState(const std::shared_ptr< SerializableState > & s)
private std::shared_ptr< Iterator > child
private IteratorState state
private bool needWord
private inline void updateReferences()
private inline void updateAttributes()

Members

public inline explicit TopIterator(std::shared_ptr< Regex > & re)

public inline bool next()

public inline void value(SimpleString * dst) const

public inline void updateReferences(IteratorState &)

public inline void updateAttributes(IteratorState &)

public inline std::shared_ptr< SerializableState > getCurrentState() const

public inline void setCurrentState(const std::shared_ptr< SerializableState > & s)

private std::shared_ptr< Iterator > child

private bool needWord

private inline void updateReferences()

private inline void updateAttributes()

struct rexgen::t_group_options

Summary

Members Descriptions
public int handle_case
public int group_id
public inline t_group_options(int gid)
public inline t_group_options(int hc,int gid)

Members

public int handle_case

public int group_id

public inline t_group_options(int gid)

public inline t_group_options(int hc,int gid)

class GenericError

Summary

Members Descriptions
public inline explicit GenericError(const char * msg)
public inline explicit GenericError(const std::string & msg)
public inline const char * getMessage()
private const std::string message

Members

public inline explicit GenericError(const char * msg)

public inline explicit GenericError(const std::string & msg)

public inline const char * getMessage()

private const std::string message

class SyntaxError

class SyntaxError
  : public GenericError

Summary

Members Descriptions
public inline explicit SyntaxError(const char * msg)
public inline explicit SyntaxError(const std::string & msg)

Members

public inline explicit SyntaxError(const char * msg)

public inline explicit SyntaxError(const std::string & msg)

struct _RexgenOptions

Summary

Members Descriptions
public callback_fp_mb stream_callback
public const char * regex_ctype
public const char * callback_ctype

Members

public const char * regex_ctype

public const char * callback_ctype

Generated by Moxygen