Searched refs:wordPos (Results 1 – 6 of 6) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 310 const int wordPos = getTerminalPtNodePosFromWordId( in addUnigramEntry() local 312 if (wordPos == NOT_A_DICT_POS) { in addUnigramEntry() 317 if (!mUpdatingHelper.addShortcutTarget(wordPos, in addUnigramEntry() 321 "probability: %d", wordPos, shortcut.getTargetCodePoints()->size(), in addUnigramEntry() 389 const int wordPos = getTerminalPtNodePosFromWordId(getWordId( in addNgramEntry() local 392 if (wordPos == NOT_A_DICT_POS) { in addNgramEntry() 398 wordPos, ngramProperty, &addedNewBigram)) { in addNgramEntry() 433 const int wordPos = getTerminalPtNodePosFromWordId(getWordId(wordCodePoints, in removeNgramEntry() local 435 if (wordPos == NOT_A_DICT_POS) { in removeNgramEntry() 440 PtNodePosArrayView::singleElementView(&prevWordPtNodePos), wordPos)) { in removeNgramEntry()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictIOUtils.java | 174 int wordPos = 0; in getTerminalPosition() local 177 if (wordPos >= wordLen) return FormatSpec.NOT_VALID_WORD; in getTerminalPosition() 186 for (int p = 0, j = word.offsetByCodePoints(0, wordPos); in getTerminalPosition() 189 if (wordPos + p >= wordLen in getTerminalPosition() 198 if (wordPos + currentInfo.mCharacters.length == wordLen) { in getTerminalPosition() 201 wordPos += currentInfo.mCharacters.length; in getTerminalPosition()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 85 const int wordPos, const NgramProperty *const ngramProperty, in addNgramEntry() argument 98 mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(wordPos).getTerminalId(); in addNgramEntry() 103 const int wordPos) { in removeNgramEntry() argument 115 mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(wordPos).getTerminalId(); in removeNgramEntry() 119 bool DynamicPtUpdatingHelper::addShortcutTarget(const int wordPos, in addShortcutTarget() argument 121 const PtNodeParams ptNodeParams(mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(wordPos)); in addShortcutTarget()
|
D | 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,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 87 int wordPos = 0; in getCodePointsAndProbabilityAndReturnCodePointCount() local 125 outCodePoints[wordPos] = character; in getCodePointsAndProbabilityAndReturnCodePointCount() 133 outCodePoints[++wordPos] = nextChar; in getCodePointsAndProbabilityAndReturnCodePointCount() 143 return ++wordPos; in getCodePointsAndProbabilityAndReturnCodePointCount() 202 outCodePoints[wordPos] = lastChar; in getCodePointsAndProbabilityAndReturnCodePointCount() 208 outCodePoints[++wordPos] = nextChar; in getCodePointsAndProbabilityAndReturnCodePointCount() 213 ++wordPos; in getCodePointsAndProbabilityAndReturnCodePointCount()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 228 const int wordPos = in addUnigramEntry() local 231 if (!mUpdatingHelper.addShortcutTarget(wordPos, in addUnigramEntry() 235 "probability: %d", wordPos, shortcut.getTargetCodePoints()->size(), in addUnigramEntry()
|