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