| 71 | |
| 72 | template <typename TAdaptedString> |
| 73 | StringNode* get(const TAdaptedString& str) const { |
| 74 | for (auto node = strings_; node; node = node->next) { |
| 75 | if (stringEquals(str, adaptString(node->data, node->length))) |
| 76 | return node; |
| 77 | } |
| 78 | return nullptr; |
| 79 | } |
| 80 | |
| 81 | void dereference(const char* s, Allocator* allocator) { |
| 82 | StringNode* prev = nullptr; |