Home | History | Annotate | Download | only in jni

Lines Matching refs:dictionary

25 #include "dictionary/property/unigram_property.h"
26 #include "dictionary/property/ngram_context.h"
27 #include "dictionary/property/word_property.h"
28 #include "dictionary/structure/dictionary_structure_with_buffer_policy_factory.h"
31 #include "suggest/core/dictionary/dictionary.h"
65 Dictionary *const dictionary =
66 new Dictionary(env, std::move(dictionaryStructureWithBufferPolicy));
68 return reinterpret_cast<jlong>(dictionary);
94 Dictionary *const dictionary =
95 new Dictionary(env, std::move(dictionaryStructureWithBufferPolicy));
96 return reinterpret_cast<jlong>(dictionary);
101 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
102 if (!dictionary) return false;
107 return dictionary->flush(filePathChars);
112 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
113 if (!dictionary) return false;
114 return dictionary->needsToRunGC(mindsBlockByGC == JNI_TRUE);
119 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
120 if (!dictionary) return false;
125 return dictionary->flushWithGC(filePathChars);
129 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
130 if (!dictionary) return;
131 delete dictionary;
137 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
138 if (!dictionary) return;
140 dictionary->getDictionaryStructurePolicy()->getHeaderStructurePolicy();
171 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
172 if (!dictionary) return 0;
174 dictionary->getDictionaryStructurePolicy()->getHeaderStructurePolicy();
187 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
190 if (!dictionary) {
249 dictionary->getSuggestions(pInfo, traverseSession, xCoordinates, yCoordinates,
253 dictionary->getPredictions(&ngramContext, &suggestionResults);
265 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
266 if (!dictionary) return NOT_A_PROBABILITY;
270 return dictionary->getProbability(CodePointArrayView(codePoints, codePointCount));
275 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
276 if (!dictionary) return NOT_A_PROBABILITY;
280 return dictionary->getMaxProbabilityOfExactMatches(
287 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
288 if (!dictionary) return JNI_FALSE;
295 return dictionary->getNgramProbability(&ngramContext,
299 // Method to iterate all words in the dictionary for makedict.
300 // If token is 0, this method newly starts iterating the dictionary. This method returns 0 when
301 // the dictionary does not have a next word.
304 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
305 if (!dictionary) return 0;
314 const int nextToken = dictionary->getNextWordAndNextToken(token, wordCodePoints,
334 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
335 if (!dictionary) return;
352 const WordProperty wordProperty = dictionary->getWordProperty(
363 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
364 if (!dictionary) {
382 return dictionary->addUnigramEntry(CodePointArrayView(codePoints, codePointCount),
388 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
389 if (!dictionary) {
395 return dictionary->removeUnigramEntry(CodePointArrayView(codePoints, codePointCount));
401 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
402 if (!dictionary) {
415 return dictionary->addNgramEntry(&ngramProperty);
421 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
422 if (!dictionary) {
431 return dictionary->removeNgramEntry(&ngramContext,
439 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
440 if (!dictionary) {
450 return dictionary->updateEntriesForWordWithNgramContext(&ngramContext,
458 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
459 if (!dictionary) {
498 dictionary->updateEntriesForWordWithNgramContext(&ngramContext,
501 if (dictionary->needsToRunGC(true /* mindsBlockByGC */)) {
513 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
514 if (!dictionary) {
524 dictionary->getProperty(queryChars, queryUtf8Length, resultChars, GET_PROPERTY_RESULT_LENGTH);
529 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
530 if (!dictionary) {
533 return dictionary->getDictionaryStructurePolicy()->isCorrupted();
547 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
548 if (!dictionary) {
557 dictionary->getDictionaryStructurePolicy()->getHeaderStructurePolicy();
571 token = dictionary->getNextWordAndNextToken(token, wordCodePoints, &wordCodePointCount);
572 const WordProperty wordProperty = dictionary->getWordProperty(
596 token = dictionary->getNextWordAndNextToken(token, wordCodePoints, &wordCodePointCount);
597 const WordProperty wordProperty = dictionary->getWordProperty(