Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp152 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53_1()
153 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53_1()
154 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53_1()
155 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53_1()
156 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53_1()
157 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53_1()
158 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53_1()
159 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53_1()
160 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53_1()
161 measureUnit.adoptInstead(MeasureUnit::createSquareMile(status)); in TestCompatible53_1()
[all …]
Dplurults.cpp209 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
219 newRules.adoptInstead(test->createRules(decimalRule, status)); in testAPI()
662 pr.adoptInstead(PluralRules::createRules("s: n not in 1,3,4,6", status)); in testSelect()
666 pr.adoptInstead(PluralRules::createRules("r: n in 1..4, 7..10, 14 .. 17;" in testSelect()
672 pr.adoptInstead(PluralRules::createRules("a: n mod 10 is 1; b: n mod 100 is 0 ", status)); in testSelect()
679 pr.adoptInstead(PluralRules::createRules("a: n is 1", status)); in testSelect()
683 pr.adoptInstead(PluralRules::createRules("a: n is 1 ", status)); in testSelect()
687 pr.adoptInstead(PluralRules::createRules("a: n is 1;", status)); in testSelect()
691 pr.adoptInstead(PluralRules::createRules("a: n is 1 ; ", status)); in testSelect()
697 …pr.adoptInstead(PluralRules::createRules("c: n in 5..15; b : n in 1..10 ;a:n in 10 .. 20", status… in testSelect()
[all …]
Drbbiapts.cpp1237 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(status)); in TestFilteredBreakIteratorBuilder()
1241 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
1245 filteredBI.adoptInstead(builder->build(baseBI.orphan(), status)); in TestFilteredBreakIteratorBuilder()
1263 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(status)); in TestFilteredBreakIteratorBuilder()
1276 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
1280 filteredBI.adoptInstead(builder->build(baseBI.orphan(), status)); in TestFilteredBreakIteratorBuilder()
1296 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(status)); in TestFilteredBreakIteratorBuilder()
1306 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
1310 filteredBI.adoptInstead(builder->build(baseBI.orphan(), status)); in TestFilteredBreakIteratorBuilder()
1325 … builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
[all …]
Ditutil.cpp304 s.adoptInstead(new UnicodeString((UChar)0xfffc)); in TestLocalPointer()
313 s.adoptInstead(new UnicodeString()); in TestLocalPointer()
408 a.adoptInstead(new UnicodeString[4]); in TestLocalArray()
674 sel.adoptInstead(NULL); in TestLocalXyzPointerNull()
682 cal.adoptInstead(NULL); in TestLocalXyzPointerNull()
689 patgen.adoptInstead(NULL); in TestLocalXyzPointerNull()
697 msg.adoptInstead(NULL); in TestLocalXyzPointerNull()
709 regex.adoptInstead(NULL); in TestLocalXyzPointerNull()
722 trans.adoptInstead(NULL); in TestLocalXyzPointerNull()
Dstrcase.cpp487 … iter.adoptInstead(ubrk_open((UBreakIteratorType)type, cLocaleID, NULL, 0, &status)); in TestCasing()
493 … iter.adoptInstead(ubrk_openRules(rules, UPRV_LENGTHOF(rules), NULL, 0, &parseError, &status)); in TestCasing()
522 iter.adoptInstead(NULL); in TestCasing()
Dtscoll.cpp500 orders.adoptInstead(temp); in getOrders()
519 orders.adoptInstead(temp); in getOrders()
Dscientificnumberformattertest.cpp67 fmt.adoptInstead( in TestBasic()
Dtsmthred.cpp501 fFormat.adoptInstead(NumberFormat::createCurrencyInstance(Locale::getUS(), status)); in ThreadSafeFormatSharedData()
536 fFormat.adoptInstead(NumberFormat::createCurrencyInstance(Locale::getUS(), status)); in ThreadSafeFormat()
605 fTSF.adoptInstead(new ThreadSafeFormat(status)); in FormatThreadTest()
699 … percentFormatter.adoptInstead(NumberFormat::createPercentInstance(Locale::getFrench(),status)); in run()
Dg7coll.cpp126 myCollation.adoptInstead(tblColl1); in TestG7Locales()
Dconvtest.cpp452 cnv.adoptInstead(cnv_open(charset, errorCode)); in TestGetUnicodeSet()
586 cnv.adoptInstead(cnv_open(cnvNames[i], errorCode)); in TestGetUnicodeSet2()
Ddtifmtts.cpp180 dif.adoptInstead(DateIntervalFormat::createInstance("yMd", enLocale, status)); in testAPI()
Dapicoll.cpp2422 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
2431 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
2443 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
Ddtfmttst.cpp2559 fmt.adoptInstead(NULL); in TestHebrewClone()
2603 fmt.adoptInstead(NULL); in TestDateFormatSymbolsClone()
4727 fmt.adoptInstead(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeleton()
/external/icu/icu4c/source/common/unicode/
Dlocalpointer.h142 void adoptInstead(T *p) { in adoptInstead() function
285 void adoptInstead(T *p) { in adoptInstead() function
437 void adoptInstead(T *p) { in adoptInstead() function
529 void adoptInstead(Type *p) { \
554 void adoptInstead(Type *p) { \
/external/icu/icu4c/source/common/
Duloc_keytype.cpp139 … keyMapEntry.adoptInstead(ures_getNextResource(keyMapRes.getAlias(), keyMapEntry.orphan(), &sts)); in initFromResourceBundle()
180 …typeAliasResByKey.adoptInstead(ures_getByKey(typeAliasRes.getAlias(), legacyKeyId, NULL, &tmpSts)); in initFromResourceBundle()
187 …bcpTypeAliasResByKey.adoptInstead(ures_getByKey(bcpTypeAliasRes.getAlias(), bcpKeyId, NULL, &tmpSt… in initFromResourceBundle()
203 …typeMapEntry.adoptInstead(ures_getNextResource(typeMapResByKey.getAlias(), typeMapEntry.orphan(), … in initFromResourceBundle()
304 …typeAliasDataEntry.adoptInstead(ures_getNextResource(typeAliasResByKey.getAlias(), typeAliasDataEn… in initFromResourceBundle()
354 …bcpTypeAliasDataEntry.adoptInstead(ures_getNextResource(bcpTypeAliasResByKey.getAlias(), bcpTypeAl… in initFromResourceBundle()
Dfilteredbrk.cpp253 fText.adoptInstead(fDelegate->getUText(fText.orphan(), status)); in resetState()
487 strs.adoptInstead(ures_getNextResource(breaks.getAlias(), strs.orphan(), &subStatus)); in SimpleFilteredBreakIteratorBuilder()
628 backwardsTrie.adoptInstead(builder->build(USTRINGTRIE_BUILD_FAST, status)); in build()
636 forwardsPartialTrie.adoptInstead(builder2->build(USTRINGTRIE_BUILD_FAST, status)); in build()
Dcmemory.h223 void adoptInstead(T *p) { in adoptInstead() function
/external/icu/icu4c/source/tools/toolutil/
Dpkg_icu.cpp157 ownedPkg.adoptInstead(new Package); in writePackageDatFile()
164 addListPkg.adoptInstead(readList(sourcePath, addList, TRUE, NULL)); in writePackageDatFile()
/external/icu/icu4c/source/i18n/
Dbrktrans.cpp84 bi.adoptInstead(BreakIterator::createWordInstance(Locale::getEnglish(), status)); in handleTransliterate()
87 boundaries.adoptInstead(new UVector32(status)); in handleTransliterate()
Ddcfmtsym.cpp256 nonLatnSymbols.adoptInstead( in initialize()
385 dataRes.adoptInstead( in initialize()
Dnumfmt.cpp1373 ownedNs.adoptInstead(NumberingSystem::createInstance(desiredLocale,status)); in makeInstance()
1404 ownedResource.adoptInstead(resource); in makeInstance()
Dregion.cpp206 res.adoptInstead(NULL); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
/external/icu/icu4c/source/test/iotest/
Diotest.cpp234 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "w", fileLocale, "UTF-8")); in DataDrivenPrintf()
318 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "r", fileLocale, "UTF-8")); in DataDrivenPrintf()
/external/icu/icu4c/source/tools/genrb/
Dgenrb.cpp661 data.adoptInstead(parse(ucbuf, inputDir, outputDir, filename, in processFile()
/external/icu/icu4c/source/tools/pkgdata/
Dpkgdata.cpp2124 p.adoptInstead(popen(cmdBuf.data(), "r")); in pkg_getOptionsFromICUConfig()
2132 p.adoptInstead(popen(cmd, "r")); in pkg_getOptionsFromICUConfig()

12