Searched refs:prefix_to_code (Results 1 – 1 of 1) sorted by relevance
32 DenseMap<Substring, LzwCodeType> prefix_to_code; in LzwEncode() local37 if (prefix_to_code.try_emplace({kNoPrefix, *it}, 0).second) in LzwEncode()50 prefix_to_code[{kNoPrefix, dict_len1[i]}] = i; in LzwEncode()54 CHECK_EQ(prefix_to_code.size(), dict_len1.size()); in LzwEncode()61 LzwCodeType match = prefix_to_code.find({kNoPrefix, *begin})->second; in LzwEncode()65 auto ins = prefix_to_code.try_emplace({match, *it}, prefix_to_code.size()); in LzwEncode()72 match = prefix_to_code.find({kNoPrefix, *it})->second; in LzwEncode()