Home
last modified time | relevance | path

Searched refs:singleton (Results 1 - 25 of 78) sorted by relevance

1234

/third_party/typescript/tests/baselines/reference/
H A DcontextualSignatureInstantiation3.js10 function singleton<T>(x: T) {
22 var v2 = xs.map(singleton); // Error if not number[][]
23 var v2 = map(xs, singleton); // Error if not number[][]
33 function singleton(x) { function
42 var v2 = xs.map(singleton); // Error if not number[][]
43 var v2 = map(xs, singleton); // Error if not number[][]
/third_party/icu/icu4c/source/common/
H A Demojiprops.cpp24 EmojiProps *singleton = nullptr; member
28 delete singleton; in emojiprops_cleanup()
29 singleton = nullptr; in emojiprops_cleanup()
36 singleton = new EmojiProps(errorCode); in initSingleton()
37 if (singleton == nullptr) { in initSingleton()
40 delete singleton; in initSingleton()
41 singleton = nullptr; in initSingleton()
73 return singleton; in getSingleton()
/third_party/node/deps/icu-small/source/common/
H A Demojiprops.cpp24 EmojiProps *singleton = nullptr; member
28 delete singleton; in emojiprops_cleanup()
29 singleton = nullptr; in emojiprops_cleanup()
36 singleton = new EmojiProps(errorCode); in initSingleton()
37 if (singleton == nullptr) { in initSingleton()
40 delete singleton; in initSingleton()
41 singleton = nullptr; in initSingleton()
73 return singleton; in getSingleton()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DNorm2AllModes.java297 private static Norm2AllModes getInstanceFromSingleton(Norm2AllModesSingleton singleton) { in getInstanceFromSingleton() argument
298 if(singleton.exception!=null) { in getInstanceFromSingleton()
299 throw singleton.exception; in getInstanceFromSingleton()
301 return singleton.allModes; in getInstanceFromSingleton()
324 Norm2AllModesSingleton singleton; in getInstance()
326 singleton=NFCSingleton.INSTANCE; in getInstance()
328 singleton=NFKCSingleton.INSTANCE; in getInstance()
330 singleton=NFKC_CFSingleton.INSTANCE; in getInstance()
332 singleton=null; in getInstance()
334 if(singleton! in getInstance()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DNorm2AllModes.java316 private static Norm2AllModes getInstanceFromSingleton(Norm2AllModesSingleton singleton) { in getInstanceFromSingleton() argument
317 if(singleton.exception!=null) { in getInstanceFromSingleton()
318 throw singleton.exception; in getInstanceFromSingleton()
320 return singleton.allModes; in getInstanceFromSingleton()
343 Norm2AllModesSingleton singleton; in getInstance()
345 singleton=NFCSingleton.INSTANCE; in getInstance()
347 singleton=NFKCSingleton.INSTANCE; in getInstance()
349 singleton=NFKC_CFSingleton.INSTANCE; in getInstance()
351 singleton=null; in getInstance()
353 if(singleton! in getInstance()
[all...]
/third_party/skia/src/ports/
H A DSkFontConfigInterface_direct_factory.cpp12 static SkFontConfigInterface* singleton; in GetSingletonDirectInterface() local
14 once([]{ singleton = new SkFontConfigInterfaceDirect(); }); in GetSingletonDirectInterface()
15 return singleton; in GetSingletonDirectInterface()
/third_party/node/deps/v8/src/zone/
H A Dzone-handle-set.h36 return Handle<T>(singleton()); in at()
49 if (singleton() == value) return; in insert()
51 if (singleton() < value) { in insert()
52 list->push_back(singleton()); in insert()
56 list->push_back(singleton()); in insert()
93 other.singleton()) != cached_list->end(); in contains()
110 return singleton() == other_address; in contains()
167 Address* singleton() const { in singleton() function in v8::internal::final
/third_party/protobuf/src/google/protobuf/
H A Dmessage.cc179 static GeneratedMessageFactory* singleton();
198 GeneratedMessageFactory* GeneratedMessageFactory::singleton() { in singleton() function in google::protobuf::__anon17034::GeneratedMessageFactory
270 return GeneratedMessageFactory::singleton(); in generated_factory()
275 GeneratedMessageFactory::singleton()->RegisterFile(table); in InternalRegisterGeneratedFile()
280 GeneratedMessageFactory::singleton()->RegisterType(descriptor, prototype); in InternalRegisterGeneratedMessage()
287 static T singleton; in GetSingleton() local
288 return &singleton; in GetSingleton()
/third_party/skia/src/core/
H A DSkFontMgr.cpp162 static SkEmptyFontMgr singleton; in RefEmpty() local
163 return sk_ref_sp(&singleton); in RefEmpty()
171 static sk_sp<SkFontMgr> singleton; in RefDefault() local
176 singleton = fm ? std::move(fm) : sk_make_sp<SkEmptyFontMgr>(); in RefDefault()
178 return singleton; in RefDefault()
H A DSkDataTable.cpp81 static SkDataTable* singleton; in MakeEmpty() local
83 once([]{ singleton = new SkDataTable(); }); in MakeEmpty()
84 return sk_ref_sp(singleton); in MakeEmpty()
H A DSkRecord.h120 static T singleton = {}; in allocCommand() local
121 return &singleton; in allocCommand()
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
H A DICUTaglet.java233 private static ICUTaglet singleton; field in ICUTaglet.ICUIgnoreTaglet
236 if (singleton == null) { in register()
237 singleton = new ICUIgnoreTaglet(); in register()
239 taglets.put("bug", singleton); in register()
240 taglets.put("test", singleton); in register()
241 taglets.put("summary", singleton); in register()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DProtobufArrayListTest.java213 assertTrue(list.addAll(Collections.singleton(1))); in testAddAll()
293 list.addAll(0, Collections.singleton(1)); in assertImmutable()
342 list.removeAll(Collections.singleton(1)); in assertImmutable()
363 list.retainAll(Collections.singleton(1)); in assertImmutable()
H A DIntArrayListTest.java316 assertTrue(list.addAll(Collections.singleton(1))); in testAddAll()
437 list.addAll(0, Collections.singleton(1)); in assertImmutable()
493 list.removeAll(Collections.singleton(1)); in assertImmutable()
514 list.retainAll(Collections.singleton(1)); in assertImmutable()
H A DBooleanArrayListTest.java318 assertTrue(list.addAll(Collections.singleton(true))); in testAddAll()
436 list.addAll(0, Collections.singleton(true)); in assertImmutable()
492 list.removeAll(Collections.singleton(Boolean.TRUE)); in assertImmutable()
513 list.removeAll(Collections.singleton(Boolean.TRUE)); in assertImmutable()
H A DFloatArrayListTest.java316 assertTrue(list.addAll(Collections.singleton(1F))); in testAddAll()
439 list.addAll(0, Collections.singleton(1F)); in assertImmutable()
495 list.removeAll(Collections.singleton(1F)); in assertImmutable()
516 list.retainAll(Collections.singleton(1F)); in assertImmutable()
H A DDoubleArrayListTest.java316 assertTrue(list.addAll(Collections.singleton(1D))); in testAddAll()
439 list.addAll(0, Collections.singleton(1D)); in assertImmutable()
495 list.removeAll(Collections.singleton(1D)); in assertImmutable()
516 list.retainAll(Collections.singleton(1D)); in assertImmutable()
H A DLongArrayListTest.java316 assertTrue(list.addAll(Collections.singleton(1L))); in testAddAll()
437 list.addAll(0, Collections.singleton(1L)); in assertImmutable()
493 list.removeAll(Collections.singleton(1L)); in assertImmutable()
514 list.retainAll(Collections.singleton(1L)); in assertImmutable()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
H A DInternalLocaleBuilder.java143 public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxException { in setExtension() argument
145 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton); in setExtension()
146 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) { in setExtension()
147 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton); in setExtension()
151 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton); in setExtension()
219 String singleton = s; in setExtensions()
220 StringBuilder sb = new StringBuilder(singleton); in setExtensions()
235 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'", start); in setExtensions()
291 // each extension string contains singleton, e.g. "a-abc-def" in setExtensions()
558 * The input must be a valid extension subtags (excluding singleton)
[all...]
H A DLocaleExtensions.java181 char singleton = entry.getKey().charValue(); in toID()
183 if (LanguageTag.isPrivateusePrefixChar(singleton)) { in toID()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
H A DInternalLocaleBuilder.java147 public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxException { in setExtension() argument
149 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton); in setExtension()
150 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) { in setExtension()
151 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton); in setExtension()
155 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton); in setExtension()
223 String singleton = s; in setExtensions()
224 StringBuilder sb = new StringBuilder(singleton); in setExtensions()
239 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'", start); in setExtensions()
295 // each extension string contains singleton, e.g. "a-abc-def" in setExtensions()
562 * The input must be a valid extension subtags (excluding singleton)
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
H A Dvariant_test.cc2296 variant<double> singleton( in TEST()
2298 ASSERT_TRUE(absl::holds_alternative<double>(singleton)); in TEST()
2299 EXPECT_EQ(42.0, absl::get<double>(singleton)); in TEST()
2301 singleton = ConvertVariantTo<variant<double>>(variant<int, float>(3.14f)); in TEST()
2302 ASSERT_TRUE(absl::holds_alternative<double>(singleton)); in TEST()
2303 EXPECT_FLOAT_EQ(3.14f, static_cast<float>(absl::get<double>(singleton))); in TEST()
2305 singleton = ConvertVariantTo<variant<double>>(variant<int>(0)); in TEST()
2306 ASSERT_TRUE(absl::holds_alternative<double>(singleton)); in TEST()
2307 EXPECT_EQ(0.0, absl::get<double>(singleton)); in TEST()
2344 variant<double> singleton(ConvertVariantT in TEST()
[all...]
/third_party/libphonenumber/migrator/src/test/java/com/google/phonenumbers/migrator/
H A DMigrationJobTest.java82 RangeKey invalidKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipes_singleMigration_unsupportedRecipeKey_expectException()
102 RangeKey validKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipes_singleMigration_validKey_expectMigration()
116 RangeKey recipeKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipes_invalidOldFormatValue_expectException()
136 RangeKey recipeKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipe_multipleMigration_nextRecipeNotFound_expectException()
158 RangeKey recipeKey = RangeKey.create(testRecipePrefix, Collections.singleton(testRecipeLength)); in customRecipe_multipleMigration_expectMigration()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
H A DResourceBasedPeriodFormatterDataService.java45 private static final ResourceBasedPeriodFormatterDataService singleton = new ResourceBasedPeriodFormatterDataService(); field in ResourceBasedPeriodFormatterDataService
48 * Returns the singleton instance of this class.
51 return singleton; in getInstance()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
H A DResourceBasedPeriodFormatterDataService.java47 private static final ResourceBasedPeriodFormatterDataService singleton = new ResourceBasedPeriodFormatterDataService(); field in ResourceBasedPeriodFormatterDataService
50 * Returns the singleton instance of this class.
53 return singleton; in getInstance()

Completed in 18 milliseconds

1234