| 142 | } |
| 143 | |
| 144 | ValueType * Find(char const * str) const |
| 145 | { |
| 146 | auto fs = ToFixedString(str); |
| 147 | if (fs) { |
| 148 | auto item = HashTable[(uint64_t)fs.Str % HashSize]; |
| 149 | while (item != nullptr) { |
| 150 | if (strcmp(str, item->Key.Str) == 0) { |
| 151 | return &item->Value; |
| 152 | } |
| 153 | |
| 154 | item = item->Next; |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | return nullptr; |
| 159 | } |
| 160 | |
| 161 | FixedString * FindByValue(ValueType const & value) const |
| 162 | { |
nothing calls this directly
no test coverage detected