Lines Matching refs:THAI_LOOKAHEAD
195 #define THAI_LOOKAHEAD 3
258 PossibleWord words[THAI_LOOKAHEAD];
267 int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd);
271 wordLength = words[wordsFound % THAI_LOOKAHEAD].acceptMarked(text);
282 if (words[(wordsFound + 1) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) {
285 words[wordsFound%THAI_LOOKAHEAD].markCurrent();
297 if (words[(wordsFound + 2) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) {
298 words[wordsFound % THAI_LOOKAHEAD].markCurrent();
302 while (words[(wordsFound + 1) % THAI_LOOKAHEAD].backUp(text));
305 while (words[wordsFound % THAI_LOOKAHEAD].backUp(text));
307 wordLength = words[wordsFound % THAI_LOOKAHEAD].acceptMarked(text);
320 if (words[wordsFound % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) <= 0
322 || words[wordsFound%THAI_LOOKAHEAD].longestPrefix() < THAI_PREFIX_COMBINE_THRESHOLD)) {
343 int candidates = words[(wordsFound + 1) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd);
378 if (words[wordsFound%THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) <= 0