Home
last modified time | relevance | path

Searched refs:MARISA_STATE_ERROR (Results 1 – 16 of 16) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/vector/
Dvector.h43 MARISA_DEBUG_IF(fixed_, MARISA_STATE_ERROR); in push_back()
51 MARISA_DEBUG_IF(fixed_, MARISA_STATE_ERROR); in pop_back()
52 MARISA_DEBUG_IF(size_ == 0, MARISA_STATE_ERROR); in pop_back()
58 MARISA_DEBUG_IF(fixed_, MARISA_STATE_ERROR); in resize()
71 MARISA_DEBUG_IF(fixed_, MARISA_STATE_ERROR); in resize()
83 MARISA_DEBUG_IF(fixed_, MARISA_STATE_ERROR); in reserve()
100 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in shrink()
107 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in fix()
122 MARISA_DEBUG_IF(size_ == 0, MARISA_STATE_ERROR); in front()
126 MARISA_DEBUG_IF(size_ == 0, MARISA_STATE_ERROR); in back()
[all …]
Dbit-vector.cc349 MARISA_DEBUG_IF(ranks_.empty(), MARISA_STATE_ERROR); in rank1()
389 MARISA_DEBUG_IF(select0s_.empty(), MARISA_STATE_ERROR); in select0()
451 MARISA_DEBUG_IF(select1s_.empty(), MARISA_STATE_ERROR); in select1()
515 MARISA_DEBUG_IF(ranks_.empty(), MARISA_STATE_ERROR); in rank1()
558 MARISA_DEBUG_IF(select0s_.empty(), MARISA_STATE_ERROR); in select0()
649 MARISA_DEBUG_IF(select1s_.empty(), MARISA_STATE_ERROR); in select1()
Dbit-vector.h71 MARISA_DEBUG_IF(ranks_.empty(), MARISA_STATE_ERROR); in rank0()
/external/marisa-trie/lib/marisa/
Dtrie.cc69 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in save()
78 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in write()
87 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in lookup()
95 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in reverse_lookup()
103 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in common_prefix_search()
111 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in predictive_search()
119 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in num_tries()
124 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in num_keys()
129 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in num_nodes()
134 MARISA_THROW_IF(trie_.get() == NULL, MARISA_STATE_ERROR); in tail_mode()
[all …]
Dagent.cc36 MARISA_THROW_IF(state_.get() != NULL, MARISA_STATE_ERROR); in init_state()
/external/marisa-trie/tests/
Dmarisa-test.cc17 EXCEPT(trie.save("marisa-test.dat"), MARISA_STATE_ERROR); in TestEmptyTrie()
19 EXCEPT(trie.write(::_fileno(stdout)), MARISA_STATE_ERROR); in TestEmptyTrie()
21 EXCEPT(trie.write(::fileno(stdout)), MARISA_STATE_ERROR); in TestEmptyTrie()
23 EXCEPT(std::cout << trie, MARISA_STATE_ERROR); in TestEmptyTrie()
24 EXCEPT(marisa::fwrite(stdout, trie), MARISA_STATE_ERROR); in TestEmptyTrie()
28 EXCEPT(trie.lookup(agent), MARISA_STATE_ERROR); in TestEmptyTrie()
29 EXCEPT(trie.reverse_lookup(agent), MARISA_STATE_ERROR); in TestEmptyTrie()
30 EXCEPT(trie.common_prefix_search(agent), MARISA_STATE_ERROR); in TestEmptyTrie()
31 EXCEPT(trie.predictive_search(agent), MARISA_STATE_ERROR); in TestEmptyTrie()
33 EXCEPT(trie.num_tries(), MARISA_STATE_ERROR); in TestEmptyTrie()
[all …]
Dvector-test.cc241 EXCEPT(vec.fix(), MARISA_STATE_ERROR); in TestVector()
242 EXCEPT(vec.push_back(0), MARISA_STATE_ERROR); in TestVector()
243 EXCEPT(vec.resize(0), MARISA_STATE_ERROR); in TestVector()
244 EXCEPT(vec.reserve(0), MARISA_STATE_ERROR); in TestVector()
Dbase-test.cc282 EXCEPT(agent.init_state(), MARISA_STATE_ERROR); in TestAgent()
/external/marisa-trie/include/marisa/
Dscoped-ptr.h24 MARISA_DEBUG_IF(ptr_ == NULL, MARISA_STATE_ERROR);
28 MARISA_DEBUG_IF(ptr_ == NULL, MARISA_STATE_ERROR);
Dscoped-array.h24 MARISA_DEBUG_IF(array_ == NULL, MARISA_STATE_ERROR);
Dbase.h62 MARISA_STATE_ERROR = 1, enumerator
/external/marisa-trie/lib/marisa/grimoire/trie/
Dtail.cc62 MARISA_DEBUG_IF(buf_.empty(), MARISA_STATE_ERROR); in restore()
77 MARISA_DEBUG_IF(buf_.empty(), MARISA_STATE_ERROR); in match()
109 MARISA_DEBUG_IF(buf_.empty(), MARISA_STATE_ERROR); in prefix_match()
Dlouds-trie.cc55 MARISA_DEBUG_IF(!agent.has_state(), MARISA_STATE_ERROR); in lookup()
73 MARISA_DEBUG_IF(!agent.has_state(), MARISA_STATE_ERROR); in reverse_lookup()
106 MARISA_DEBUG_IF(!agent.has_state(), MARISA_STATE_ERROR); in common_prefix_search()
137 MARISA_DEBUG_IF(!agent.has_state(), MARISA_STATE_ERROR); in predictive_search()
/external/marisa-trie/lib/marisa/grimoire/io/
Dreader.cc68 MARISA_THROW_IF(!is_open(), MARISA_STATE_ERROR); in seek()
113 MARISA_THROW_IF(!is_open(), MARISA_STATE_ERROR); in read_data()
Dwriter.cc68 MARISA_THROW_IF(!is_open(), MARISA_STATE_ERROR); in seek()
113 MARISA_THROW_IF(!is_open(), MARISA_STATE_ERROR); in write_data()
Dmapper.cc71 MARISA_THROW_IF(!is_open(), MARISA_STATE_ERROR); in seek()
99 MARISA_THROW_IF(!is_open(), MARISA_STATE_ERROR); in map_data()