Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/impl/breakiter/
DCjkBreakEngine.java180 int[] bestSnlp = new int[numCodePts + 1]; in divideUpDictionaryRange() local
181 bestSnlp[0] = 0; in divideUpDictionaryRange()
183 bestSnlp[i] = kint32max; in divideUpDictionaryRange()
204 if (bestSnlp[i] == kint32max) { in divideUpDictionaryRange()
226 int newSnlp = bestSnlp[i] + values[j]; in divideUpDictionaryRange()
227 if (newSnlp < bestSnlp[lengths[j] + i]) { in divideUpDictionaryRange()
228 bestSnlp[lengths[j] + i] = newSnlp; in divideUpDictionaryRange()
248 int newSnlp = bestSnlp[i] + getKatakanaCost(j - i); in divideUpDictionaryRange()
249 if (newSnlp < bestSnlp[j]) { in divideUpDictionaryRange()
250 bestSnlp[j] = newSnlp; in divideUpDictionaryRange()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/breakiter/
DCjkBreakEngine.java176 int[] bestSnlp = new int[numCodePts + 1]; in divideUpDictionaryRange() local
177 bestSnlp[0] = 0; in divideUpDictionaryRange()
179 bestSnlp[i] = kint32max; in divideUpDictionaryRange()
200 if (bestSnlp[i] == kint32max) { in divideUpDictionaryRange()
222 int newSnlp = bestSnlp[i] + values[j]; in divideUpDictionaryRange()
223 if (newSnlp < bestSnlp[lengths[j] + i]) { in divideUpDictionaryRange()
224 bestSnlp[lengths[j] + i] = newSnlp; in divideUpDictionaryRange()
244 int newSnlp = bestSnlp[i] + getKatakanaCost(j - i); in divideUpDictionaryRange()
245 if (newSnlp < bestSnlp[j]) { in divideUpDictionaryRange()
246 bestSnlp[j] = newSnlp; in divideUpDictionaryRange()
[all …]
/external/cronet/third_party/icu/source/common/
Ddictbe.cpp1257 UVector32 bestSnlp(numCodePts + 1, status); in divideUpDictionaryRange() local
1258 bestSnlp.addElement(0, status); in divideUpDictionaryRange()
1260 bestSnlp.addElement(kuint32max, status); in divideUpDictionaryRange()
1288 if ((uint32_t)bestSnlp.elementAti(i) == kuint32max) { in divideUpDictionaryRange()
1311 uint32_t newSnlp = (uint32_t)bestSnlp.elementAti(i) + (uint32_t)values.elementAti(j); in divideUpDictionaryRange()
1313 if (newSnlp < (uint32_t)bestSnlp.elementAti(ln_j_i)) { in divideUpDictionaryRange()
1314 bestSnlp.setElementAt(newSnlp, ln_j_i); in divideUpDictionaryRange()
1336 uint32_t newSnlp = bestSnlp.elementAti(i) + getKatakanaCost(katakanaRunLength); in divideUpDictionaryRange()
1337 if (newSnlp < (uint32_t)bestSnlp.elementAti(i+katakanaRunLength)) { in divideUpDictionaryRange()
1338 bestSnlp.setElementAt(newSnlp, i+katakanaRunLength); in divideUpDictionaryRange()
[all …]
/external/icu/icu4c/source/common/
Ddictbe.cpp1276 UVector32 bestSnlp(numCodePts + 1, status); in divideUpDictionaryRange() local
1277 bestSnlp.addElement(0, status); in divideUpDictionaryRange()
1279 bestSnlp.addElement(kuint32max, status); in divideUpDictionaryRange()
1307 if ((uint32_t)bestSnlp.elementAti(i) == kuint32max) { in divideUpDictionaryRange()
1330 uint32_t newSnlp = (uint32_t)bestSnlp.elementAti(i) + (uint32_t)values.elementAti(j); in divideUpDictionaryRange()
1332 if (newSnlp < (uint32_t)bestSnlp.elementAti(ln_j_i)) { in divideUpDictionaryRange()
1333 bestSnlp.setElementAt(newSnlp, ln_j_i); in divideUpDictionaryRange()
1355 uint32_t newSnlp = bestSnlp.elementAti(i) + getKatakanaCost(katakanaRunLength); in divideUpDictionaryRange()
1356 if (newSnlp < (uint32_t)bestSnlp.elementAti(i+katakanaRunLength)) { in divideUpDictionaryRange()
1357 bestSnlp.setElementAt(newSnlp, i+katakanaRunLength); in divideUpDictionaryRange()
[all …]