Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
peg::KeywordGuardData Struct Reference

#include <peglib.h>

Static Public Member Functions

static bool matches_any (const std::vector< std::string > &keywords, std::string_view input)

Public Attributes

std::bitset< 256 > identifier_first
std::bitset< 256 > identifier_rest
std::vector< std::string > exact_keywords
std::vector< std::string > prefix_keywords
size_t min_keyword_len = 0
size_t max_keyword_len = 0

Member Function Documentation

◆ matches_any()

bool peg::KeywordGuardData::matches_any ( const std::vector< std::string > & keywords,
std::string_view input )
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ exact_keywords

std::vector<std::string> peg::KeywordGuardData::exact_keywords

◆ identifier_first

std::bitset<256> peg::KeywordGuardData::identifier_first

◆ identifier_rest

std::bitset<256> peg::KeywordGuardData::identifier_rest

◆ max_keyword_len

size_t peg::KeywordGuardData::max_keyword_len = 0

◆ min_keyword_len

size_t peg::KeywordGuardData::min_keyword_len = 0

◆ prefix_keywords

std::vector<std::string> peg::KeywordGuardData::prefix_keywords

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