Searched refs:marisa (Results 1 - 25 of 45) sorted by relevance

12

/external/marisa-trie/tests/
H A Dtail-test.cc4 #include <marisa/tail.h>
13 marisa::Tail tail;
17 ASSERT(tail.total_size() == sizeof(marisa::UInt32));
19 marisa::Vector<marisa::String> keys;
24 ASSERT(tail.total_size() == sizeof(marisa::UInt32));
26 keys.push_back(marisa::String(""));
27 marisa::Vector<marisa::UInt32> offsets;
33 ASSERT(tail.total_size() == (sizeof(marisa
[all...]
H A Dunit-test.cc4 #include <marisa/base.h>
5 #include <marisa/popcount.h>
6 #include <marisa/rank.h>
7 #include <marisa/string.h>
8 #include <marisa/key.h>
9 #include <marisa/progress.h>
10 #include <marisa/range.h>
11 #include <marisa/query.h>
12 #include <marisa/container.h>
13 #include <marisa/cel
[all...]
H A Dio-test.cc13 #include <marisa/io.h>
23 marisa::Writer writer;
25 marisa::UInt32 value = 123;
34 marisa::Writer writer;
36 marisa::UInt32 value = 234;
41 marisa::Writer writer;
48 marisa::Reader reader;
50 marisa::UInt32 value;
65 marisa::Mapper mapper;
67 marisa
[all...]
H A Dvector-test.cc7 #include <marisa/vector.h>
8 #include <marisa/intvector.h>
9 #include <marisa/bitvector.h>
23 marisa::Vector<int> vec;
30 ASSERT(vec.total_size() == sizeof(marisa::UInt32));
35 ASSERT(static_cast<const marisa::Vector<int> &>(vec)[i] == values[i]);
41 ASSERT(vec.total_size() == sizeof(marisa::UInt32)
44 ASSERT(static_cast<const marisa::Vector<int> &>(vec).front()
46 ASSERT(static_cast<const marisa::Vector<int> &>(vec).back()
57 ASSERT(static_cast<const marisa
[all...]
H A Dassert.h14 } catch (const marisa::Exception &ex) { \
H A Dtrie-test.cc3 #include <marisa.h>
11 FindCallback(std::vector<marisa::UInt32> *key_ids,
17 bool operator()(marisa::UInt32 key_id, std::size_t key_length) const {
24 std::vector<marisa::UInt32> *key_ids_;
33 PredictCallback(std::vector<marisa::UInt32> *key_ids,
39 bool operator()(marisa::UInt32 key_id, const std::string &key) const {
46 std::vector<marisa::UInt32> *key_ids_;
56 marisa::Trie trie;
61 ASSERT(trie.total_size() == (sizeof(marisa::UInt32) * 23));
75 std::vector<marisa
[all...]
/external/marisa-trie/
H A DAndroid.mk19 LOCAL_C_INCLUDES += $(LOCAL_PATH)/lib/marisa
23 LOCAL_SRC_FILES := lib/marisa/base.cc \
24 lib/marisa/intvector.cc \
25 lib/marisa/progress.cc \
26 lib/marisa/tail.cc \
27 lib/marisa/trie.cc \
28 lib/marisa/trie-search.cc \
29 lib/marisa/bitvector.cc \
30 lib/marisa/mapper.cc \
31 lib/marisa/reade
[all...]
/external/marisa-trie/tools/
H A Dmarisa-find.cc7 #include <marisa.h>
39 void find_all(const marisa::Trie &trie, const std::string &str) {
40 static std::vector<marisa::UInt32> key_ids;
56 void find_first(const marisa::Trie &trie, const std::string &str) {
58 const marisa::UInt32 key_id = trie.find_first(str, &length);
67 void find_last(const marisa::Trie &trie, const std::string &str) {
69 const marisa::UInt32 key_id = trie.find_last(str, &length);
88 marisa::Trie trie;
89 marisa::Mapper mapper;
93 } catch (const marisa
[all...]
H A Dmarisa-lookup.cc5 #include <marisa.h>
33 marisa::Trie trie;
34 marisa::Mapper mapper;
38 } catch (const marisa::Exception &ex) {
46 } catch (const marisa::Exception &ex) {
55 const marisa::UInt32 key_id = trie.lookup(str);
H A Dmarisa-benchmark.cc10 #include <marisa.h>
174 marisa::Trie *trie, std::vector<marisa::UInt32> *key_ids) {
183 void benchmark_restore(const marisa::Trie &trie,
185 const std::vector<marisa::UInt32> &key_ids) {
199 void benchmark_lookup(const marisa::Trie &trie,
201 const std::vector<marisa::UInt32> &key_ids) {
204 const marisa::UInt32 key_id = trie.lookup(keys[i].first);
213 void benchmark_find(const marisa::Trie &trie,
215 const std::vector<marisa
[all...]
H A Dmarisa-predict.cc7 #include <marisa.h>
42 marisa::Trie trie;
43 marisa::Mapper mapper;
47 } catch (const marisa::Exception &ex) {
55 } catch (const marisa::Exception &ex) {
62 std::vector<marisa::UInt32> key_ids;
79 } catch (const marisa::Exception &ex) {
H A Dmarisa-build.cc9 #include <marisa.h>
77 marisa::Trie trie;
81 } catch (const marisa::Exception &ex) {
95 } catch (const marisa::Exception &ex) {
104 } catch (const marisa::Exception &ex) {
/external/marisa-trie/lib/marisa/
H A Dcell.h6 namespace marisa { namespace
44 } // namespace marisa
H A Dpopcount.h6 namespace marisa { namespace
36 } // namespace marisa
H A Dprogress.cc3 namespace marisa { namespace
55 } // namespace marisa
H A Dprogress.h6 namespace marisa { namespace
61 } // namespace marisa
H A Dcontainer.h8 namespace marisa { namespace
60 } // namespace marisa
H A Dkey.h4 namespace marisa { namespace
64 } // namespace marisa
H A Dmapper.h8 namespace marisa { namespace
60 } // namespace marisa
H A Dquery.h8 namespace marisa { namespace
59 } // namespace marisa
H A Dreader.h9 namespace marisa { namespace
57 } // namespace marisa
H A Dtail.h4 #include "marisa-string.h"
7 namespace marisa { namespace
70 } // namespace marisa
H A Dwriter.h9 namespace marisa { namespace
57 } // namespace marisa
H A Dbitvector.h7 namespace marisa { namespace
95 } // namespace marisa
H A Drange.h6 namespace marisa { namespace
86 } // namespace marisa

Completed in 95 milliseconds

12