Lines Matching refs:dictionary
22 #include "dictionary.h"
71 LOGE("DICT: Can't mmap dictionary. errno=%d", errno);
85 LOGE("DICT: Can't allocate memory region for dictionary. errno=%d", errno);
110 Dictionary *dictionary = NULL;
112 LOGE("DICT: dictionary format is unknown, bad magic number");
119 dictionary = new Dictionary(dictBuf, dictSize, fd, adjust, typedLetterMultiplier,
124 return (jint)dictionary;
131 Dictionary *dictionary = (Dictionary*)dict;
132 if (!dictionary) return 0;
142 int count = dictionary->getSuggestions(pInfo, xCoordinates, yCoordinates, inputCodes,
158 Dictionary *dictionary = (Dictionary*)dict;
159 if (!dictionary) return 0;
166 int count = dictionary->getBigrams((unsigned short*) prevWord, prevWordLength, inputCodes,
180 Dictionary *dictionary = (Dictionary*)dict;
181 if (!dictionary) return (jboolean) false;
184 jboolean result = dictionary->isValidWord((unsigned short*) word, wordLength);
191 Dictionary *dictionary = (Dictionary*)dict;
192 if (!dictionary) return;
193 void *dictBuf = dictionary->getDict();
196 releaseDictBuf((void *)((char *)dictBuf - dictionary->getDictBufAdjust()),
197 dictionary->getDictSize() + dictionary->getDictBufAdjust(), dictionary->getMmapFd());
201 delete dictionary;