Beispiel #1
0
 bool contains(cstring_span<> word) const { return symbols_.find(word) != kNullIndex; }
Beispiel #2
0
 bool contains(std::string const& word) const { return symbols_.find(word) != kNullIndex; }
Beispiel #3
0
 Sym sym(std::string const& word) const {
   SymInt const i = symbols_.find(word);
   return i == kNullIndex ? NoSymbol : symForIndex(i);
 }
Beispiel #4
0
 Sym sym(cstring_span<> word) const {
   SymInt const i = symbols_.find(word);
   return i == kNullIndex ? NoSymbol : symForIndex(i);
 }
Beispiel #5
0
 SymInt index(std::string const& word) const { return symbols_.find(word); }