Home
last modified time | relevance | path

Searched refs:MARISA_THROW_IF (Results 1 – 17 of 17) sorted by relevance

/external/marisa-trie/lib/marisa/
Dmapper.cc25 MARISA_THROW_IF((ptr == NULL) || (size == 0), MARISA_PARAM_ERROR); in Mapper()
33 MARISA_THROW_IF((ptr == NULL) || (size == 0), MARISA_PARAM_ERROR);
65 MARISA_THROW_IF(is_open(), MARISA_STATE_ERROR); in open()
66 MARISA_THROW_IF(filename == NULL, MARISA_PARAM_ERROR); in open()
73 MARISA_THROW_IF(file_size > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in open()
80 MARISA_THROW_IF(temp.file_ == NULL, MARISA_IO_ERROR); in open()
83 MARISA_THROW_IF(temp.map_ == NULL, MARISA_IO_ERROR); in open()
86 MARISA_THROW_IF(temp.origin_ == NULL, MARISA_IO_ERROR); in open()
93 MARISA_THROW_IF(is_open(), MARISA_STATE_ERROR); in open()
94 MARISA_THROW_IF(filename == NULL, MARISA_PARAM_ERROR); in open()
[all …]
Dtrie-search.cc43 MARISA_THROW_IF(empty(), MARISA_STATE_ERROR); in restore()
44 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
51 MARISA_THROW_IF(empty(), MARISA_STATE_ERROR); in restore()
52 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
53 MARISA_THROW_IF(key == NULL, MARISA_PARAM_ERROR); in restore()
59 MARISA_THROW_IF(empty(), MARISA_STATE_ERROR); in restore()
60 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
61 MARISA_THROW_IF((key_buf == NULL) && (key_buf_size != 0), in restore()
67 MARISA_THROW_IF(empty(), MARISA_STATE_ERROR); in lookup()
68 MARISA_THROW_IF(str == NULL, MARISA_PARAM_ERROR); in lookup()
[all …]
Dvector-inline.h23 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
117 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in push_back()
118 MARISA_THROW_IF(size_ == max_size(), MARISA_SIZE_ERROR); in push_back()
125 MARISA_THROW_IF(fixed_ || (size_ == 0), MARISA_STATE_ERROR); in pop_back()
131 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in resize()
144 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in resize()
157 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in reserve()
158 MARISA_THROW_IF(capacity > max_size(), MARISA_SIZE_ERROR); in reserve()
175 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in shrink()
183 MARISA_THROW_IF(fixed_, MARISA_STATE_ERROR); in fix()
[all …]
Dreader.cc33 MARISA_THROW_IF(is_open(), MARISA_STATE_ERROR); in open()
34 MARISA_THROW_IF(filename == NULL, MARISA_PARAM_ERROR); in open()
42 MARISA_THROW_IF(file == NULL, MARISA_IO_ERROR); in open()
57 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
74 MARISA_THROW_IF(size_read <= 0, MARISA_IO_ERROR); in read_data()
Dwriter.cc34 MARISA_THROW_IF(is_open(), MARISA_STATE_ERROR); in open()
35 MARISA_THROW_IF(filename == NULL, MARISA_PARAM_ERROR); in open()
53 MARISA_THROW_IF(file == NULL, MARISA_IO_ERROR); in open()
69 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
86 MARISA_THROW_IF(size_written <= 0, MARISA_IO_ERROR); in write_data()
Dmapper.h20 MARISA_THROW_IF(obj == NULL, MARISA_PARAM_ERROR); in map()
26 MARISA_THROW_IF((objs == NULL) && (num_objs != 0), MARISA_PARAM_ERROR); in map()
27 MARISA_THROW_IF(num_objs > (MARISA_UINT32_MAX / sizeof(T)), in map()
Dreader.h23 MARISA_THROW_IF(obj == NULL, MARISA_PARAM_ERROR); in read()
29 MARISA_THROW_IF((objs == NULL) && (num_objs != 0), MARISA_PARAM_ERROR); in read()
30 MARISA_THROW_IF(num_objs > (MARISA_UINT32_MAX / sizeof(T)), in read()
Dtrie-build.cc14 MARISA_THROW_IF((keys == NULL) && (num_keys != 0), MARISA_PARAM_ERROR); in build()
18 MARISA_THROW_IF(keys[i] == NULL, MARISA_PARAM_ERROR); in build()
27 MARISA_THROW_IF(length > MARISA_MAX_LENGTH, MARISA_SIZE_ERROR); in build()
39 MARISA_THROW_IF(keys[i].length() > MARISA_MAX_LENGTH, MARISA_SIZE_ERROR); in build()
51 MARISA_THROW_IF(keys[i].first.length() > MARISA_MAX_LENGTH, in build()
76 MARISA_THROW_IF(!progress.is_valid(), MARISA_PARAM_ERROR); in build_trie()
114 MARISA_THROW_IF(progress.total_size() != temp.total_size(), in build_trie()
279 MARISA_THROW_IF(!has_trie(), MARISA_MEMORY_ERROR); in build_next()
295 MARISA_THROW_IF(!has_trie(), MARISA_MEMORY_ERROR); in build_next()
Dbase.h209 #define MARISA_THROW_IF(cond, status) \ macro
216 MARISA_THROW_IF(cond, status)
224 MARISA_THROW_IF((lhs == NULL) || (rhs == NULL), MARISA_PARAM_ERROR); in Swap()
Dtrie.cc14 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
39 MARISA_THROW_IF(!temp.has_trie(), MARISA_MEMORY_ERROR); in map()
80 MARISA_THROW_IF(!temp.has_trie(), MARISA_MEMORY_ERROR); in read()
149 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
Dwriter.h29 MARISA_THROW_IF((objs == NULL) && (num_objs != 0), MARISA_PARAM_ERROR); in write()
30 MARISA_THROW_IF(num_objs > (MARISA_UINT32_MAX / sizeof(T)), in write()
Dintvector.cc45 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
131 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
Dtrie-inline.h55 MARISA_THROW_IF(empty(), MARISA_STATE_ERROR); in find_callback()
56 MARISA_THROW_IF(str == NULL, MARISA_PARAM_ERROR); in find_callback()
63 MARISA_THROW_IF(empty(), MARISA_STATE_ERROR); in find_callback()
64 MARISA_THROW_IF((ptr == NULL) && (length != 0), MARISA_PARAM_ERROR); in find_callback()
Dprogress.h23 MARISA_THROW_IF(total_size_ > (MARISA_UINT32_MAX - total_size), in test_total_size()
Dbitvector.h42 MARISA_THROW_IF(size_ == max_size(), MARISA_SIZE_ERROR); in push_back()
Dbitvector.cc258 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
561 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
/external/marisa-trie/
Dandroid_diff.txt65 // MARISA_THROW_IF throws an exception with `status' if `cond' is true.
66 #define MARISA_THROW_IF(cond, status) \