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

#include <peglib.h>

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

Public Member Functions

 LiteralString (std::string &&s, bool ignore_case)
 LiteralString (const std::string &s, bool ignore_case)
size_t parse_core (const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) 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

Public Attributes

std::string lit_
bool ignore_case_
std::once_flag init_is_word_
bool is_word_

Constructor & Destructor Documentation

◆ LiteralString() [1/2]

peg::LiteralString::LiteralString ( std::string && s,
bool ignore_case )
inline

◆ LiteralString() [2/2]

peg::LiteralString::LiteralString ( const std::string & s,
bool ignore_case )
inline

Member Function Documentation

◆ accept()

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

Implements peg::Ope.

Here is the call graph for this function:

◆ parse_core()

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

Implements peg::Ope.

Here is the call graph for this function:

Member Data Documentation

◆ ignore_case_

bool peg::LiteralString::ignore_case_

◆ init_is_word_

std::once_flag peg::LiteralString::init_is_word_
mutable

◆ is_word_

bool peg::LiteralString::is_word_
mutable

◆ lit_

std::string peg::LiteralString::lit_

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