Lines Matching refs:offsets
27 marisa::Vector<marisa::UInt32> offsets;
28 tail.build(keys, &offsets, MARISA_BINARY_TAIL);
34 ASSERT(offsets.size() == keys.size() + 1);
35 ASSERT(offsets[0] == 1);
36 ASSERT(offsets[1] == tail.size());
40 tail.build(keys, &offsets, MARISA_TEXT_TAIL);
46 ASSERT(offsets.size() == keys.size() + 1);
47 ASSERT(offsets[0] == 1);
48 ASSERT(offsets[1] == tail.size());
50 tail.build(keys, &offsets, MARISA_BINARY_TAIL);
56 ASSERT(offsets.size() == keys.size() + 1);
57 ASSERT(offsets[0] == 1);
58 ASSERT(offsets[1] == tail.size());
75 tail.build(keys, &offsets, MARISA_BINARY_TAIL);
81 ASSERT(offsets.size() == 7);
83 ASSERT(marisa::String(reinterpret_cast<const char *>(tail[offsets[i]]),
84 offsets[i + 1] - offsets[i]) == keys[i]);
102 ASSERT(marisa::String(reinterpret_cast<const char *>(tail[offsets[i]]),
103 offsets[i + 1] - offsets[i]) == keys[i]);
114 ASSERT(marisa::String(reinterpret_cast<const char *>(tail[offsets[i]]),
115 offsets[i + 1] - offsets[i]) == keys[i]);
129 ASSERT(marisa::String(reinterpret_cast<const char *>(tail[offsets[i]]),
130 offsets[i + 1] - offsets[i]) == keys[i]);
148 marisa::Vector<marisa::UInt32> offsets;
149 tail.build(keys, &offsets, MARISA_TEXT_TAIL);
155 ASSERT(offsets.size() == keys.size());
156 ASSERT(offsets[0] == 1);
157 ASSERT(*tail[offsets[0]] == '\0');
174 tail.build(keys, &offsets, MARISA_TEXT_TAIL);
180 ASSERT(offsets.size() == keys.size());
183 tail[offsets[i]])) == keys[i]);
202 tail[offsets[i]])) == keys[i]);
214 tail[offsets[i]])) == keys[i]);
229 tail[offsets[i]])) == keys[i]);