Home | History | Annotate | Download | only in share

Lines Matching refs:uint32

62 inline uint32 UserDict::get_dict_file_size(UserDictInfo * info) {
75 uint32 ori_freq = extract_score_freq(raw_score);
178 inline void UserDict::set_lemma_flag(uint32 offset, uint8 flag) {
183 inline char UserDict::get_lemma_flag(uint32 offset) {
188 inline char UserDict::get_lemma_nchar(uint32 offset) {
193 inline uint16 * UserDict::get_lemma_spell_ids(uint32 offset) {
198 inline uint16 * UserDict::get_lemma_word(uint32 offset) {
373 uint32 i = 0;
393 uint32 i = 0;
413 uint32 i = 0;
431 uint32 i = 0;
453 uint32 offset = offsets_[middle];
482 uint32 i = 0;
532 uint32 max_off = dict_info_.lemma_count;
535 uint32 start, count;
563 uint32 offset = offsets_[middle];
615 uint32 offset = offsets_by_id_[id_lemma - start_id_];
631 uint32 offset = offsets_by_id_[id_lemma - start_id_];
643 uint32 new_added = 0;
651 uint32 offset = predicts_[j];
657 uint32 nchar = get_lemma_nchar(offset);
670 uint32 cpy_len =
698 uint32 start, count;
716 uint32 offset = offsets_[off];
731 uint32 i = 0;
759 uint32 UserDict::locate_where_to_insert_in_predicts(
765 uint32 last_matched = middle;
769 uint32 offset = offsets_[middle];
773 uint32 minl = nchar < lemma_len ? nchar : lemma_len;
774 uint32 k = 0;
816 uint32 offset = offsets_[middle];
820 uint32 minl = nchar < lemma_len ? nchar : lemma_len;
821 uint32 k = 0;
888 uint32 offset = offsets_by_id_[lemma_id - start_id_];
890 uint32 nchar = get_lemma_nchar(offset);
916 void UserDict::remove_lemma_from_sync_list(uint32 offset) {
918 uint32 i = 0;
932 void UserDict::remove_lemma_from_predict_list(uint32 offset) {
934 uint32 i = 0;
954 uint32 offset = offsets_[off];
955 uint32 nchar = get_lemma_nchar(offset);
980 uint32 offset = offsets_by_id_[lemma_id - start_id_];
982 uint32 nchar = get_lemma_nchar(offset);
1010 uint32 version = kUserDictVersion;
1036 uint32 version;
1100 uint32 *offsets = NULL;
1102 uint32 *syncs = NULL;
1104 uint32 *scores = NULL;
1105 uint32 *ids = NULL;
1106 uint32 *offsets_by_id = NULL;
1108 uint32 *predicts = NULL;
1125 offsets = (uint32 *)malloc((dict_info.lemma_count + kUserDictPreAlloc) << 2);
1129 predicts = (uint32 *)malloc((dict_info.lemma_count + kUserDictPreAlloc) << 2);
1134 syncs = (uint32 *)malloc((dict_info.sync_count + kUserDictPreAlloc) << 2);
1138 scores = (uint32 *)malloc((dict_info.lemma_count + kUserDictPreAlloc) << 2);
1141 ids = (uint32 *)malloc((dict_info.lemma_count + kUserDictPreAlloc) << 2);
1144 offsets_by_id = (uint32 *)malloc(
1363 uint32 *offset, uint32 *length) {
1392 uint32 offset, uint32 length) {
1478 uint32 *offset, uint32 *length) {
1494 uint32 offset, uint32 length) {
1668 for (uint32 i = 0; i < dict_info_.lemma_count; i++) {
1704 uint32 * syncs_bak = syncs_;
1784 uint32 intf = (uint32)utf16le_atoll(fr16, fr16_len);
1822 uint32 i;
1825 uint32 nchar = get_lemma_nchar(offset);
1836 uint32 j;
1877 uint32 intf = extract_score_freq(score);
1946 void UserDict::set_limit(uint32 max_lemma_count,
1947 uint32 max_lemma_size, uint32 reclaim_ratio) {
1971 uint32 count = dict_info_.lemma_count;
1990 for (uint32 i = rc; i < dict_info_.lemma_count; i++) {
2113 uint32 * syncs = (uint32*)realloc(
2133 uint32 offset = offsets_by_id_[lemma_id - start_id_];
2189 uint32 off = dict_info_.lemma_count;
2212 uint32 nchar = get_lemma_nchar(offset);
2220 uint32 temp = offsets_[off];
2234 uint32 j = 0;
2238 uint32 temp = predicts_[off];