| 94 | } |
| 95 | |
| 96 | Entry* Find(const std::string& s) { |
| 97 | auto it = entries.find(s); |
| 98 | if (it != entries.end()) { |
| 99 | return it->second.get(); |
| 100 | } else { |
| 101 | return nullptr; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | bool CreateEntry(const std::string& s, std::unique_ptr<Entry> entry) { |
| 106 | DCHECK(!s.empty()); |
no test coverage detected