Searched refs:mPrevWordCount (Results 1 – 6 of 6) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | ngram_context.cpp | 24 NgramContext::NgramContext() : mPrevWordCount(0) {} in NgramContext() 27 : mPrevWordCount(ngramContext.mPrevWordCount) { in NgramContext() 28 for (size_t i = 0; i < mPrevWordCount; ++i) { in NgramContext() 39 : mPrevWordCount(std::min(NELEMS(mPrevWordCodePoints), prevWordCount)) { in NgramContext() 41 for (size_t i = 0; i < mPrevWordCount; ++i) { in NgramContext() 53 const bool isBeginningOfSentence) : mPrevWordCount(1) { in NgramContext() 75 if (n <= 0 || n > mPrevWordCount) { in getNthPrevWordCodePoints() 82 if (n <= 0 || n > mPrevWordCount) { in isNthPrevWordBeginningOfSentence()
|
D | ngram_context.h | 44 return mPrevWordCount; in getPrevWordCount() 52 for (size_t i = 0; i < std::min(mPrevWordCount, N); ++i) { in getPrevWordIds() 56 return WordIdArrayView::fromArray(*prevWordIdBuffer).limit(mPrevWordCount); in getPrevWordIds() 72 const size_t mPrevWordCount; variable
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/ |
D | dic_node_state_output.h | 33 : mOutputtedCodePointCount(0), mCurrentWordStart(0), mPrevWordCount(0), in DicNodeStateOutput() 43 mPrevWordCount = 0; in init() 56 mPrevWordCount = std::min(static_cast<int16_t>(stateOutput->mPrevWordCount + 1), in init() 71 mPrevWordCount = stateOutput->mPrevWordCount; in initByCopy() 115 return mPrevWordCount; in getPrevWordCount() 142 int16_t mPrevWordCount; variable
|
D | dic_node_properties.h | 35 mWordId(NOT_A_WORD_ID), mDepth(0), mLeavingDepth(0), mPrevWordCount(0) {} in DicNodeProperties() 48 mPrevWordCount = prevWordIds.size(); in init() 59 mPrevWordCount = prevWordIds.size(); in init() 70 mPrevWordCount = prevWordIdArrayView.size(); in initByCopy() 82 mPrevWordCount = prevWordIdArrayView.size(); in init() 111 return WordIdArrayView::fromArray(mPrevWordIds).limit(mPrevWordCount); in getPrevWordIds() 128 size_t mPrevWordCount; variable
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | language_model_dict_content.cpp | 412 WordIdArrayView(entryInfo.mPrevWordIds, entryInfo.mPrevWordCount), in turncateEntriesInSpecifiedLevel() 460 if (left.mPrevWordCount != right.mPrevWordCount) { in operator ()() 461 return left.mPrevWordCount > right.mPrevWordCount; in operator ()() 463 for (int i = 0; i < left.mPrevWordCount; ++i) { in operator ()() 474 : mPriority(priority), mCount(count), mKey(key), mPrevWordCount(prevWordCount) { in EntryInfoToTurncate() 475 memmove(mPrevWordIds, prevWordIds, mPrevWordCount * sizeof(mPrevWordIds[0])); in EntryInfoToTurncate()
|
D | language_model_dict_content.h | 224 int mPrevWordCount; variable
|