| 2182 | bool dedup_vtables_; |
| 2183 | |
| 2184 | struct StringOffsetCompare { |
| 2185 | StringOffsetCompare(const vector_downward &buf) : buf_(&buf) {} |
| 2186 | bool operator()(const Offset<String> &a, const Offset<String> &b) const { |
| 2187 | auto stra = reinterpret_cast<const String *>(buf_->data_at(a.o)); |
| 2188 | auto strb = reinterpret_cast<const String *>(buf_->data_at(b.o)); |
| 2189 | return StringLessThan(stra->data(), stra->size(), strb->data(), |
| 2190 | strb->size()); |
| 2191 | } |
| 2192 | const vector_downward *buf_; |
| 2193 | }; |
| 2194 | |
| 2195 | // For use with CreateSharedString. Instantiated on first use only. |
| 2196 | typedef std::set<Offset<String>, StringOffsetCompare> StringOffsetMap; |
no outgoing calls
no test coverage detected