Home
last modified time | relevance | path

Searched refs:entryInfoVector (Results 1 – 1 of 1) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp395 std::vector<EntryInfoToTurncate> entryInfoVector; in turncateEntriesInSpecifiedLevel() local
397 &prevWordIds, &entryInfoVector)) { in turncateEntriesInSpecifiedLevel()
400 if (static_cast<int>(entryInfoVector.size()) <= maxEntryCount) { in turncateEntriesInSpecifiedLevel()
401 *outEntryCount = static_cast<int>(entryInfoVector.size()); in turncateEntriesInSpecifiedLevel()
405 const int entryCountToRemove = static_cast<int>(entryInfoVector.size()) - maxEntryCount; in turncateEntriesInSpecifiedLevel()
406 std::partial_sort(entryInfoVector.begin(), entryInfoVector.begin() + entryCountToRemove, in turncateEntriesInSpecifiedLevel()
407 entryInfoVector.end(), in turncateEntriesInSpecifiedLevel()
410 const EntryInfoToTurncate &entryInfo = entryInfoVector[i]; in turncateEntriesInSpecifiedLevel()