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

#include <peglib.h>

Classes

struct  Info

Public Member Functions

 Trie (const std::vector< std::string > &items, bool ignore_case)
size_t match (const char *text, size_t text_len, size_t &id) const
size_t size () const

Private Member Functions

std::string to_lower (std::string s) const

Private Attributes

std::map< std::string, Info, std::less<> > dic_
bool ignore_case_

Constructor & Destructor Documentation

◆ Trie()

peg::Trie::Trie ( const std::vector< std::string > & items,
bool ignore_case )
inline
Here is the call graph for this function:

Member Function Documentation

◆ match()

size_t peg::Trie::match ( const char * text,
size_t text_len,
size_t & id ) const
inline
Here is the call graph for this function:

◆ size()

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

◆ to_lower()

std::string peg::Trie::to_lower ( std::string s) const
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ dic_

std::map<std::string, Info, std::less<> > peg::Trie::dic_
private

◆ ignore_case_

bool peg::Trie::ignore_case_
private

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