Searched defs:str_len (Results 1 - 5 of 5) sorted by relevance

/packages/inputmethods/PinyinIME/jni/share/
H A Dsplparser.cpp30 uint16 SpellingParser::splstr_to_idxs(const char *splstr, uint16 str_len, argument
33 if (NULL == splstr || 0 == max_size || 0 == str_len)
49 while (str_pos < str_len) {
143 uint16 SpellingParser::splstr_to_idxs_f(const char *splstr, uint16 str_len, argument
146 uint16 idx_num = splstr_to_idxs(splstr, str_len, spl_idx, start_pos,
159 uint16 SpellingParser::splstr16_to_idxs(const char16 *splstr, uint16 str_len, argument
162 if (NULL == splstr || 0 == max_size || 0 == str_len)
178 while (str_pos < str_len) {
272 uint16 SpellingParser::splstr16_to_idxs_f(const char16 *splstr, uint16 str_len, argument
275 uint16 idx_num = splstr16_to_idxs(splstr, str_len, spl_id
288 get_splid_by_str(const char *splstr, uint16 str_len, bool *is_pre) argument
304 get_splid_by_str_f(const char *splstr, uint16 str_len, bool *is_pre) argument
325 get_splids_parallel(const char *splstr, uint16 str_len, uint16 splidx[], uint16 max_size, uint16 &full_id_num, bool &is_pre) argument
[all...]
H A Ddictlist.cpp348 LemmaIdType DictList::get_lemma_id(const char16 *str, uint16 str_len) { argument
349 if (NULL == str || str_len > kMaxLemmaSize)
352 char16 *found = find_pos_startedbyhzs(str, str_len, cmp_func_[str_len - 1]);
357 assert(static_cast<size_t>(found - buf_) >= start_pos_[str_len - 1]);
359 (start_id_[str_len - 1] +
360 (found - buf_ - start_pos_[str_len - 1]) / str_len);
363 void DictList::convert_to_hanzis(char16 *str, uint16 str_len) { argument
366 for (uint16 str_pos = 0; str_pos < str_len; str_po
371 convert_to_scis_ids(char16 *str, uint16 str_len) argument
[all...]
H A Ddictbuilder.cpp278 const char16 *str, size_t str_len) {
282 for (size_t pos = 0; pos < str_len; pos++) {
277 str_in_hanzis_list(const char16 *hzs, size_t hzs_len, const char16 *str, size_t str_len) argument
H A Ddicttrie.cpp899 void DictTrie::convert_to_hanzis(char16 *str, uint16 str_len) { argument
900 return dict_list_->convert_to_hanzis(str, str_len);
903 void DictTrie::convert_to_scis_ids(char16 *str, uint16 str_len) { argument
904 return dict_list_->convert_to_scis_ids(str, str_len);
H A Dmatrixsearch.cpp1655 uint16 str_len = get_lemma_str(idxs[id_num], str, kMaxLemmaSize + 1); local
1656 if (str_len > 0 && ((!only_unfixed && max_len - ret_pos > str_len) ||
1657 (only_unfixed && max_len - ret_pos + fixed_hzs_ > str_len))) {
1659 utf16_strncpy(cand_str + ret_pos, str, str_len);
1661 utf16_strncpy(cand_str + ret_pos - fixed_hzs_, str, str_len);
1663 ret_pos += str_len;
1782 uint16 str_len = 0; local
1785 str_len = dict_trie_->get_lemma_str(id_lemma, str_buf, str_max);
1788 str_len
[all...]

Completed in 67 milliseconds