RetroArch
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
peg::match Struct Reference

#include <peglib.h>

Classes

struct  Item
 

Public Types

typedef std::vector< Item >::iterator iterator
 
typedef std::vector< Item >::const_iterator const_iterator
 

Public Member Functions

bool empty () const
 
size_t size () const
 
size_t length (size_t n=0)
 
std::string str (size_t n=0) const
 
const Itemoperator[] (size_t n) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
std::vector< size_t > named_capture (const std::string &name) const
 
std::map< std::string, std::vector< size_t > > named_captures () const
 
std::vector< size_t > indexed_capture (size_t id) const
 
std::map< size_t, std::vector< size_t > > indexed_captures () const
 

Public Attributes

std::vector< Itemmatches
 

Member Typedef Documentation

◆ const_iterator

◆ iterator

typedef std::vector<Item>::iterator peg::match::iterator

Member Function Documentation

◆ begin() [1/2]

iterator peg::match::begin ( )
inline

◆ begin() [2/2]

const_iterator peg::match::begin ( ) const
inline

◆ empty()

bool peg::match::empty ( ) const
inline

◆ end() [1/2]

iterator peg::match::end ( )
inline

◆ end() [2/2]

const_iterator peg::match::end ( ) const
inline

◆ indexed_capture()

std::vector<size_t> peg::match::indexed_capture ( size_t  id) const
inline

◆ indexed_captures()

std::map<size_t, std::vector<size_t> > peg::match::indexed_captures ( ) const
inline

◆ length()

size_t peg::match::length ( size_t  n = 0)
inline

◆ named_capture()

std::vector<size_t> peg::match::named_capture ( const std::string name) const
inline

◆ named_captures()

std::map<std::string, std::vector<size_t> > peg::match::named_captures ( ) const
inline

◆ operator[]()

const Item& peg::match::operator[] ( size_t  n) const
inline

◆ size()

size_t peg::match::size ( ) const
inline

◆ str()

std::string peg::match::str ( size_t  n = 0) const
inline

Member Data Documentation

◆ matches

std::vector<Item> peg::match::matches

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