Lines Matching refs:marisa_alpha
4 #include <marisa_alpha/tail.h>
13 marisa_alpha::Tail tail;
17 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32));
19 marisa_alpha::Vector<marisa_alpha::String> keys;
24 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32));
26 keys.push_back(marisa_alpha::String(""));
27 marisa_alpha::Vector<marisa_alpha::UInt32> offsets;
33 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
39 keys[0] = marisa_alpha::String(binary_key, sizeof(binary_key));
45 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
55 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
61 keys.push_back(marisa_alpha::String("abc"));
62 keys.push_back(marisa_alpha::String("bc"));
63 keys.push_back(marisa_alpha::String("abc"));
64 keys.push_back(marisa_alpha::String("c"));
65 keys.push_back(marisa_alpha::String("ABC"));
66 keys.push_back(marisa_alpha::String("AB"));
73 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
80 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
82 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
83 ASSERT(marisa_alpha::String(
93 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32));
95 marisa_alpha::Mapper mapper;
101 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
102 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
103 ASSERT(marisa_alpha::String(
114 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
115 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
116 ASSERT(marisa_alpha::String(
130 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
131 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
132 ASSERT(marisa_alpha::String(
143 marisa_alpha::Tail tail;
144 marisa_alpha::Vector<marisa_alpha::String> keys;
149 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32));
151 keys.push_back(marisa_alpha::String(""));
152 marisa_alpha::Vector<marisa_alpha::UInt32> offsets;
158 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
164 keys.push_back(marisa_alpha::String("abc"));
165 keys.push_back(marisa_alpha::String("bc"));
166 keys.push_back(marisa_alpha::String("abc"));
167 keys.push_back(marisa_alpha::String("c"));
168 keys.push_back(marisa_alpha::String("ABC"));
169 keys.push_back(marisa_alpha::String("AB"));
176 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
183 ASSERT(tail.total_size() == (sizeof(marisa_alpha::UInt32) + tail.size()));
185 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
186 ASSERT(marisa_alpha::String(reinterpret_cast<const char *>(
195 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32));
197 marisa_alpha::Mapper mapper;
203 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32) + tail.size());
204 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
205 ASSERT(marisa_alpha::String(reinterpret_cast<const char *>(
215 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32) + tail.size());
216 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
217 ASSERT(marisa_alpha::String(reinterpret_cast<const char *>(
230 ASSERT(tail.total_size() == sizeof(marisa_alpha::UInt32) + tail.size());
231 for (marisa_alpha::UInt32 i = 0; i < keys.size(); ++i) {
232 ASSERT(marisa_alpha::String(reinterpret_cast<const char *>(