Home
last modified time | relevance | path

Searched refs:MARISA_DEBUG_IF (Results 1 – 23 of 23) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/vector/
Dvector.h43 MARISA_DEBUG_IF(fixed_, MARISA_STATE_ERROR); in push_back()
44 MARISA_DEBUG_IF(size_ == max_size(), MARISA_SIZE_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()
87 MARISA_DEBUG_IF(capacity > max_size(), MARISA_SIZE_ERROR); in reserve()
118 MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
122 MARISA_DEBUG_IF(size_ == 0, MARISA_STATE_ERROR); in front()
[all …]
Drank-index.h15 MARISA_DEBUG_IF(value > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_abs()
19 MARISA_DEBUG_IF(value > 64, MARISA_RANGE_ERROR); in set_rel1()
23 MARISA_DEBUG_IF(value > 128, MARISA_RANGE_ERROR); in set_rel2()
27 MARISA_DEBUG_IF(value > 192, MARISA_RANGE_ERROR); in set_rel3()
31 MARISA_DEBUG_IF(value > 256, MARISA_RANGE_ERROR); in set_rel4()
35 MARISA_DEBUG_IF(value > 320, MARISA_RANGE_ERROR); in set_rel5()
39 MARISA_DEBUG_IF(value > 384, MARISA_RANGE_ERROR); in set_rel6()
43 MARISA_DEBUG_IF(value > 448, MARISA_RANGE_ERROR); in set_rel7()
Dbit-vector.cc349 MARISA_DEBUG_IF(ranks_.empty(), MARISA_STATE_ERROR); in rank1()
350 MARISA_DEBUG_IF(i > size_, MARISA_BOUND_ERROR); in rank1()
389 MARISA_DEBUG_IF(select0s_.empty(), MARISA_STATE_ERROR); in select0()
390 MARISA_DEBUG_IF(i >= num_0s(), MARISA_BOUND_ERROR); in select0()
393 MARISA_DEBUG_IF((select_id + 1) >= select0s_.size(), MARISA_BOUND_ERROR); in select0()
451 MARISA_DEBUG_IF(select1s_.empty(), MARISA_STATE_ERROR); in select1()
452 MARISA_DEBUG_IF(i >= num_1s(), MARISA_BOUND_ERROR); in select1()
455 MARISA_DEBUG_IF((select_id + 1) >= select1s_.size(), MARISA_BOUND_ERROR); in select1()
515 MARISA_DEBUG_IF(ranks_.empty(), MARISA_STATE_ERROR); in rank1()
516 MARISA_DEBUG_IF(i > size_, MARISA_BOUND_ERROR); in rank1()
[all …]
Dbit-vector.h65 MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
71 MARISA_DEBUG_IF(ranks_.empty(), MARISA_STATE_ERROR); in rank0()
72 MARISA_DEBUG_IF(i > size_, MARISA_BOUND_ERROR); in rank0()
Dflat-vector.h41 MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
179 MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR); in set()
180 MARISA_DEBUG_IF(value > mask_, MARISA_RANGE_ERROR); in set()
/external/marisa-trie/lib/marisa/grimoire/trie/
Dkey.h28 MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
33 MARISA_DEBUG_IF(pos > length_, MARISA_BOUND_ERROR); in substr()
34 MARISA_DEBUG_IF(length > length_, MARISA_BOUND_ERROR); in substr()
35 MARISA_DEBUG_IF(pos > (length_ - length), MARISA_BOUND_ERROR); in substr()
41 MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR); in set_str()
42 MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_str()
50 MARISA_DEBUG_IF(terminal > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_terminal()
54 MARISA_DEBUG_IF(id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_id()
134 MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
139 MARISA_DEBUG_IF(pos > length_, MARISA_BOUND_ERROR); in substr()
[all …]
Dhistory.h17 MARISA_DEBUG_IF(node_id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_node_id()
21 MARISA_DEBUG_IF(louds_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_louds_pos()
25 MARISA_DEBUG_IF(key_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key_pos()
29 MARISA_DEBUG_IF(link_id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_link_id()
33 MARISA_DEBUG_IF(key_id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key_id()
Dentry.h24 MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
29 MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR); in set_str()
30 MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_str()
35 MARISA_DEBUG_IF(id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_id()
Dcache.h28 MARISA_DEBUG_IF(parent > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_parent()
32 MARISA_DEBUG_IF(child > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_child()
39 MARISA_DEBUG_IF(extra > (MARISA_UINT32_MAX >> 8), MARISA_SIZE_ERROR); in set_extra()
Dstate.h28 MARISA_DEBUG_IF(node_id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_node_id()
32 MARISA_DEBUG_IF(query_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_query_pos()
36 MARISA_DEBUG_IF(history_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_history_pos()
Drange.h15 MARISA_DEBUG_IF(begin > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_begin()
19 MARISA_DEBUG_IF(end > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_end()
23 MARISA_DEBUG_IF(key_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key_pos()
Dtail.cc62 MARISA_DEBUG_IF(buf_.empty(), MARISA_STATE_ERROR); in restore()
77 MARISA_DEBUG_IF(buf_.empty(), MARISA_STATE_ERROR); in match()
78 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), 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()
488 MARISA_DEBUG_IF(parent >= child, MARISA_RANGE_ERROR); in cache()
511 MARISA_DEBUG_IF(parent >= child, MARISA_RANGE_ERROR); in cache()
603 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), in find_child()
648 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), in predictive_find_child()
719 MARISA_DEBUG_IF(node_id == 0, MARISA_RANGE_ERROR); in restore_()
752 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), in match_()
[all …]
Dtail.h28 MARISA_DEBUG_IF(offset >= buf_.size(), MARISA_BOUND_ERROR);
/external/marisa-trie/include/marisa/
Dkey.h24 MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
29 MARISA_DEBUG_IF(str == NULL, MARISA_NULL_ERROR); in set_str()
34 MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_str()
39 MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR); in set_str()
40 MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_str()
45 MARISA_DEBUG_IF(id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_id()
Dagent.h40 MARISA_DEBUG_IF(str == NULL, MARISA_NULL_ERROR); in set_key()
44 MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR); in set_key()
45 MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key()
49 MARISA_DEBUG_IF(id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key()
Dscoped-ptr.h19 MARISA_DEBUG_IF((ptr != NULL) && (ptr == ptr_), MARISA_RESET_ERROR);
24 MARISA_DEBUG_IF(ptr_ == NULL, MARISA_STATE_ERROR);
28 MARISA_DEBUG_IF(ptr_ == NULL, MARISA_STATE_ERROR);
Dquery.h22 MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
27 MARISA_DEBUG_IF(str == NULL, MARISA_NULL_ERROR); in set_str()
36 MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR); in set_str()
Dscoped-array.h19 MARISA_DEBUG_IF((array != NULL) && (array == array_), MARISA_RESET_ERROR);
24 MARISA_DEBUG_IF(array_ == NULL, MARISA_STATE_ERROR);
Dexception.h75 #define MARISA_DEBUG_IF(cond, error_code) MARISA_THROW_IF(cond, error_code) macro
77 #define MARISA_DEBUG_IF(cond, error_code) macro
Dkeyset.h25 MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
29 MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
/external/marisa-trie/lib/marisa/grimoire/algorithm/
Dsort.h17 MARISA_DEBUG_IF(depth > unit.length(), MARISA_BOUND_ERROR); in get_label()
60 MARISA_DEBUG_IF(l > r, MARISA_BOUND_ERROR); in insertion_sort()
81 MARISA_DEBUG_IF(l > r, MARISA_BOUND_ERROR); in sort()
188 MARISA_DEBUG_IF(begin > end, MARISA_BOUND_ERROR); in sort()
/external/marisa-trie/lib/marisa/
Dkeyset.cc14 MARISA_DEBUG_IF(size_ == MARISA_SIZE_MAX, MARISA_SIZE_ERROR); in push_back()
29 MARISA_DEBUG_IF(size_ == MARISA_SIZE_MAX, MARISA_SIZE_ERROR); in push_back()
49 MARISA_DEBUG_IF(size_ == MARISA_SIZE_MAX, MARISA_SIZE_ERROR); in push_back()
60 MARISA_DEBUG_IF(size_ == MARISA_SIZE_MAX, MARISA_SIZE_ERROR); in push_back()