136 {
137 RecodedCharID extended = code;
138 int length = code.length();
140 if (final_codes != nullptr) {
141 for (int ending : *final_codes) {
142 EXPECT_GT(times_seen[ending](length), 0);
143 extended.Set(length, ending);
145 EXPECT_NE(INVALID_UNICHAR_ID, unichar_id);
146 }
147 }
149 if (next_codes != nullptr) {
150 for (int extension : *next_codes) {
151 EXPECT_GT(times_seen[extension](length), 0);
152 extended.Set(length, extension);
154 }
155 }
156 }
const std::vector< int > * GetFinalCodes(const RecodedCharID &code) const
const std::vector< int > * GetNextCodes(const RecodedCharID &code) const
int DecodeUnichar(const RecodedCharID &code) const
UnicharCompress compressed_
void CheckCodeExtensions(const RecodedCharID &code, const std::vector< RecodedCharID > ×_seen)