/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | LaoBreakEngine.java | 96 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 …]
|
D | KhmerBreakEngine.java | 96 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 …]
|
D | BurmeseBreakEngine.java | 93 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 …]
|
D | ThaiBreakEngine.java | 107 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/ |
D | KhmerBreakEngine.java | 97 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 …]
|
D | BurmeseBreakEngine.java | 94 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 …]
|
D | LaoBreakEngine.java | 97 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 …]
|
D | ThaiBreakEngine.java | 108 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/ |
D | dictbe.cpp | 258 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 …]
|