Home
last modified time | relevance | path

Searched refs:LocalPointer (Results 1 – 25 of 74) sorted by relevance

123

/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp53 LocalPointer<ScientificNumberFormatter> fmt( in TestBasic()
82 LocalPointer<ScientificNumberFormatter> fmt3(fmt->clone()); in TestBasic()
101 LocalPointer<ScientificNumberFormatter> fmt( in TestFarsi()
118LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentMarkup()
128 LocalPointer<ScientificNumberFormatter> fmt( in TestPlusSignInExponentMarkup()
145LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentSuperscript()
155 LocalPointer<ScientificNumberFormatter> fmt( in TestPlusSignInExponentSuperscript()
172LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalMarkup()
176 LocalPointer<ScientificNumberFormatter> fmt( in TestFixedDecimalMarkup()
194LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalSuperscript()
[all …]
Ditformat.cpp152 LocalPointer<IntlTest> test(createGenderInfoTest()); in runIndexedTest()
161 LocalPointer<IntlTest> test(createCompactDecimalFormatTest()); in runIndexedTest()
172 LocalPointer<IntlTest> test(createRelativeDateTimeFormatterTest()); in runIndexedTest()
182 LocalPointer<IntlTest> test(createMeasureFormatTest()); in runIndexedTest()
191 LocalPointer<IntlTest> test(createNumberFormatSpecificationTest()); in runIndexedTest()
200 LocalPointer<IntlTest> test(createScientificNumberFormatterTest()); in runIndexedTest()
Ditutil.cpp74 LocalPointer<IntlTest> test(createLocalPointerTest()); in runIndexedTest()
82 LocalPointer<IntlTest> test(createBytesTrieTest()); in runIndexedTest()
90 LocalPointer<IntlTest> test(createUCharsTrieTest()); in runIndexedTest()
98 LocalPointer<IntlTest> test(createEnumSetTest()); in runIndexedTest()
106 LocalPointer<IntlTest> test(createSimplePatternFormatterTest()); in runIndexedTest()
114 LocalPointer<IntlTest> test(createUnifiedCacheTest()); in runIndexedTest()
122 LocalPointer<IntlTest> test(createQuantityFormatterTest()); in runIndexedTest()
277 LocalPointer<UnicodeString> s(new UnicodeString((UChar32)0x50005)); in TestLocalPointer()
305 LocalPointer<CharString> cs(new CharString("some chars", errorCode), errorCode); in TestLocalPointer()
334 LocalPointer<CharString> null(NULL, errorCode); in TestLocalPointer()
Ddtifmtts.cpp149LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yMd", enLocale, status)); in testAPI()
155 LocalPointer<Calendar> fromTime(Calendar::createInstance(enLocale, status)); in testAPI()
156 LocalPointer<Calendar> toTime(Calendar::createInstance(enLocale, status)); in testAPI()
169LocalPointer<DateIntervalInfo> dii(new DateIntervalInfo(Locale::getEnglish(), status), status); in testAPI()
1166 LocalPointer<DateIntervalInfo> dtitvinf(new DateIntervalInfo(ec), ec); in testSetIntervalPatternNoSideEffect()
1197 LocalPointer<Calendar> fromTime(Calendar::createInstance(enLocale, status)); in testYearFormats()
1198 LocalPointer<Calendar> toTime(Calendar::createInstance(enLocale, status)); in testYearFormats()
1209LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yyyyMd", enLocale, status… in testYearFormats()
1227LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yyMd", enLocale, status)); in testYearFormats()
1245LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yMd", enLocale, status)); in testYearFormats()
[all …]
Dnmfmapts.cpp303 LocalPointer<NumberFormat> f0(NumberFormat::createInstance(SWAP_LOC, status)); in testRegistration()
304 LocalPointer<NumberFormat> f1(NumberFormat::createInstance(SRC_LOC, status)); in testRegistration()
305 LocalPointer<NumberFormat> f2(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
307 LocalPointer<NumberFormat> f3(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
308 LocalPointer<NumberFormat> f3a(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
309 LocalPointer<NumberFormat> f4(NumberFormat::createInstance(SRC_LOC, status)); in testRegistration()
322 LocalPointer<NumberFormat> f5(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
Dplurults.cpp128 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI()
133 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI()
140 LocalPointer<PluralRules> dupRule(defRule.clone()); in testAPI()
159 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI()
175 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI()
204 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI()
249 LocalPointer<PluralRules> en_UK(test->forLocale(Locale::getUK(), status)); in testAPI()
250 LocalPointer<PluralRules> en(test->forLocale(Locale::getEnglish(), status)); in testAPI()
257 LocalPointer<PluralRules> zh_Hant(test->forLocale(Locale::getTaiwan(), status)); in testAPI()
258 LocalPointer<PluralRules> zh(test->forLocale(Locale::getChinese(), status)); in testAPI()
[all …]
Dbytestrietest.cpp306 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestHasUniqueValue()
342 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestGetNextBytes()
391 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestIteratorFromBranch()
440 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestIteratorFromLinearMatch()
468 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromRoot()
519 LocalPointer<BytesTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchShort()
547 LocalPointer<BytesTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchLong()
596 LocalPointer<BytesTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
630 LocalPointer<BytesTrie> trie(builder_->build(buildOption, errorCode)); in buildTrie()
Dalphaindextst.cpp364 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in ManyLocalesTest()
534 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestIndexCharactersList()
548 LocalPointer<RuleBasedCollator> coll( in TestHaniFirst()
578 LocalPointer<RuleBasedCollator> coll( in TestPinyinFirst()
611 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestSchSt()
650 LocalPointer<RuleBasedCollator> coll( in TestNoLabels()
669 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestChineseZhuyin()
682 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestJapaneseKanji()
704 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestChineseUnihan()
Ducharstrietest.cpp295 LocalPointer<UCharsTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestNextForCodePoint()
384 LocalPointer<UCharsTrie> trie(buildLargeTrie(1111)); in TestLargeTrie()
463 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestHasUniqueValue()
499 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestGetNextUChars()
549 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestIteratorFromBranch()
598 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestIteratorFromLinearMatch()
626 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromRoot()
677 LocalPointer<UCharsTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchShort()
705 LocalPointer<UCharsTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchLong()
755 LocalPointer<UCharsTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
[all …]
Dcompactdecimalformattest.cpp246 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance("sw", UNUM_SHORT, status)); in TestFieldPosition()
283LocalPointer<CompactDecimalFormat> cdf(CompactDecimalFormat::createInstance("en", UNUM_SHORT, stat… in TestSignificantDigits()
299 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance(locale, style, status)); in CheckLocale()
Dquantityformattertest.cpp114 LocalPointer<NumberFormat> numfmt( in TestBasic()
116 LocalPointer<PluralRules> plurrule( in TestBasic()
Dlistformattertest.cpp40LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale(locale_string), errorCo… in CheckFourCases()
61 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(locale, errorCode)); in RecordFourCases()
115 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale("en"), errorCode)); in Test9946()
Ddtfmttst.cpp197 LocalPointer<DateTimePatternGenerator> generator( in TestPatterns()
1324 const LocalPointer<const TimeZone> tz(TimeZone::createTimeZone("CET")); in TestFormattingLocaleTimeSeparator()
1326 const LocalPointer<DateFormat> dfArab(DateFormat::createTimeInstance( in TestFormattingLocaleTimeSeparator()
1329 const LocalPointer<DateFormat> dfLatn(DateFormat::createTimeInstance( in TestFormattingLocaleTimeSeparator()
2519 LocalPointer<DateFormat> fmt( in TestHebrewClone()
2527 LocalPointer<Format> fmtClone(fmt->clone()); in TestHebrewClone()
2563 LocalPointer<DateFormat> fmt( in TestDateFormatSymbolsClone()
2571 LocalPointer<Format> fmtClone(fmt->clone()); in TestDateFormatSymbolsClone()
4331 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance(dateStyle, locale)); in TestDotAndAtLeniency()
4335LocalPointer<DateFormat> format(DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale)); in TestDotAndAtLeniency()
[all …]
Dplurults.h42 void checkSelect(const LocalPointer<PluralRules> &rules, UErrorCode &status,
Dtzfmttst.cpp831LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestParse()
963 LocalPointer<SimpleDateFormat> sdf(new SimpleDateFormat(status), status); in TestISOFormat()
996 LocalPointer<Calendar> outcal(Calendar::createInstance(status)); in TestISOFormat()
1115LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestFormat()
1121 LocalPointer<TimeZone> tz(TimeZone::createTimeZone(DATA[i].tzid)); in TestFormat()
1206 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(loc, status)); in TestFormatTZDBNames()
1218 LocalPointer<TimeZone> tz(TimeZone::createTimeZone(DATA[i].tzid)); in TestFormatTZDBNames()
Dtsmthred.cpp709 LocalPointer<NumberFormat> fFormat;
749 LocalPointer<NumberFormat> fFormat; // formatter - en_US constructed currency
812 LocalPointer<ThreadSafeFormat> fTSF;
833 LocalPointer<NumberFormat> percentFormatter; in run()
910LocalPointer<NumberFormat> formatter(NumberFormat::createInstance(Locale::getEnglish(),status)); in run()
1314 LocalPointer<Collator> coll(Collator::createInstance(Locale::getRoot(), status)); in TestCollators()
1572LocalPointer<Transliterator> tx(Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, status… in TestAnyTranslit()
Dmeasfmttest.cpp145 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53_1()
197 LocalPointer<MeasureUnit> measureUnit; in TestCompatible54_1()
638 LocalPointer<NumberFormat> nf(NumberFormat::createInstance(en, status)); in TestFormatPeriodEn()
870 LocalPointer<MeasureUnit> second(MeasureUnit::createSecond(status)); in TestSimplePer()
871 LocalPointer<MeasureUnit> minute(MeasureUnit::createMinute(status)); in TestSimplePer()
872 LocalPointer<MeasureUnit> pound(MeasureUnit::createPound(status)); in TestSimplePer()
936 LocalPointer<MeasureUnit> second(MeasureUnit::createSecond(status)); in TestNumeratorPlurals()
937 LocalPointer<MeasureUnit> foot(MeasureUnit::createFoot(status)); in TestNumeratorPlurals()
1309 LocalPointer<MeasureUnit> sqInch(MeasureUnit::createSquareInch(status)); in TestUnitPerUnitResolution()
Dstrcase.cpp460 LocalPointer<TestDataModule> driver(TestDataModule::getTestDataModule("casing", *this, status)); in TestCasing()
468 LocalPointer<TestData> casingTest(driver->createTestData(dataNames[whichCase], status)); in TestCasing()
516 LocalPointer<UMemory> iter; in TestCasing()
/external/icu/icu4c/source/i18n/
Dregion.cpp86 LocalPointer<DecimalFormat> df(new DecimalFormat(status), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
88LocalPointer<UVector> continents(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, statu… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
89LocalPointer<UVector> groupings(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
124 LocalPointer<Region> r(new Region(), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
151 LocalPointer<UnicodeString> aliasFromStr(new UnicodeString(aliasFrom, -1, US_INV), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
162 LocalPointer<Region> newRgn(new Region, status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
186LocalPointer<UVector> newPreferredValues(new UVector(uprv_deleteUObject, uhash_compareUnicodeStrin… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
201LocalPointer<UnicodeString> preferredValue(new UnicodeString(target->idStr), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
227 LocalPointer<UnicodeString> code3(new UnicodeString(codeMapping3Letter), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
295 LocalPointer<UnicodeString> childStr(new UnicodeString(), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
[all …]
Dfilteredbrk.cpp133 LocalPointer<BreakIterator> fDelegate;
135 LocalPointer<UCharsTrie> fBackwardsTrie; // i.e. ".srM" for Mrs.
136 LocalPointer<UCharsTrie> fForwardsPartialTrie; // Has ".a" for "a.M."
375 LocalPointer<BreakIterator> adopt(adoptBreakIterator); in build()
377 LocalPointer<UCharsTrieBuilder> builder(new UCharsTrieBuilder(status), status); in build()
378 LocalPointer<UCharsTrieBuilder> builder2(new UCharsTrieBuilder(status), status); in build()
395 LocalPointer<UCharsTrie> backwardsTrie; // i.e. ".srM" for Mrs. in build()
396 LocalPointer<UCharsTrie> forwardsPartialTrie; // Has ".a" for "a.M." in build()
505LocalPointer<FilteredBreakIteratorBuilder> ret(new SimpleFilteredBreakIteratorBuilder(where, statu… in createInstance()
512LocalPointer<FilteredBreakIteratorBuilder> ret(new SimpleFilteredBreakIteratorBuilder(status), sta… in createInstance()
Dalphaindex.cpp63 UnicodeString *ownedString(const UnicodeString &s, LocalPointer<UnicodeString> &owned, in ownedString()
260 LocalPointer<BucketList> immutableBucketList(createBucketList(errorCode)); in buildImmutableIndex()
261 LocalPointer<RuleBasedCollator> coll( in buildImmutableIndex()
309 LocalPointer<UnicodeString> ownedItem; in initLabels()
445 LocalPointer<UVector> bucketList(new UVector(errorCode), errorCode); in createBucketList()
603 LocalPointer<UVector> publicBucketList(new UVector(errorCode), errorCode); in createBucketList()
991 LocalPointer<UVector> dest(new UVector(status), status); in firstStringsInScript()
Dscientificnumberformatter.cpp99 LocalPointer<DecimalFormat> fmt(fmtToAdopt); in createInstance()
100 LocalPointer<Style> style(styleToAdopt); in createInstance()
Dcollationroot.cpp51 LocalPointer<CollationTailoring> t(new CollationTailoring(NULL)); in load()
/external/icu/icu4c/source/common/unicode/
Dlocalpointer.h186 class LocalPointer : public LocalPointerBase<T> {
193 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {}
208 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { in LocalPointer() function
218 ~LocalPointer() { in ~LocalPointer()
/external/icu/icu4c/source/common/
Dulistformatter.cpp26 LocalPointer<ListFormatter> listfmt(ListFormatter::createInstance(Locale(locale), *status)); in ulistfmt_open()

123