Lines Matching refs:pool
251 void StringPool::Merge(StringPool&& pool) { in Merge() argument
253 for (std::unique_ptr<Entry>& entry : pool.strings_) { in Merge()
258 std::move(pool.styles_.begin(), pool.styles_.end(), std::back_inserter(styles_)); in Merge()
259 pool.styles_.clear(); in Merge()
260 std::move(pool.strings_.begin(), pool.strings_.end(), std::back_inserter(strings_)); in Merge()
261 pool.strings_.clear(); in Merge()
262 indexed_strings_.insert(pool.indexed_strings_.begin(), pool.indexed_strings_.end()); in Merge()
263 pool.indexed_strings_.clear(); in Merge()
434 bool StringPool::Flatten(BigBuffer* out, const StringPool& pool, bool utf8, in Flatten() argument
441 header->stringCount = util::HostToDevice32(pool.size()); in Flatten()
442 header->styleCount = util::HostToDevice32(pool.styles_.size()); in Flatten()
447 uint32_t* indices = pool.size() != 0 ? out->NextBlock<uint32_t>(pool.size()) : nullptr; in Flatten()
449 pool.styles_.size() != 0 ? out->NextBlock<uint32_t>(pool.styles_.size()) : nullptr; in Flatten()
455 for (const std::unique_ptr<StyleEntry>& entry : pool.styles_) { in Flatten()
460 for (const std::unique_ptr<Entry>& entry : pool.strings_) { in Flatten()
471 for (const std::unique_ptr<StyleEntry>& entry : pool.styles_) { in Flatten()
503 bool StringPool::FlattenUtf8(BigBuffer* out, const StringPool& pool, IDiagnostics* diag) { in FlattenUtf8() argument
504 return Flatten(out, pool, true, diag); in FlattenUtf8()
507 bool StringPool::FlattenUtf16(BigBuffer* out, const StringPool& pool, IDiagnostics* diag) { in FlattenUtf16() argument
508 return Flatten(out, pool, false, diag); in FlattenUtf16()