/third_party/skia/third_party/externals/icu/source/common/ |
D | locdistance.cpp | 112 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 …]
|
D | locdistance.h | 61 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/ |
D | locdistance.cpp | 112 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 …]
|
D | locdistance.h | 61 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/ |
D | locdistance.cpp | 112 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 …]
|
D | locdistance.h | 61 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/ |
D | LocaleDistance.java | 251 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/ |
D | LocaleDistance.java | 246 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 …]
|