Home
last modified time | relevance | path

Searched refs:shiftedThreshold (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/third_party/externals/icu/source/common/
Dlocdistance.cpp112 int32_t shiftedThreshold, in getBestIndexAndDistance() argument
157 int32_t roundedThreshold = (shiftedThreshold + DISTANCE_FRACTION_MASK) >> DISTANCE_SHIFT; in getBestIndexAndDistance()
216 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
224 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
229 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
234 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
237 } else if (shiftedDistance == shiftedThreshold && bestIndex >= 0) { in getBestIndexAndDistance()
240 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
Dlocdistance.h61 int32_t shiftedThreshold,
93 int32_t shiftedThreshold, ULocMatchFavorSubtag favorSubtag) const { in isMatch() argument
97 shiftedThreshold, favorSubtag, ULOCMATCH_DIRECTION_WITH_ONE_WAY) >= 0; in isMatch()
/third_party/node/deps/icu-small/source/common/
Dlocdistance.cpp112 int32_t shiftedThreshold, in getBestIndexAndDistance() argument
157 int32_t roundedThreshold = (shiftedThreshold + DISTANCE_FRACTION_MASK) >> DISTANCE_SHIFT; in getBestIndexAndDistance()
216 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
224 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
229 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
234 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
237 } else if (shiftedDistance == shiftedThreshold && bestIndex >= 0) { in getBestIndexAndDistance()
240 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
Dlocdistance.h61 int32_t shiftedThreshold,
93 int32_t shiftedThreshold, ULocMatchFavorSubtag favorSubtag) const { in isMatch() argument
97 shiftedThreshold, favorSubtag, ULOCMATCH_DIRECTION_WITH_ONE_WAY) >= 0; in isMatch()
/third_party/icu/icu4c/source/common/
Dlocdistance.cpp112 int32_t shiftedThreshold, in getBestIndexAndDistance() argument
157 int32_t roundedThreshold = (shiftedThreshold + DISTANCE_FRACTION_MASK) >> DISTANCE_SHIFT; in getBestIndexAndDistance()
216 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
224 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
229 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
234 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
237 } else if (shiftedDistance == shiftedThreshold && bestIndex >= 0) { in getBestIndexAndDistance()
240 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
Dlocdistance.h61 int32_t shiftedThreshold,
93 int32_t shiftedThreshold, ULocMatchFavorSubtag favorSubtag) const { in isMatch() argument
97 shiftedThreshold, favorSubtag, ULOCMATCH_DIRECTION_WITH_ONE_WAY) >= 0; in isMatch()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DLocaleDistance.java251 int shiftedThreshold, FavorSubtag favorSubtag, LocaleMatcher.Direction direction) { in getBestIndexAndDistance() argument
295 int roundedThreshold = (shiftedThreshold + DISTANCE_FRACTION_MASK) >> DISTANCE_SHIFT; in getBestIndexAndDistance()
354 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
357 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
362 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
367 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
370 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
372 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
375 } else if (shiftedDistance == shiftedThreshold && bestIndex >= 0) { in getBestIndexAndDistance()
378 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleDistance.java246 int shiftedThreshold, FavorSubtag favorSubtag, LocaleMatcher.Direction direction) { in getBestIndexAndDistance() argument
290 int roundedThreshold = (shiftedThreshold + DISTANCE_FRACTION_MASK) >> DISTANCE_SHIFT; in getBestIndexAndDistance()
349 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
352 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
357 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
362 if (shiftedDistance < shiftedThreshold) { in getBestIndexAndDistance()
365 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
367 shiftedThreshold = shiftedDistance; in getBestIndexAndDistance()
370 } else if (shiftedDistance == shiftedThreshold && bestIndex >= 0) { in getBestIndexAndDistance()
373 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]