Home
last modified time | relevance | path

Searched refs:KHMER_LOOKAHEAD (Results 1 – 3 of 3) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DKhmerBreakEngine.java21 private static final byte KHMER_LOOKAHEAD = 3; field in KhmerBreakEngine
100 PossibleWord words[] = new PossibleWord[KHMER_LOOKAHEAD]; in divideUpDictionaryRange()
101 for (int i = 0; i < KHMER_LOOKAHEAD; i++) { in divideUpDictionaryRange()
112 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
116 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
127 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
130 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
142 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
143 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
147 } while (words[(wordsFound+1)%KHMER_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DKhmerBreakEngine.java20 private static final byte KHMER_LOOKAHEAD = 3; field in KhmerBreakEngine
99 PossibleWord words[] = new PossibleWord[KHMER_LOOKAHEAD]; in divideUpDictionaryRange()
100 for (int i = 0; i < KHMER_LOOKAHEAD; i++) { in divideUpDictionaryRange()
111 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
115 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
126 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
129 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
141 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
142 words[wordsFound%KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
146 } while (words[(wordsFound+1)%KHMER_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
/external/icu/icu4c/source/common/
Ddictbe.cpp832 static const int32_t KHMER_LOOKAHEAD = 3; variable
896 PossibleWord words[KHMER_LOOKAHEAD]; in divideUpDictionaryRange()
905 … int32_t candidates = words[wordsFound%KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd); in divideUpDictionaryRange()
909 cuWordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(text); in divideUpDictionaryRange()
910 cpWordLength = words[wordsFound % KHMER_LOOKAHEAD].markedCPLength(); in divideUpDictionaryRange()
922 … if (words[(wordsFound + 1) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
925 words[wordsFound % KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
937 … if (words[(wordsFound + 2) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) { in divideUpDictionaryRange()
938 words[wordsFound % KHMER_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
942 while (words[(wordsFound + 1) % KHMER_LOOKAHEAD].backUp(text)); in divideUpDictionaryRange()
[all …]