OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:item_num
(Results
1 - 3
of
3
) sorted by null
/packages/inputmethods/PinyinIME/jni/share/
ngram.cpp
78
size_t *
item_num
= new size_t[kCodeBookSize];
local
79
assert(
item_num
);
80
memset(
item_num
, 0, sizeof(size_t) * kCodeBookSize);
90
item_num
[code_idx[pos]] += 1;
94
assert(
item_num
[code] > 0);
95
code_book[code] = cb_new[code] /
item_num
[code];
98
delete []
item_num
;
dictlist.cpp
243
size_t
item_num
= 0;
local
254
item_num
< npre_max) {
255
memset(npre_items +
item_num
, 0, sizeof(NPredictItem));
256
utf16_strncpy(npre_items[
item_num
].pre_hzs, w_buf + hzs_len, pre_len);
257
npre_items[
item_num
].psb =
260
npre_items[
item_num
].his_len = hzs_len;
261
item_num
++;
267
for (size_t i = 0; i <
item_num
; i++) {
dicttrie.cpp
918
size_t
item_num
= 0;
local
921
while (
item_num
< npre_max && top_lmas_pos < top_lmas_num_) {
922
memset(npre_items +
item_num
, 0, sizeof(NPredictItem));
926
npre_items[
item_num
].pre_hzs,
930
npre_items[
item_num
].psb = ngram.get_uni_psb(top_lma_id);
931
npre_items[
item_num
].his_len = his_len;
932
item_num
++;
934
return
item_num
;
Completed in 47 milliseconds