OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:wordPos
(Results
1 - 6
of
6
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
dynamic_pt_updating_helper.h
48
bool addNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, const int
wordPos
,
53
bool removeNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, const int
wordPos
);
56
bool addShortcutTarget(const int
wordPos
, const CodePointArrayView targetCodePoints,
dynamic_pt_updating_helper.cpp
85
const int
wordPos
, const NgramProperty *const ngramProperty,
98
mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(
wordPos
).getTerminalId();
103
const int
wordPos
) {
115
mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(
wordPos
).getTerminalId();
119
bool DynamicPtUpdatingHelper::addShortcutTarget(const int
wordPos
,
121
const PtNodeParams ptNodeParams(mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(
wordPos
));
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictIOUtils.java
174
int
wordPos
= 0;
177
if (
wordPos
>= wordLen) return FormatSpec.NOT_VALID_WORD;
186
for (int p = 0, j = word.offsetByCodePoints(0,
wordPos
);
189
if (
wordPos
+ p >= wordLen
198
if (
wordPos
+ currentInfo.mCharacters.length == wordLen) {
201
wordPos
+= currentInfo.mCharacters.length;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
patricia_trie_policy.cpp
87
int
wordPos
= 0;
125
outCodePoints[
wordPos
] = character;
133
outCodePoints[++
wordPos
] = nextChar;
143
return ++
wordPos
;
202
outCodePoints[
wordPos
] = lastChar;
208
outCodePoints[++
wordPos
] = nextChar;
213
++
wordPos
;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
ver4_patricia_trie_policy.cpp
310
const int
wordPos
= getTerminalPtNodePosFromWordId(
312
if (
wordPos
== NOT_A_DICT_POS) {
317
if (!mUpdatingHelper.addShortcutTarget(
wordPos
,
321
"probability: %d",
wordPos
, shortcut.getTargetCodePoints()->size(),
389
const int
wordPos
= getTerminalPtNodePosFromWordId(getWordId(
392
if (
wordPos
== NOT_A_DICT_POS) {
398
wordPos
, ngramProperty, &addedNewBigram)) {
433
const int
wordPos
= getTerminalPtNodePosFromWordId(getWordId(wordCodePoints,
435
if (
wordPos
== NOT_A_DICT_POS) {
440
PtNodePosArrayView::singleElementView(&prevWordPtNodePos),
wordPos
)) {
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.cpp
228
const int
wordPos
=
231
if (!mUpdatingHelper.addShortcutTarget(
wordPos
,
235
"probability: %d",
wordPos
, shortcut.getTargetCodePoints()->size(),
Completed in 631 milliseconds