OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:wordCodePoints
(Results
1 - 13
of
13
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
dictionary_structure_with_buffer_policy.h
57
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/backward/v402/
ver4_patricia_trie_policy.h
92
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;
ver4_patricia_trie_policy.cpp
105
int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView
wordCodePoints
,
109
const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(
wordCodePoints
.data(),
110
wordCodePoints
.size(), forceLowerCaseSearch);
266
bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView
wordCodePoints
,
277
if (
wordCodePoints
.size() > MAX_WORD_LENGTH) {
279
wordCodePoints
.size());
293
int codePointCountToAdd =
wordCodePoints
.size();
294
memmove(codePointsToAdd,
wordCodePoints
.data(), sizeof(int) * codePointCountToAdd);
333
bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView
wordCodePoints
) {
339
getWordId(
wordCodePoints
, false /* forceLowerCaseSearch */))
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
patricia_trie_policy.h
65
int getWordId(const CodePointArrayView
wordCodePoints
, const bool forceLowerCaseSearch) const;
83
bool addUnigramEntry(const CodePointArrayView
wordCodePoints
,
90
bool removeUnigramEntry(const CodePointArrayView
wordCodePoints
) {
103
const CodePointArrayView
wordCodePoints
) {
110
const CodePointArrayView
wordCodePoints
, const bool isValidWord,
144
const WordProperty getWordProperty(const CodePointArrayView
wordCodePoints
) const;
patricia_trie_policy.cpp
280
int PatriciaTriePolicy::getWordId(const CodePointArrayView
wordCodePoints
,
284
const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(
wordCodePoints
.data(),
285
wordCodePoints
.size(), forceLowerCaseSearch);
427
const CodePointArrayView
wordCodePoints
) const {
428
const int wordId = getWordId(
wordCodePoints
, false /* forceLowerCaseSearch */);
452
NgramContext(
wordCodePoints
.data(),
wordCodePoints
.size(),
481
return WordProperty(
wordCodePoints
.toVector(), unigramProperty, ngrams);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.h
67
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;
ver4_patricia_trie_policy.cpp
87
int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView
wordCodePoints
,
91
const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(
wordCodePoints
.data(),
92
wordCodePoints
.size(), forceLowerCaseSearch);
179
bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView
wordCodePoints
,
190
if (
wordCodePoints
.size() > MAX_WORD_LENGTH) {
192
wordCodePoints
.size());
206
int codePointCountToAdd =
wordCodePoints
.size();
207
memmove(codePointsToAdd,
wordCodePoints
.data(), sizeof(int) * codePointCountToAdd);
247
bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView
wordCodePoints
) {
252
const int wordId = getWordId(
wordCodePoints
, false /* forceLowerCaseSearch */)
[
all
...]
/packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionary.cpp
290
int
wordCodePoints
[wordLength];
291
env->GetIntArrayRegion(word, 0, wordLength,
wordCodePoints
);
296
CodePointArrayView(
wordCodePoints
, wordLength));
312
int
wordCodePoints
[codePointBufSize];
314
const int nextToken = dictionary->getNextWordAndNextToken(token,
wordCodePoints
,
317
MAX_WORD_LENGTH /* maxLength */,
wordCodePoints
, wordCodePointCount,
320
if (wordCodePointCount > 0 &&
wordCodePoints
[0] == CODE_POINT_BEGINNING_OF_SENTENCE) {
341
int
wordCodePoints
[MAX_WORD_LENGTH];
342
env->GetIntArrayRegion(word, 0, wordLength,
wordCodePoints
);
346
wordCodePoints
, wordLength, MAX_WORD_LENGTH)
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
ngram_context.cpp
90
const int *const
wordCodePoints
, const int wordCodePointCount,
92
if (!dictStructurePolicy || !
wordCodePoints
|| wordCodePointCount > MAX_WORD_LENGTH) {
97
memmove(codePoints,
wordCodePoints
, sizeof(int) * codePointCount);
ngram_context.h
68
const int *const
wordCodePoints
, const int wordCodePointCount,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
dynamic_pt_updating_helper.cpp
32
const CodePointArrayView
wordCodePoints
, const UnigramProperty *const unigramProperty,
42
wordCodePoints
[matchedCodePointCount])) {
52
if (nextIndex >=
wordCodePoints
.size()
54
wordCodePoints
[matchedCodePointCount + j])) {
57
wordCodePoints
.skip(matchedCodePointCount));
61
if (
wordCodePoints
.size() == readingHelper->getTotalCodePointCount(ptNodeParams)) {
67
wordCodePoints
.skip(readingHelper->getTotalCodePointCount(ptNodeParams)));
80
wordCodePoints
.skip(readingHelper->getPrevTotalCodePointCount()), unigramProperty,
dynamic_pt_updating_helper.h
43
const CodePointArrayView
wordCodePoints
, const UnigramProperty *const unigramProperty,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionary.java
386
final int[]
wordCodePoints
= StringUtils.toCodePointArray(word);
388
isBeginningOfSentenceArray,
wordCodePoints
);
483
final int[]
wordCodePoints
= StringUtils.toCodePointArray(word);
485
isBeginningOfSentenceArray,
wordCodePoints
, probability, timestamp)) {
501
final int[]
wordCodePoints
= StringUtils.toCodePointArray(word);
503
isBeginningOfSentenceArray,
wordCodePoints
, isValidWord, count, timestamp)) {
Completed in 550 milliseconds