Searched refs:LAO_LOOKAHEAD (Results 1 – 3 of 3) sorted by relevance
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | LaoBreakEngine.java | 23 private static final byte LAO_LOOKAHEAD = 3; field in LaoBreakEngine 102 PossibleWord words[] = new PossibleWord[LAO_LOOKAHEAD]; in divideUpDictionaryRange() 103 for (int i = 0; i < LAO_LOOKAHEAD; i++) { in divideUpDictionaryRange() 113 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange() 117 wordLength = words[wordsFound%LAO_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange() 128 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 131 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 143 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 144 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 148 } while (words[(wordsFound+1)%LAO_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | LaoBreakEngine.java | 22 private static final byte LAO_LOOKAHEAD = 3; field in LaoBreakEngine 101 PossibleWord words[] = new PossibleWord[LAO_LOOKAHEAD]; in divideUpDictionaryRange() 102 for (int i = 0; i < LAO_LOOKAHEAD; i++) { in divideUpDictionaryRange() 112 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange() 116 wordLength = words[wordsFound%LAO_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange() 127 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 130 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 142 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 143 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 147 } while (words[(wordsFound+1)%LAO_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange() [all …]
|
/external/icu/icu4c/source/common/ |
D | dictbe.cpp | 418 static const int32_t LAO_LOOKAHEAD = 3; variable 473 PossibleWord words[LAO_LOOKAHEAD]; in divideUpDictionaryRange() 482 … int32_t candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(text, fDictionary, rangeEnd); in divideUpDictionaryRange() 486 cuWordLength = words[wordsFound % LAO_LOOKAHEAD].acceptMarked(text); in divideUpDictionaryRange() 487 cpWordLength = words[wordsFound % LAO_LOOKAHEAD].markedCPLength(); in divideUpDictionaryRange() 498 … if (words[(wordsFound + 1) % LAO_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange() 501 words[wordsFound%LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 513 … if (words[(wordsFound + 2) % LAO_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) { in divideUpDictionaryRange() 514 words[wordsFound % LAO_LOOKAHEAD].markCurrent(); in divideUpDictionaryRange() 518 while (words[(wordsFound + 1) % LAO_LOOKAHEAD].backUp(text)); in divideUpDictionaryRange() [all …]
|