Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp174 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53_1()
175 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53_1()
176 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53_1()
177 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53_1()
178 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53_1()
179 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53_1()
180 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53_1()
181 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53_1()
182 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53_1()
183 measureUnit.adoptInstead(MeasureUnit::createSquareMile(status)); in TestCompatible53_1()
[all …]
Dplurults.cpp211 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
221 newRules.adoptInstead(test->createRules(decimalRule, status)); in testAPI()
664 pr.adoptInstead(PluralRules::createRules("s: n not in 1,3,4,6", status)); in testSelect()
668 pr.adoptInstead(PluralRules::createRules("r: n in 1..4, 7..10, 14 .. 17;" in testSelect()
674 pr.adoptInstead(PluralRules::createRules("a: n mod 10 is 1; b: n mod 100 is 0 ", status)); in testSelect()
681 pr.adoptInstead(PluralRules::createRules("a: n is 1", status)); in testSelect()
685 pr.adoptInstead(PluralRules::createRules("a: n is 1 ", status)); in testSelect()
689 pr.adoptInstead(PluralRules::createRules("a: n is 1;", status)); in testSelect()
693 pr.adoptInstead(PluralRules::createRules("a: n is 1 ; ", status)); in testSelect()
699 …pr.adoptInstead(PluralRules::createRules("c: n in 5..15; b : n in 1..10 ;a:n in 10 .. 20", status… in testSelect()
[all …]
Drbbiapts.cpp1212 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(status)); in TestFilteredBreakIteratorBuilder()
1216 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
1220 filteredBI.adoptInstead(builder->build(baseBI.orphan(), status)); in TestFilteredBreakIteratorBuilder()
1238 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(status)); in TestFilteredBreakIteratorBuilder()
1251 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
1255 filteredBI.adoptInstead(builder->build(baseBI.orphan(), status)); in TestFilteredBreakIteratorBuilder()
1271 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(status)); in TestFilteredBreakIteratorBuilder()
1281 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
1285 filteredBI.adoptInstead(builder->build(baseBI.orphan(), status)); in TestFilteredBreakIteratorBuilder()
1300 … builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(Locale::getEnglish(), status)); in TestFilteredBreakIteratorBuilder()
[all …]
Ditutil.cpp306 s.adoptInstead(new UnicodeString((UChar)0xfffc)); in TestLocalPointer()
315 s.adoptInstead(new UnicodeString()); in TestLocalPointer()
410 a.adoptInstead(new UnicodeString[4]); in TestLocalArray()
676 sel.adoptInstead(NULL); in TestLocalXyzPointerNull()
684 cal.adoptInstead(NULL); in TestLocalXyzPointerNull()
691 patgen.adoptInstead(NULL); in TestLocalXyzPointerNull()
699 msg.adoptInstead(NULL); in TestLocalXyzPointerNull()
711 regex.adoptInstead(NULL); in TestLocalXyzPointerNull()
724 trans.adoptInstead(NULL); in TestLocalXyzPointerNull()
Drbbimonkeytest.cpp62 fCharClasses.adoptInstead(uhash_open(uhash_hashUnicodeString, in BreakRules()
73 fCharClassList.adoptInstead(new UVector(status)); in BreakRules()
75 fSetRefsMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
82 fCommentsMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
90 fClassDefMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
99 fRuleDefMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
212 …thisRule->fRuleMatcher.adoptInstead(new RegexMatcher(thisRule->fExpandedRule, UREGEX_COMMENTS | UR… in addRule()
613 fRuleSet.adoptInstead(new BreakRules(this, status)); in setup()
619 fBI.adoptInstead(fRuleSet->createICUBreakIterator(status)); in setup()
620 fTestData.adoptInstead(new MonkeyTestData()); in setup()
[all …]
Dstrcase.cpp496 … iter.adoptInstead(ubrk_open((UBreakIteratorType)type, cLocaleID, NULL, 0, &status)); in TestCasing()
502 … iter.adoptInstead(ubrk_openRules(rules, UPRV_LENGTHOF(rules), NULL, 0, &parseError, &status)); in TestCasing()
531 iter.adoptInstead(NULL); in TestCasing()
Dtscoll.cpp502 orders.adoptInstead(temp); in getOrders()
521 orders.adoptInstead(temp); in getOrders()
Dscientificnumberformattertest.cpp69 fmt.adoptInstead( in TestBasic()
Dtsmthred.cpp503 fFormat.adoptInstead(NumberFormat::createCurrencyInstance(Locale::getUS(), status)); in ThreadSafeFormatSharedData()
538 fFormat.adoptInstead(NumberFormat::createCurrencyInstance(Locale::getUS(), status)); in ThreadSafeFormat()
607 fTSF.adoptInstead(new ThreadSafeFormat(status)); in FormatThreadTest()
701 … percentFormatter.adoptInstead(NumberFormat::createPercentInstance(Locale::getFrench(),status)); in run()
Dg7coll.cpp128 myCollation.adoptInstead(tblColl1); in TestG7Locales()
Dcallimts.cpp214 cal.adoptInstead(Calendar::createInstance(buf, status)); in TestLimitsThread()
Dconvtest.cpp454 cnv.adoptInstead(cnv_open(charset, errorCode)); in TestGetUnicodeSet()
588 cnv.adoptInstead(cnv_open(cnvNames[i], errorCode)); in TestGetUnicodeSet2()
Ddtifmtts.cpp185 dif.adoptInstead(DateIntervalFormat::createInstance("yMd", enLocale, status)); in testAPI()
Dapicoll.cpp2424 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
2433 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
2445 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
/external/icu/icu4c/source/common/unicode/
Dlocalpointer.h144 void adoptInstead(T *p) { in adoptInstead() function
286 void adoptInstead(T *p) { in adoptInstead() function
435 void adoptInstead(T *p) { in adoptInstead() function
524 void adoptInstead(Type *p) { \
551 void adoptInstead(Type *p) { \
/external/icu/icu4c/source/common/
Duloc_keytype.cpp143 … keyMapEntry.adoptInstead(ures_getNextResource(keyMapRes.getAlias(), keyMapEntry.orphan(), &sts)); in initFromResourceBundle()
184 …typeAliasResByKey.adoptInstead(ures_getByKey(typeAliasRes.getAlias(), legacyKeyId, NULL, &tmpSts)); in initFromResourceBundle()
191 …bcpTypeAliasResByKey.adoptInstead(ures_getByKey(bcpTypeAliasRes.getAlias(), bcpKeyId, NULL, &tmpSt… in initFromResourceBundle()
207 …typeMapEntry.adoptInstead(ures_getNextResource(typeMapResByKey.getAlias(), typeMapEntry.orphan(), … in initFromResourceBundle()
312 …typeAliasDataEntry.adoptInstead(ures_getNextResource(typeAliasResByKey.getAlias(), typeAliasDataEn… in initFromResourceBundle()
362 …bcpTypeAliasDataEntry.adoptInstead(ures_getNextResource(bcpTypeAliasResByKey.getAlias(), bcpTypeAl… in initFromResourceBundle()
Dfilteredbrk.cpp255 fText.adoptInstead(fDelegate->getUText(fText.orphan(), status)); in resetState()
521 strs.adoptInstead(ures_getNextResource(breaks.getAlias(), strs.orphan(), &subStatus)); in SimpleFilteredBreakIteratorBuilder()
662 backwardsTrie.adoptInstead(builder->build(USTRINGTRIE_BUILD_FAST, status)); in build()
670 forwardsPartialTrie.adoptInstead(builder2->build(USTRINGTRIE_BUILD_FAST, status)); in build()
Dcmemory.h227 void adoptInstead(T *p) { in adoptInstead() function
/external/icu/icu4c/source/tools/toolutil/
Dpkg_icu.cpp159 ownedPkg.adoptInstead(new Package); in writePackageDatFile()
166 addListPkg.adoptInstead(readList(sourcePath, addList, TRUE, NULL)); in writePackageDatFile()
/external/icu/icu4c/source/i18n/
Dbrktrans.cpp86 bi.adoptInstead(BreakIterator::createWordInstance(Locale::getEnglish(), status)); in handleTransliterate()
89 boundaries.adoptInstead(new UVector32(status)); in handleTransliterate()
Dsmpdtfmt.cpp714 dateTimePatterns.adoptInstead( in construct()
723 dateTimePatterns.adoptInstead( in construct()
760 currentBundle.adoptInstead( in construct()
785 currentBundle.adoptInstead( in construct()
825 currentBundle.adoptInstead( in construct()
850 currentBundle.adoptInstead( in construct()
Dnumfmt.cpp1376 ownedNs.adoptInstead(NumberingSystem::createInstance(desiredLocale,status)); in makeInstance()
1407 ownedResource.adoptInstead(resource); in makeInstance()
Dregion.cpp207 res.adoptInstead(NULL); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
/external/icu/icu4c/source/test/iotest/
Diotest.cpp237 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "w", fileLocale, "UTF-8")); in DataDrivenPrintf()
321 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "r", fileLocale, "UTF-8")); in DataDrivenPrintf()
/external/icu/icu4c/source/tools/genrb/
Dgenrb.cpp664 data.adoptInstead(parse(ucbuf, inputDir, outputDir, filename, in processFile()

12