Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCjkBreakEngine.java129 int[] bestSnlp = new int[numChars + 1]; in divideUpDictionaryRange() local
130 bestSnlp[0] = 0; in divideUpDictionaryRange()
132 bestSnlp[i] = kint32max; in divideUpDictionaryRange()
147 if (bestSnlp[i] == kint32max) { in divideUpDictionaryRange()
168 int newSnlp = bestSnlp[i] + values[j]; in divideUpDictionaryRange()
169 if (newSnlp < bestSnlp[lengths[j] + i]) { in divideUpDictionaryRange()
170 bestSnlp[lengths[j] + i] = newSnlp; in divideUpDictionaryRange()
191 int newSnlp = bestSnlp[i] + getKatakanaCost(j - i); in divideUpDictionaryRange()
192 if (newSnlp < bestSnlp[j]) { in divideUpDictionaryRange()
193 bestSnlp[j] = newSnlp; in divideUpDictionaryRange()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCjkBreakEngine.java130 int[] bestSnlp = new int[numChars + 1]; in divideUpDictionaryRange() local
131 bestSnlp[0] = 0; in divideUpDictionaryRange()
133 bestSnlp[i] = kint32max; in divideUpDictionaryRange()
148 if (bestSnlp[i] == kint32max) { in divideUpDictionaryRange()
169 int newSnlp = bestSnlp[i] + values[j]; in divideUpDictionaryRange()
170 if (newSnlp < bestSnlp[lengths[j] + i]) { in divideUpDictionaryRange()
171 bestSnlp[lengths[j] + i] = newSnlp; in divideUpDictionaryRange()
192 int newSnlp = bestSnlp[i] + getKatakanaCost(j - i); in divideUpDictionaryRange()
193 if (newSnlp < bestSnlp[j]) { in divideUpDictionaryRange()
194 bestSnlp[j] = newSnlp; in divideUpDictionaryRange()
[all …]
/external/icu/icu4c/source/common/
Ddictbe.cpp1267 UVector32 bestSnlp(numCodePts + 1, status); in divideUpDictionaryRange() local
1268 bestSnlp.addElement(0, status); in divideUpDictionaryRange()
1270 bestSnlp.addElement(kuint32max, status); in divideUpDictionaryRange()
1297 if ((uint32_t)bestSnlp.elementAti(i) == kuint32max) { in divideUpDictionaryRange()
1320 uint32_t newSnlp = (uint32_t)bestSnlp.elementAti(i) + (uint32_t)values.elementAti(j); in divideUpDictionaryRange()
1322 if (newSnlp < (uint32_t)bestSnlp.elementAti(ln_j_i)) { in divideUpDictionaryRange()
1323 bestSnlp.setElementAt(newSnlp, ln_j_i); in divideUpDictionaryRange()
1346 uint32_t newSnlp = bestSnlp.elementAti(i) + getKatakanaCost(katakanaRunLength); in divideUpDictionaryRange()
1347 if (newSnlp < (uint32_t)bestSnlp.elementAti(j)) { in divideUpDictionaryRange()
1348 bestSnlp.setElementAt(newSnlp, j); in divideUpDictionaryRange()
[all …]