Home
last modified time | relevance | path

Searched refs:putIfAbsent (Results 1 – 25 of 28) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DICUResourceBundleReader.java545 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getStringV2()
585 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getString()
639 return (String)resourceCache.putIfAbsent(res, s, length * 2); in getAlias()
746 return (Array)resourceCache.putIfAbsent(res, array, 0); in getArray()
774 return (Table)resourceCache.putIfAbsent(res, table, size); in getTable()
1221 Object putIfAbsent(int key, Object item, int size) { in putIfAbsent() method in ICUResourceBundleReader.ResourceCache.Level
1230 return level.putIfAbsent(key, item, size); in putIfAbsent()
1244 return level.putIfAbsent(key, item, size); in putIfAbsent()
1330 synchronized Object putIfAbsent(int res, Object item, int size) { in putIfAbsent() method in ICUResourceBundleReader.ResourceCache
1349 rootLevel.putIfAbsent(makeKey(keys[i]), values[i], 0); in putIfAbsent()
[all …]
DSoftCache.java74 mapValue = map.putIfAbsent(key, mapValue); in getInstance()
DTimeZoneGenericNames.java261 _genericLocationNamesMap.putIfAbsent(canonicalTzID.intern(), ""); in getGenericLocationName()
265 String tmp = _genericLocationNamesMap.putIfAbsent(canonicalTzID, name.intern()); in getGenericLocationName()
575 String tmp = _genericPartialLocationNamesMap.putIfAbsent(key.intern(), name.intern()); in getPartialLocationName()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUResourceBundleReader.java543 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getStringV2()
583 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getString()
637 return (String)resourceCache.putIfAbsent(res, s, length * 2); in getAlias()
744 return (Array)resourceCache.putIfAbsent(res, array, 0); in getArray()
772 return (Table)resourceCache.putIfAbsent(res, table, size); in getTable()
1219 Object putIfAbsent(int key, Object item, int size) { in putIfAbsent() method in ICUResourceBundleReader.ResourceCache.Level
1228 return level.putIfAbsent(key, item, size); in putIfAbsent()
1242 return level.putIfAbsent(key, item, size); in putIfAbsent()
1328 synchronized Object putIfAbsent(int res, Object item, int size) { in putIfAbsent() method in ICUResourceBundleReader.ResourceCache
1347 rootLevel.putIfAbsent(makeKey(keys[i]), values[i], 0); in putIfAbsent()
[all …]
DSoftCache.java72 mapValue = map.putIfAbsent(key, mapValue); in getInstance()
DTimeZoneGenericNames.java257 _genericLocationNamesMap.putIfAbsent(canonicalTzID.intern(), ""); in getGenericLocationName()
261 String tmp = _genericLocationNamesMap.putIfAbsent(canonicalTzID, name.intern()); in getGenericLocationName()
571 String tmp = _genericPartialLocationNamesMap.putIfAbsent(key.intern(), name.intern()); in getPartialLocationName()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DLocaleMatcher.java653 suppLength = putIfAbsent(lsr, 0, suppLength); in LocaleMatcher()
655 suppLength = putIfAbsent(lsr, i, suppLength); in LocaleMatcher()
668 suppLength = putIfAbsent(lsrs[i], i, suppLength); in LocaleMatcher()
674 suppLength = putIfAbsent(lsrs[i], i, suppLength); in LocaleMatcher()
694 private final int putIfAbsent(LSR lsr, int i, int suppLength) { in putIfAbsent() method in LocaleMatcher
DVersionInfo.java291 VersionInfo tmpvi = MAP_.putIfAbsent(key, result); in getInstance()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java729 suppLength = putIfAbsent(lsr, 0, suppLength); in LocaleMatcher()
731 suppLength = putIfAbsent(lsr, i, suppLength); in LocaleMatcher()
744 suppLength = putIfAbsent(lsrs[i], i, suppLength); in LocaleMatcher()
750 suppLength = putIfAbsent(lsrs[i], i, suppLength); in LocaleMatcher()
786 private final int putIfAbsent(LSR lsr, int i, int suppLength) { in putIfAbsent() method in LocaleMatcher
DVersionInfo.java337 VersionInfo tmpvi = MAP_.putIfAbsent(key, result); in getInstance()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DDistanceTable.java219 if (!putIfAbsent(key)) { in addExplicitMapping()
229 putIfAbsent(key); in addWildcardMappings()
270 private boolean putIfAbsent(MappingKey key) { in putIfAbsent() method in DistanceTable.Node
DIndexer.java38 indexMap.putIfAbsent(checkNotNull(value), indexMap.size()); in apply()
/third_party/node/deps/icu-small/source/common/
Dlocalematcher.cpp327 int32_t LocaleMatcher::putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, in putIfAbsent() function in LocaleMatcher
429 suppLength = putIfAbsent(lsr, 0, suppLength, errorCode); in LocaleMatcher()
432 suppLength = putIfAbsent(lsr, i, suppLength, errorCode); in LocaleMatcher()
445 suppLength = putIfAbsent(lsrs[i], i, suppLength, errorCode); in LocaleMatcher()
451 suppLength = putIfAbsent(lsrs[i], i, suppLength, errorCode); in LocaleMatcher()
/third_party/skia/third_party/externals/icu/source/common/
Dlocalematcher.cpp345 int32_t LocaleMatcher::putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, in putIfAbsent() function in LocaleMatcher
447 suppLength = putIfAbsent(lsr, 0, suppLength, errorCode); in LocaleMatcher()
450 suppLength = putIfAbsent(lsr, i, suppLength, errorCode); in LocaleMatcher()
463 suppLength = putIfAbsent(lsrs[i], i, suppLength, errorCode); in LocaleMatcher()
469 suppLength = putIfAbsent(lsrs[i], i, suppLength, errorCode); in LocaleMatcher()
/third_party/icu/icu4c/source/common/
Dlocalematcher.cpp327 int32_t LocaleMatcher::putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, in putIfAbsent() function in LocaleMatcher
429 suppLength = putIfAbsent(lsr, 0, suppLength, errorCode); in LocaleMatcher()
432 suppLength = putIfAbsent(lsr, i, suppLength, errorCode); in LocaleMatcher()
445 suppLength = putIfAbsent(lsrs[i], i, suppLength, errorCode); in LocaleMatcher()
451 suppLength = putIfAbsent(lsrs[i], i, suppLength, errorCode); in LocaleMatcher()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DLocaleObjectCache.java51 entry = _map.putIfAbsent(key, newEntry); in get()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleObjectCache.java47 entry = _map.putIfAbsent(key, newEntry); in get()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DProtobuf.java121 return schemaCache.putIfAbsent(messageType, schema); in registerSchema()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DMetadataManager.java121 PhoneMetadata oldValue = map.putIfAbsent(key, metadata); in getMetadataFromMultiFilePrefix()
/third_party/node/deps/icu-small/source/common/unicode/
Dlocalematcher.h679 int32_t putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, UErrorCode &errorCode);
/third_party/icu/icu4c/source/common/unicode/
Dlocalematcher.h679 int32_t putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, UErrorCode &errorCode);
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dlocalematcher.h685 int32_t putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, UErrorCode &errorCode);
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/generator/
DResourceFallbackCodeGenerator.java115 stringIndex.putIfAbsent(string, 0); in buildCompositeString()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DAnyTransliterator.java208 Transliterator prevCachedT = cache.putIfAbsent(key, t); in getTransliterator()
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DAnyTransliterator.java208 Transliterator prevCachedT = cache.putIfAbsent(key, t); in getTransliterator()

12