| 221 | // -------------------------------------------------------------------------- |
| 222 | |
| 223 | string DictionaryInt32Encode(const unordered_map<string, int32>* dictionary) { |
| 224 | vector<string> entries; |
| 225 | for (const auto& entry : *dictionary) { |
| 226 | entries.push_back(StringPrintf("%s:%d", entry.first.c_str(), entry.second)); |
| 227 | } |
| 228 | |
| 229 | string result; |
| 230 | JoinStrings(entries, ",", &result); |
| 231 | return result; |
| 232 | } |
| 233 | |
| 234 | string DictionaryInt64Encode(const unordered_map<string, int64>* dictionary) { |
| 235 | vector<string> entries; |
nothing calls this directly
no test coverage detected