Searched refs:KHMER_LOOKAHEAD (Results 1 – 3 of 3) sorted by relevance
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | KhmerBreakEngine.java | 23 private static final byte KHMER_LOOKAHEAD = 3; field in KhmerBreakEngine 102 PossibleWord words[] = new PossibleWord[KHMER_LOOKAHEAD]; in divideUpDictionaryRange() 103 for (int i = 0; i < KHMER_LOOKAHEAD; i++) { in divideUpDictionaryRange() 114 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange() 118 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange() 129 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 132 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 144 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 145 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 149 } while (words[(wordsFound+1)%KHMER_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | KhmerBreakEngine.java | 22 private static final byte KHMER_LOOKAHEAD = 3; field in KhmerBreakEngine 101 PossibleWord words[] = new PossibleWord[KHMER_LOOKAHEAD]; in divideUpDictionaryRange() 102 for (int i = 0; i < KHMER_LOOKAHEAD; i++) { in divideUpDictionaryRange() 113 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange() 117 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange() 128 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 131 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 143 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 144 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 148 } while (words[(wordsFound+1)%KHMER_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange() [all …]
|
/external/icu/icu4c/source/common/ |
D | dictbe.cpp | 807 static const int32_t KHMER_LOOKAHEAD = 3; variable 871 PossibleWord words[KHMER_LOOKAHEAD]; in divideUpDictionaryRange() 880 … int32_t candidates = words[wordsFound%KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd); in divideUpDictionaryRange() 884 cuWordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(text); in divideUpDictionaryRange() 885 cpWordLength = words[wordsFound % KHMER_LOOKAHEAD].markedCPLength(); in divideUpDictionaryRange() 897 … if (words[(wordsFound + 1) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 900 words[wordsFound % KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 912 … if (words[(wordsFound + 2) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) { in divideUpDictionaryRange() 913 words[wordsFound % KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 917 while (words[(wordsFound + 1) % KHMER_LOOKAHEAD].backUp(text)); in divideUpDictionaryRange() [all …]
|