Home
last modified time | relevance | path

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

12345

/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp55 LocalPointer<ScientificNumberFormatter> fmt( in TestBasic()
84 LocalPointer<ScientificNumberFormatter> fmt3(fmt->clone()); in TestBasic()
103 LocalPointer<ScientificNumberFormatter> fmt( in TestFarsi()
120LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentMarkup()
130 LocalPointer<ScientificNumberFormatter> fmt( in TestPlusSignInExponentMarkup()
147LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentSuperscript()
157 LocalPointer<ScientificNumberFormatter> fmt( in TestPlusSignInExponentSuperscript()
174LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalMarkup()
178 LocalPointer<ScientificNumberFormatter> fmt( in TestFixedDecimalMarkup()
196LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalSuperscript()
[all …]
Drbbimonkeytest.h87 LocalPointer<const UnicodeSet> fSet;
104 LocalPointer<RegexMatcher> fRuleMatcher; // Regular expression that matches the rule.
127 LocalPointer<UVector> fCharClassList; // Char Classes, same contents as fCharClasses values,
138 LocalPointer<RegexMatcher> fSetRefsMatcher;
139 LocalPointer<RegexMatcher> fCommentsMatcher;
140 LocalPointer<RegexMatcher> fClassDefMatcher;
141 LocalPointer<RegexMatcher> fRuleDefMatcher;
192 LocalPointer<BreakRules> fRuleSet;
193 LocalPointer<RuleBasedBreakIterator> fBI;
194 LocalPointer<MonkeyTestData> fTestData;
Ditformat.cpp150 LocalPointer<IntlTest> test(createTimeUnitTest()); in runIndexedTest()
165 LocalPointer<IntlTest> test(createGenderInfoTest()); in runIndexedTest()
174 LocalPointer<IntlTest> test(createCompactDecimalFormatTest()); in runIndexedTest()
185 LocalPointer<IntlTest> test(createRelativeDateTimeFormatterTest()); in runIndexedTest()
195 LocalPointer<IntlTest> test(createMeasureFormatTest()); in runIndexedTest()
204 LocalPointer<IntlTest> test(createNumberFormatSpecificationTest()); in runIndexedTest()
213 LocalPointer<IntlTest> test(createScientificNumberFormatterTest()); in runIndexedTest()
Ddtifmtts.cpp154LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yMd", enLocale, status)); in testAPI()
160 LocalPointer<Calendar> fromTime(Calendar::createInstance(enLocale, status)); in testAPI()
161 LocalPointer<Calendar> toTime(Calendar::createInstance(enLocale, status)); in testAPI()
174LocalPointer<DateIntervalInfo> dii(new DateIntervalInfo(Locale::getEnglish(), status), status); in testAPI()
1153 LocalPointer<DateIntervalInfo> dtitvinf(new DateIntervalInfo(ec), ec); in testSetIntervalPatternNoSideEffect()
1184 LocalPointer<Calendar> fromTime(Calendar::createInstance(enLocale, status)); in testYearFormats()
1185 LocalPointer<Calendar> toTime(Calendar::createInstance(enLocale, status)); in testYearFormats()
1196LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yyyyMd", enLocale, status… in testYearFormats()
1214LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yyMd", enLocale, status)); in testYearFormats()
1232LocalPointer<DateIntervalFormat> dif(DateIntervalFormat::createInstance("yMd", enLocale, status)); in testYearFormats()
[all …]
Ditutil.cpp81 LocalPointer<IntlTest> test(createLocalPointerTest()); in runIndexedTest()
89 LocalPointer<IntlTest> test(createBytesTrieTest()); in runIndexedTest()
97 LocalPointer<IntlTest> test(createUCharsTrieTest()); in runIndexedTest()
105 LocalPointer<IntlTest> test(createEnumSetTest()); in runIndexedTest()
113 LocalPointer<IntlTest> test(createSimpleFormatterTest()); in runIndexedTest()
121 LocalPointer<IntlTest> test(createUnifiedCacheTest()); in runIndexedTest()
129 LocalPointer<IntlTest> test(createQuantityFormatterTest()); in runIndexedTest()
137 LocalPointer<IntlTest> test(createPluralMapTest()); in runIndexedTest()
146 LocalPointer<IntlTest> test(createStaticUnicodeSetsTest()); in runIndexedTest()
417 LocalPointer<UnicodeString> s(new UnicodeString((UChar32)0x50005)); in TestLocalPointer()
[all …]
Derarulestest.cpp53 LocalPointer<EraRules> rules1(EraRules::createInstance(calId, FALSE, status)); in testAPIs()
59 LocalPointer<EraRules> rules2(EraRules::createInstance(calId, TRUE, status)); in testAPIs()
76 LocalPointer<Calendar> cal(Calendar::createInstance("en", status)); in testAPIs()
109 LocalPointer<EraRules> rules(EraRules::createInstance("japanese", TRUE, status)); in testJapanese()
Dnmfmapts.cpp305 LocalPointer<NumberFormat> f0(NumberFormat::createInstance(SWAP_LOC, status)); in testRegistration()
306 LocalPointer<NumberFormat> f1(NumberFormat::createInstance(SRC_LOC, status)); in testRegistration()
307 LocalPointer<NumberFormat> f2(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
309 LocalPointer<NumberFormat> f3(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
310 LocalPointer<NumberFormat> f3a(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
311 LocalPointer<NumberFormat> f4(NumberFormat::createInstance(SRC_LOC, status)); in testRegistration()
324 LocalPointer<NumberFormat> f5(NumberFormat::createCurrencyInstance(SRC_LOC, status)); in testRegistration()
Dcompactdecimalformattest.cpp328 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance("sw", UNUM_SHORT, status)); in TestFieldPosition()
365LocalPointer<CompactDecimalFormat> cdf(CompactDecimalFormat::createInstance("en", UNUM_SHORT, stat… in TestDefaultSignificantDigits()
381LocalPointer<CompactDecimalFormat> cdf(CompactDecimalFormat::createInstance("en", UNUM_SHORT, stat… in TestAPIVariants()
487LocalPointer<CompactDecimalFormat> cdf(CompactDecimalFormat::createInstance(locale, UNUM_SHORT, st… in TestBug12975()
491LocalPointer<DecimalFormat> df((DecimalFormat*) DecimalFormat::createInstance(locale, status)); in TestBug12975()
504 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance(locale, style, status)); in CheckLocale()
521 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance(locale, style, status)); in CheckLocaleWithCurrency()
Dalphaindextst.cpp368 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in ManyLocalesTest()
538 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestIndexCharactersList()
552 LocalPointer<RuleBasedCollator> coll( in TestHaniFirst()
582 LocalPointer<RuleBasedCollator> coll( in TestPinyinFirst()
615 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestSchSt()
654 LocalPointer<RuleBasedCollator> coll( in TestNoLabels()
673 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestChineseZhuyin()
686 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestJapaneseKanji()
708 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestChineseUnihan()
739LocalPointer<AlphabeticIndex::ImmutableIndex> index(aindex.buildImmutableIndex(errorCode), errorCo… in checkHasBuckets()
Dplurults.cpp132 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI()
137 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI()
144 LocalPointer<PluralRules> dupRule(defRule.clone()); in testAPI()
163 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI()
179 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI()
208 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI()
253 LocalPointer<PluralRules> en_UK(test->forLocale(Locale::getUK(), status)); in testAPI()
254 LocalPointer<PluralRules> en(test->forLocale(Locale::getEnglish(), status)); in testAPI()
261 LocalPointer<PluralRules> zh_Hant(test->forLocale(Locale::getTaiwan(), status)); in testAPI()
262 LocalPointer<PluralRules> zh(test->forLocale(Locale::getChinese(), status)); in testAPI()
[all …]
Dnumfmtdatadriventest.cpp199 LocalPointer<DecimalFormatSymbols> symbols( in newDecimalFormat()
205 LocalPointer<DecimalFormat> result( in newDecimalFormat()
232 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isFormatPass()
296 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isToPatternPass()
329 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isParsePass()
405 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isParseCurrencyPass()
415 LocalPointer<CurrencyAmount> currAmt( in isParseCurrencyPass()
Dbytestrietest.cpp310 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestHasUniqueValue()
346 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestGetNextBytes()
395 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestIteratorFromBranch()
444 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestIteratorFromLinearMatch()
472 LocalPointer<BytesTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromRoot()
523 LocalPointer<BytesTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchShort()
551 LocalPointer<BytesTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchLong()
609 LocalPointer<BytesTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
643 LocalPointer<BytesTrie> trie(builder_->build(buildOption, errorCode)); in buildTrie()
Ducharstrietest.cpp298 LocalPointer<UCharsTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestNextForCodePoint()
387 LocalPointer<UCharsTrie> trie(buildLargeTrie(1111)); in TestLargeTrie()
466 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestHasUniqueValue()
502 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestGetNextUChars()
552 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestIteratorFromBranch()
601 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_SMALL)); in TestIteratorFromLinearMatch()
629 LocalPointer<UCharsTrie> trie(buildMonthsTrie(USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromRoot()
680 LocalPointer<UCharsTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchShort()
708 LocalPointer<UCharsTrie> trie(buildTrie(data, UPRV_LENGTHOF(data), USTRINGTRIE_BUILD_FAST)); in TestTruncatingIteratorFromLinearMatchLong()
758 LocalPointer<UCharsTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
[all …]
Dtzfmttst.cpp448LocalPointer <Calendar> cal(Calendar::createInstance(TimeZone::createTimeZone((UnicodeString) "UTC… in TestTimeRoundTrip()
821LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestParse()
953 LocalPointer<SimpleDateFormat> sdf(new SimpleDateFormat(status), status); in TestISOFormat()
986 LocalPointer<Calendar> outcal(Calendar::createInstance(status)); in TestISOFormat()
1105LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestFormat()
1111 LocalPointer<TimeZone> tz(TimeZone::createTimeZone(DATA[i].tzid)); in TestFormat()
1196 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(loc, status)); in TestFormatTZDBNames()
1208 LocalPointer<TimeZone> tz(TimeZone::createTimeZone(DATA[i].tzid)); in TestFormatTZDBNames()
1248 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale("en"), status)); in TestFormatCustomZone()
1264 LocalPointer<StringEnumeration> tzids(TimeZone::createEnumeration()); in TestFormatTZDBNamesAllZoneCoverage()
[all …]
/external/icu/icu4c/source/common/unicode/
Dlocalpointer.h188 class LocalPointer : public LocalPointerBase<T> {
197 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {}
211 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { in LocalPointer() function
221 LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) { in LocalPointer() function
228 ~LocalPointer() { in ~LocalPointer()
238 LocalPointer<T> &operator=(LocalPointer<T> &&src) U_NOEXCEPT {
251 LocalPointer<T> &moveFrom(LocalPointer<T> &src) U_NOEXCEPT { in moveFrom()
262 void swap(LocalPointer<T> &other) U_NOEXCEPT { in swap()
273 friend inline void swap(LocalPointer<T> &p1, LocalPointer<T> &p2) U_NOEXCEPT { in swap()
/external/icu/libandroidicu/include/unicode/
Dlocalpointer.h188 class LocalPointer : public LocalPointerBase<T> {
197 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {}
211 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { in LocalPointer() function
221 LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) { in LocalPointer() function
228 ~LocalPointer() { in ~LocalPointer()
238 LocalPointer<T> &operator=(LocalPointer<T> &&src) U_NOEXCEPT {
251 LocalPointer<T> &moveFrom(LocalPointer<T> &src) U_NOEXCEPT { in moveFrom()
262 void swap(LocalPointer<T> &other) U_NOEXCEPT { in swap()
273 friend inline void swap(LocalPointer<T> &p1, LocalPointer<T> &p2) U_NOEXCEPT { in swap()
/external/icu/icu4c/source/i18n/
Dnumber_formatimpl.h89 LocalPointer<const DecimalFormatSymbols> fSymbols;
90 LocalPointer<const PluralRules> fRules;
91 LocalPointer<const ParsedPatternInfo> fPatternInfo;
92 LocalPointer<const ScientificHandler> fScientificHandler;
93 LocalPointer<MutablePatternModifier> fPatternModifier;
94 LocalPointer<const ImmutablePatternModifier> fImmutablePatternModifier;
95 LocalPointer<const LongNameHandler> fLongNameHandler;
96 LocalPointer<const CompactHandler> fCompactHandler;
Dregion.cpp90 LocalPointer<DecimalFormat> df(new DecimalFormat(status), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
92LocalPointer<UVector> continents(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, statu… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
93LocalPointer<UVector> groupings(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
132 LocalPointer<UnicodeString> newRegion(new UnicodeString(buf), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
137 LocalPointer<UnicodeString> newRegion(new UnicodeString(regionName), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
151 LocalPointer<UnicodeString> newRegion(new UnicodeString(buf), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
156 LocalPointer<UnicodeString> newRegion(new UnicodeString(regionName), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
162LocalPointer<UnicodeString> regionName (new UnicodeString(ures_getNextUnicodeString(regionUnknown.… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
185 LocalPointer<Region> r(new Region(), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
213 LocalPointer<UnicodeString> aliasFromStr(new UnicodeString(aliasFrom, -1, US_INV), status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
[all …]
Dnumber_mapper.h129 LocalPointer<DecimalFormatProperties> properties;
132 LocalPointer<const DecimalFormatSymbols> symbols;
138 LocalPointer<const LocalizedNumberFormatter> formatter;
150 LocalPointer<DecimalFormatProperties> exportedProperties;
Dbrktrans.h88 LocalPointer<BreakIterator> cachedBI;
89 LocalPointer<UVector32> cachedBoundaries;
Ddtptngen_impl.h178 LocalPointer<PtnSkeleton> skeleton;
181 LocalPointer<PtnElem> next;
272 LocalPointer<DateTimeMatcher> matcher;
288 LocalPointer<UVector> fSkeletons;
304 LocalPointer<UVector> fPatterns;
Dnumber_multiplier.cpp90 LocalPointer<DecNum> decnum(new DecNum(), localError); in byDecimal()
103 LocalPointer<DecNum> decnum(new DecNum(), localError); in byDouble()
116 LocalPointer<DecNum> decnum(new DecNum(), localError); in byDoubleAndPowerOfTen()
/external/icu/icu4c/source/common/
Dfilteredbrk.cpp146 LocalPointer<UCharsTrie> fForwardsPartialTrie; // Has ".a" for "a.M."
147 LocalPointer<UCharsTrie> fBackwardsTrie; // i.e. ".srM" for Mrs.
163 LocalPointer<BreakIterator> fDelegate;
562 LocalPointer<BreakIterator> adopt(adoptBreakIterator); in build()
564 LocalPointer<UCharsTrieBuilder> builder(new UCharsTrieBuilder(status), status); in build()
565 LocalPointer<UCharsTrieBuilder> builder2(new UCharsTrieBuilder(status), status); in build()
582 LocalPointer<UCharsTrie> backwardsTrie; // i.e. ".srM" for Mrs. in build()
583 LocalPointer<UCharsTrie> forwardsPartialTrie; // Has ".a" for "a.M." in build()
692LocalPointer<FilteredBreakIteratorBuilder> ret(new SimpleFilteredBreakIteratorBuilder(where, statu… in createInstance()
704LocalPointer<FilteredBreakIteratorBuilder> ret(new SimpleFilteredBreakIteratorBuilder(status), sta… in createEmptyInstance()
Ducasemap_titlecase_brkiter.cpp43 LocalPointer<BreakIterator> ownedIter; in utf8ToTitle()
67 LocalPointer<BreakIterator> ownedIter; in utf8ToTitle()
115 LocalPointer<BreakIterator> ownedIter; in ucasemap_utf8ToTitle()
Dustr_titlecase_brkiter.cpp142 LocalPointer<BreakIterator> &ownedIter, UErrorCode &errorCode) { in ustrcase_getTitleBreakIterator()
179 LocalPointer<BreakIterator> ownedIter; in toTitle()
203 LocalPointer<BreakIterator> ownedIter; in u_strToTitle()
228 LocalPointer<BreakIterator> ownedIter; in ucasemap_toTitle()

12345