Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
peg::CharacterClass Class Reference

#include <peglib.h>

Inheritance diagram for peg::CharacterClass:
[legend]
Collaboration diagram for peg::CharacterClass:
[legend]

Public Member Functions

 CharacterClass (const std::string &s, bool negated, bool ignore_case)
 CharacterClass (const std::vector< std::pair< char32_t, char32_t > > &ranges, bool negated, bool ignore_case)
size_t parse_core (const char *s, size_t n, SemanticValues &, Context &c, std::any &) const override
void accept (Visitor &v) override
Public Member Functions inherited from peg::Ope
virtual ~Ope ()=default
size_t parse (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const

Private Member Functions

bool in_range (const std::pair< char32_t, char32_t > &range, char32_t cp) const

Private Attributes

std::vector< std::pair< char32_t, char32_t > > ranges_
bool negated_
bool ignore_case_

Constructor & Destructor Documentation

◆ CharacterClass() [1/2]

peg::CharacterClass::CharacterClass ( const std::string & s,
bool negated,
bool ignore_case )
inline
Here is the call graph for this function:

◆ CharacterClass() [2/2]

peg::CharacterClass::CharacterClass ( const std::vector< std::pair< char32_t, char32_t > > & ranges,
bool negated,
bool ignore_case )
inline

Member Function Documentation

◆ accept()

void peg::CharacterClass::accept ( Visitor & v)
inlineoverridevirtual

Implements peg::Ope.

Here is the call graph for this function:

◆ in_range()

bool peg::CharacterClass::in_range ( const std::pair< char32_t, char32_t > & range,
char32_t cp ) const
inlineprivate
Here is the caller graph for this function:

◆ parse_core()

size_t peg::CharacterClass::parse_core ( const char * s,
size_t n,
SemanticValues & ,
Context & c,
std::any &  ) const
inlineoverridevirtual

Implements peg::Ope.

Here is the call graph for this function:

Member Data Documentation

◆ ignore_case_

bool peg::CharacterClass::ignore_case_
private

◆ negated_

bool peg::CharacterClass::negated_
private

◆ ranges_

std::vector<std::pair<char32_t, char32_t> > peg::CharacterClass::ranges_
private

The documentation for this class was generated from the following file:
  • libcockatrice_utility/libcockatrice/utility/peglib.h