Lines Matching refs:symbol
0 // symbol-table.cc
17 // Classes to provide symbol-to-integer and integer-to-symbol mappings.
19 #include "fst/lib/symbol-table.h"
25 "Require symbol tables to match when appropriate");
32 // Identifies stream data as a symbol table (and its endianity)
38 LOG(ERROR) << "SymbolTable::ReadText: Can't open symbol file: "
58 const char *symbol = col[0];
68 impl->AddSymbol(symbol, key);
82 int64 SymbolTableImpl::AddSymbol(const string& symbol, int64 key) {
84 symbol_map_.find(symbol);
88 char *csymbol = new char[symbol.size() + 1];
89 strcpy(csymbol, symbol.c_str());
116 string symbol;
119 ReadType(strm, &symbol);
121 impl->AddSymbol(symbol, key);
135 const string symbol = symbols_[i];
136 WriteType(strm, symbol);
137 hash_map<string, int64>::const_iterator it = symbol_map_.find(symbol);