Lines Matching defs:pool

26     StringPool pool;
28 StringPool::Ref ref = pool.makeRef(u"wut");
33 StringPool pool;
35 StringPool::Ref ref = pool.makeRef(u"wut");
36 StringPool::Ref ref2 = pool.makeRef(u"hey");
43 StringPool pool;
45 StringPool::Ref ref = pool.makeRef(u"wut");
46 StringPool::Ref ref2 = pool.makeRef(u"wut");
50 EXPECT_EQ(1u, pool.size());
54 StringPool pool;
56 StringPool::Ref ref = pool.makeRef(u"z");
57 StringPool::Ref ref2 = pool.makeRef(u"a");
58 StringPool::Ref ref3 = pool.makeRef(u"m");
66 StringPool pool;
68 StringPool::Ref refA = pool.makeRef(u"foo");
70 StringPool::Ref ref = pool.makeRef(u"wut");
72 EXPECT_EQ(2u, pool.size());
74 StringPool::Ref refB = pool.makeRef(u"bar");
76 EXPECT_EQ(3u, pool.size());
77 pool.prune();
78 EXPECT_EQ(2u, pool.size());
79 StringPool::const_iterator iter = begin(pool);
88 StringPool pool;
90 StringPool::Ref ref = pool.makeRef(u"z");
91 StringPool::StyleRef ref2 = pool.makeRef(StyleString{ {u"a"} });
92 StringPool::Ref ref3 = pool.makeRef(u"m");
103 pool.sort([](const StringPool::Entry& a, const StringPool::Entry& b) -> bool {
119 StringPool pool;
121 StringPool::Ref ref = pool.makeRef(u"z");
122 StringPool::Ref ref2 = pool.makeRef(u"a");
123 StringPool::Ref ref3 = pool.makeRef(u"m");
125 pool.sort([](const StringPool::Entry& a, const StringPool::Entry& b) -> bool {
129 StringPool::Ref ref4 = pool.makeRef(u"z");
130 StringPool::Ref ref5 = pool.makeRef(u"a");
131 StringPool::Ref ref6 = pool.makeRef(u"m");
139 StringPool pool;
148 StringPool::StyleRef ref = pool.makeRef(str);
161 StringPool pool;
163 StringPool::Ref ref = pool.makeRef(u"android");
166 StringPool::StyleRef styleRef = pool.makeRef(str);
174 StringPool pool;
176 StringPool::flattenUtf8(&buffer, pool);
186 StringPool pool;
187 pool.makeRef(u"\u093f");
189 StringPool::flattenUtf16(&buffer, pool);
206 StringPool pool;
208 StringPool::Ref ref1 = pool.makeRef(u"hello");
209 StringPool::Ref ref2 = pool.makeRef(u"goodbye");
210 StringPool::Ref ref3 = pool.makeRef(sLongString);
211 StringPool::StyleRef ref4 = pool.makeRef(StyleString{
222 StringPool::flattenUtf8(&buffer, pool);