Home
last modified time | relevance | path

Searched refs:wordsFound (Results 1 – 9 of 9) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DLaoBreakEngine.java96 int wordsFound = 0; in divideUpDictionaryRange() local
110 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
114 wordLength = words[wordsFound%LAO_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
115 wordsFound += 1; in divideUpDictionaryRange()
125 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
128 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
140 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
141 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
145 } while (words[(wordsFound+1)%LAO_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
147 } while (words[wordsFound%LAO_LOOKAHEAD].backUp(fIter) && !foundBest); in divideUpDictionaryRange()
[all …]
DKhmerBreakEngine.java96 int wordsFound = 0; in divideUpDictionaryRange() local
111 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
115 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
116 wordsFound += 1; 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()
148 } while (words[wordsFound%KHMER_LOOKAHEAD].backUp(fIter) && !foundBest); in divideUpDictionaryRange()
[all …]
DBurmeseBreakEngine.java93 int wordsFound = 0; in divideUpDictionaryRange() local
107 … int candidates = words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
111 wordLength = words[wordsFound%BURMESE_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
112 wordsFound += 1; in divideUpDictionaryRange()
122 … if (words[(wordsFound+1)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
125 words[wordsFound%BURMESE_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
137 … if (words[(wordsFound+2)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
138 words[wordsFound%BURMESE_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
142 } while (words[(wordsFound+1)%BURMESE_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
144 } while (words[wordsFound%BURMESE_LOOKAHEAD].backUp(fIter) && !foundBest); in divideUpDictionaryRange()
[all …]
DThaiBreakEngine.java107 int wordsFound = 0; in divideUpDictionaryRange() local
121 … int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
125 wordLength = words[wordsFound%THAI_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
126 wordsFound += 1; in divideUpDictionaryRange()
136 … if (words[(wordsFound+1)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
139 words[wordsFound%THAI_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
151 … if (words[(wordsFound+2)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
152 words[wordsFound%THAI_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
155 } while (words[(wordsFound+1)%THAI_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
158 while (words[wordsFound%THAI_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DKhmerBreakEngine.java97 int wordsFound = 0; in divideUpDictionaryRange() local
112 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
116 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
117 wordsFound += 1; 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()
149 } while (words[wordsFound%KHMER_LOOKAHEAD].backUp(fIter) && !foundBest); in divideUpDictionaryRange()
[all …]
DBurmeseBreakEngine.java94 int wordsFound = 0; in divideUpDictionaryRange() local
108 … int candidates = words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
112 wordLength = words[wordsFound%BURMESE_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
113 wordsFound += 1; in divideUpDictionaryRange()
123 … if (words[(wordsFound+1)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
126 words[wordsFound%BURMESE_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
138 … if (words[(wordsFound+2)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
139 words[wordsFound%BURMESE_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
143 } while (words[(wordsFound+1)%BURMESE_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
145 } while (words[wordsFound%BURMESE_LOOKAHEAD].backUp(fIter) && !foundBest); in divideUpDictionaryRange()
[all …]
DLaoBreakEngine.java97 int wordsFound = 0; in divideUpDictionaryRange() local
111 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
115 wordLength = words[wordsFound%LAO_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
116 wordsFound += 1; in divideUpDictionaryRange()
126 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
129 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
141 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
142 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
146 } while (words[(wordsFound+1)%LAO_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
148 } while (words[wordsFound%LAO_LOOKAHEAD].backUp(fIter) && !foundBest); in divideUpDictionaryRange()
[all …]
DThaiBreakEngine.java108 int wordsFound = 0; in divideUpDictionaryRange() local
122 … int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
126 wordLength = words[wordsFound%THAI_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
127 wordsFound += 1; in divideUpDictionaryRange()
137 … if (words[(wordsFound+1)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
140 words[wordsFound%THAI_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
152 … if (words[(wordsFound+2)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
153 words[wordsFound%THAI_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
156 } while (words[(wordsFound+1)%THAI_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
159 while (words[wordsFound%THAI_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
/external/icu/icu4c/source/common/
Ddictbe.cpp258 uint32_t wordsFound = 0; in divideUpDictionaryRange() local
272 … int32_t candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd); in divideUpDictionaryRange()
276 cuWordLength = words[wordsFound % THAI_LOOKAHEAD].acceptMarked(text); in divideUpDictionaryRange()
277 cpWordLength = words[wordsFound % THAI_LOOKAHEAD].markedCPLength(); in divideUpDictionaryRange()
278 wordsFound += 1; in divideUpDictionaryRange()
288 … if (words[(wordsFound + 1) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
291 words[wordsFound%THAI_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
303 … if (words[(wordsFound + 2) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) { in divideUpDictionaryRange()
304 words[wordsFound % THAI_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange()
308 while (words[(wordsFound + 1) % THAI_LOOKAHEAD].backUp(text)); in divideUpDictionaryRange()
[all …]