Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp290 int wordCodePoints[wordLength]; in latinime_BinaryDictionary_getNgramProbability() local
291 env->GetIntArrayRegion(word, 0, wordLength, wordCodePoints); in latinime_BinaryDictionary_getNgramProbability()
296 CodePointArrayView(wordCodePoints, wordLength)); in latinime_BinaryDictionary_getNgramProbability()
312 int wordCodePoints[codePointBufSize]; in latinime_BinaryDictionary_getNextWord() local
314 const int nextToken = dictionary->getNextWordAndNextToken(token, wordCodePoints, in latinime_BinaryDictionary_getNextWord()
317 MAX_WORD_LENGTH /* maxLength */, wordCodePoints, wordCodePointCount, in latinime_BinaryDictionary_getNextWord()
320 if (wordCodePointCount > 0 && wordCodePoints[0] == CODE_POINT_BEGINNING_OF_SENTENCE) { in latinime_BinaryDictionary_getNextWord()
341 int wordCodePoints[MAX_WORD_LENGTH]; in latinime_BinaryDictionary_getWordProperty() local
342 env->GetIntArrayRegion(word, 0, wordLength, wordCodePoints); in latinime_BinaryDictionary_getWordProperty()
346 wordCodePoints, wordLength, MAX_WORD_LENGTH); in latinime_BinaryDictionary_getWordProperty()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp105 int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() argument
109 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId()
110 wordCodePoints.size(), forceLowerCaseSearch); in getWordId()
266 bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() argument
277 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in addUnigramEntry()
279 wordCodePoints.size()); in addUnigramEntry()
293 int codePointCountToAdd = wordCodePoints.size(); in addUnigramEntry()
294 memmove(codePointsToAdd, wordCodePoints.data(), sizeof(int) * codePointCountToAdd); in addUnigramEntry()
333 bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() argument
339 getWordId(wordCodePoints, false /* forceLowerCaseSearch */)); in removeUnigramEntry()
[all …]
Dver4_patricia_trie_policy.h92 int getWordId(const CodePointArrayView wordCodePoints, const bool forceLowerCaseSearch) const;
110 bool addUnigramEntry(const CodePointArrayView wordCodePoints,
113 bool removeUnigramEntry(const CodePointArrayView wordCodePoints);
118 const CodePointArrayView wordCodePoints);
121 const CodePointArrayView wordCodePoints, const bool isValidWord,
133 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp87 int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() argument
91 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId()
92 wordCodePoints.size(), forceLowerCaseSearch); in getWordId()
179 bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() argument
190 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in addUnigramEntry()
192 wordCodePoints.size()); in addUnigramEntry()
206 int codePointCountToAdd = wordCodePoints.size(); in addUnigramEntry()
207 memmove(codePointsToAdd, wordCodePoints.data(), sizeof(int) * codePointCountToAdd); in addUnigramEntry()
247 bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() argument
252 const int wordId = getWordId(wordCodePoints, false /* forceLowerCaseSearch */); in removeUnigramEntry()
[all …]
Dver4_patricia_trie_policy.h67 int getWordId(const CodePointArrayView wordCodePoints, const bool forceLowerCaseSearch) const;
89 bool addUnigramEntry(const CodePointArrayView wordCodePoints,
92 bool removeUnigramEntry(const CodePointArrayView wordCodePoints);
97 const CodePointArrayView wordCodePoints);
100 const CodePointArrayView wordCodePoints, const bool isValidWord,
112 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h57 virtual int getWordId(const CodePointArrayView wordCodePoints,
76 virtual bool addUnigramEntry(const CodePointArrayView wordCodePoints,
80 virtual bool removeUnigramEntry(const CodePointArrayView wordCodePoints) = 0;
87 const CodePointArrayView wordCodePoints) = 0;
91 const CodePointArrayView wordCodePoints, const bool isValidWord,
107 virtual const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const = 0;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h65 int getWordId(const CodePointArrayView wordCodePoints, const bool forceLowerCaseSearch) const;
83 bool addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() argument
90 bool removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() argument
103 const CodePointArrayView wordCodePoints) { in removeNgramEntry() argument
110 const CodePointArrayView wordCodePoints, const bool isValidWord, in updateEntriesForWordWithNgramContext() argument
144 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
Dpatricia_trie_policy.cpp280 int PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() argument
284 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId()
285 wordCodePoints.size(), forceLowerCaseSearch); in getWordId()
427 const CodePointArrayView wordCodePoints) const { in getWordProperty()
428 const int wordId = getWordId(wordCodePoints, false /* forceLowerCaseSearch */); in getWordProperty()
452 NgramContext(wordCodePoints.data(), wordCodePoints.size(), in getWordProperty()
481 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp32 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, in addUnigramWord() argument
42 wordCodePoints[matchedCodePointCount])) { in addUnigramWord()
52 if (nextIndex >= wordCodePoints.size() in addUnigramWord()
54 wordCodePoints[matchedCodePointCount + j])) { in addUnigramWord()
57 wordCodePoints.skip(matchedCodePointCount)); in addUnigramWord()
61 if (wordCodePoints.size() == readingHelper->getTotalCodePointCount(ptNodeParams)) { in addUnigramWord()
67 wordCodePoints.skip(readingHelper->getTotalCodePointCount(ptNodeParams))); in addUnigramWord()
80 wordCodePoints.skip(readingHelper->getPrevTotalCodePointCount()), unigramProperty, in addUnigramWord()
Ddynamic_pt_updating_helper.h43 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dngram_context.cpp90 const int *const wordCodePoints, const int wordCodePointCount, in getWordId() argument
92 if (!dictStructurePolicy || !wordCodePoints || wordCodePointCount > MAX_WORD_LENGTH) { in getWordId()
97 memmove(codePoints, wordCodePoints, sizeof(int) * codePointCount); in getWordId()
Dngram_context.h68 const int *const wordCodePoints, const int wordCodePointCount,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java386 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in getNgramProbability() local
388 isBeginningOfSentenceArray, wordCodePoints); in getNgramProbability()
483 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in addNgramEntry() local
485 isBeginningOfSentenceArray, wordCodePoints, probability, timestamp)) { in addNgramEntry()
501 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in updateEntriesForWordWithNgramContext() local
503 isBeginningOfSentenceArray, wordCodePoints, isValidWord, count, timestamp)) { in updateEntriesForWordWithNgramContext()