/external/marisa-trie/tests/ |
H A D | tail-test.cc | 4 #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 D | unit-test.cc | 4 #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 D | io-test.cc | 13 #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 D | vector-test.cc | 7 #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 D | assert.h | 14 } catch (const marisa::Exception &ex) { \
|
H A D | trie-test.cc | 3 #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 D | Android.mk | 19 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 D | marisa-find.cc | 7 #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 D | marisa-lookup.cc | 5 #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 D | marisa-benchmark.cc | 10 #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 D | marisa-predict.cc | 7 #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 D | marisa-build.cc | 9 #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 D | cell.h | 6 namespace marisa { namespace 44 } // namespace marisa
|
H A D | popcount.h | 6 namespace marisa { namespace 36 } // namespace marisa
|
H A D | progress.cc | 3 namespace marisa { namespace 55 } // namespace marisa
|
H A D | progress.h | 6 namespace marisa { namespace 61 } // namespace marisa
|
H A D | container.h | 8 namespace marisa { namespace 60 } // namespace marisa
|
H A D | key.h | 4 namespace marisa { namespace 64 } // namespace marisa
|
H A D | mapper.h | 8 namespace marisa { namespace 60 } // namespace marisa
|
H A D | query.h | 8 namespace marisa { namespace 59 } // namespace marisa
|
H A D | reader.h | 9 namespace marisa { namespace 57 } // namespace marisa
|
H A D | tail.h | 4 #include "marisa-string.h" 7 namespace marisa { namespace 70 } // namespace marisa
|
H A D | writer.h | 9 namespace marisa { namespace 57 } // namespace marisa
|
H A D | bitvector.h | 7 namespace marisa { namespace 95 } // namespace marisa
|
H A D | range.h | 6 namespace marisa { namespace 86 } // namespace marisa
|