/external/marisa-trie/lib/marisa/ |
D | mapper.cc | 25 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 …]
|
D | trie-search.cc | 43 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 …]
|
D | vector-inline.h | 23 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 …]
|
D | reader.cc | 33 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()
|
D | writer.cc | 34 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()
|
D | mapper.h | 20 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()
|
D | reader.h | 23 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()
|
D | trie-build.cc | 14 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()
|
D | base.h | 209 #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()
|
D | trie.cc | 14 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()
|
D | writer.h | 29 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()
|
D | intvector.cc | 45 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap() 131 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
|
D | trie-inline.h | 55 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()
|
D | progress.h | 23 MARISA_THROW_IF(total_size_ > (MARISA_UINT32_MAX - total_size), in test_total_size()
|
D | bitvector.h | 42 MARISA_THROW_IF(size_ == max_size(), MARISA_SIZE_ERROR); in push_back()
|
D | bitvector.cc | 258 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap() 561 MARISA_THROW_IF(rhs == NULL, MARISA_PARAM_ERROR); in swap()
|
/external/marisa-trie/ |
D | android_diff.txt | 65 // MARISA_THROW_IF throws an exception with `status' if `cond' is true. 66 #define MARISA_THROW_IF(cond, status) \
|