Home
last modified time | relevance | path

Searched refs:MeasureFormat (Results 1 – 25 of 39) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp53 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureFormat)
616 MeasureFormat::MeasureFormat( in MeasureFormat() function in MeasureFormat
626 MeasureFormat::MeasureFormat( in MeasureFormat() function in MeasureFormat
639 MeasureFormat::MeasureFormat(const MeasureFormat &other) : in MeasureFormat() function in MeasureFormat
654 MeasureFormat &MeasureFormat::operator=(const MeasureFormat &other) { in operator =()
672 MeasureFormat::MeasureFormat() : in MeasureFormat() function in MeasureFormat
680 MeasureFormat::~MeasureFormat() { in ~MeasureFormat()
693 UBool MeasureFormat::operator==(const Format &other) const { in operator ==()
700 const MeasureFormat &rhs = static_cast<const MeasureFormat &>(other); in operator ==()
729 Format *MeasureFormat::clone() const { in clone()
[all …]
Dcurrfmt.h38 class CurrencyFormat : public MeasureFormat {
63 using MeasureFormat::format;
Dcurrfmt.cpp24 MeasureFormat(locale, UMEASFMT_WIDTH_WIDE, ec), fmt(NULL) in CurrencyFormat()
30 MeasureFormat(other), fmt(NULL) in CurrencyFormat()
Dtmutfmt.cpp111 : MeasureFormat(other), in TimeUnitFormat()
150 MeasureFormat::operator=(other); in operator =()
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h98 class U_I18N_API MeasureFormat : public Format {
110 MeasureFormat(
120 MeasureFormat(
130 MeasureFormat(const MeasureFormat &other);
136 MeasureFormat &operator=(const MeasureFormat &rhs);
142 virtual ~MeasureFormat();
245 static MeasureFormat* U_EXPORT2 createCurrencyFormat(const Locale& locale,
258 static MeasureFormat* U_EXPORT2 createCurrencyFormat(UErrorCode& ec);
291 MeasureFormat();
Dtmutfmt.h87 class U_I18N_API TimeUnitFormat: public MeasureFormat {
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMeasureUnitTest.java44 import android.icu.text.MeasureFormat;
45 import android.icu.text.MeasureFormat.FormatWidth;
1293 MeasureFormat fmtFr = MeasureFormat.getInstance( in TestExamplesInDocs()
1299 MeasureFormat fmtFrFull = MeasureFormat.getInstance( in TestExamplesInDocs()
1313 MeasureFormat fmtFrNarrow = MeasureFormat.getInstance( in TestExamplesInDocs()
1321 MeasureFormat fmtEn = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); in TestExamplesInDocs()
1442 MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE, nf); in TestFormatPeriodEn()
1444 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT, nf); in TestFormatPeriodEn()
1446 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NARROW, nf); in TestFormatPeriodEn()
1448 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NUMERIC, nf); in TestFormatPeriodEn()
[all …]
DMeasureUnitThreadTest.java13 import android.icu.text.MeasureFormat;
41 final MeasureFormat mf;
48 this.mf = MeasureFormat.getInstance(ULocale.ENGLISH, MeasureFormat.FormatWidth.NUMERIC); in NumericMeasureThread()
DPluralRangesTest.java22 import android.icu.text.MeasureFormat;
23 import android.icu.text.MeasureFormat.FormatWidth;
73 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
114 MeasureFormat mf = MeasureFormat.getInstance(locale, width); in TestFormatting()
DTimeUnitTest.java22 import android.icu.text.MeasureFormat;
143 MeasureFormat tfeq = new TimeUnitFormat(ULocale.ENGLISH, TimeUnitFormat.FULL_NAME); in TestEqHashCode()
145 MeasureFormat tfne = new TimeUnitFormat(ULocale.ENGLISH, TimeUnitFormat.ABBREVIATED_NAME); in TestEqHashCode()
146 MeasureFormat tfne2 = new TimeUnitFormat(ULocale.GERMAN, TimeUnitFormat.FULL_NAME); in TestEqHashCode()
444 assertEquals("getWidth", MeasureFormat.FormatWidth.WIDE, tuf.getWidth()); in TestStandInForMeasureFormat()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMeasureUnitTest.java43 import com.ibm.icu.text.MeasureFormat;
44 import com.ibm.icu.text.MeasureFormat.FormatWidth;
1290 MeasureFormat fmtFr = MeasureFormat.getInstance( in TestExamplesInDocs()
1296 MeasureFormat fmtFrFull = MeasureFormat.getInstance( in TestExamplesInDocs()
1310 MeasureFormat fmtFrNarrow = MeasureFormat.getInstance( in TestExamplesInDocs()
1318 MeasureFormat fmtEn = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); in TestExamplesInDocs()
1439 MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE, nf); in TestFormatPeriodEn()
1441 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT, nf); in TestFormatPeriodEn()
1443 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NARROW, nf); in TestFormatPeriodEn()
1445 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NUMERIC, nf); in TestFormatPeriodEn()
[all …]
DMeasureUnitThreadTest.java12 import com.ibm.icu.text.MeasureFormat;
38 final MeasureFormat mf;
45 this.mf = MeasureFormat.getInstance(ULocale.ENGLISH, MeasureFormat.FormatWidth.NUMERIC); in NumericMeasureThread()
DPluralRangesTest.java21 import com.ibm.icu.text.MeasureFormat;
22 import com.ibm.icu.text.MeasureFormat.FormatWidth;
70 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
111 MeasureFormat mf = MeasureFormat.getInstance(locale, width); in TestFormatting()
DTimeUnitTest.java21 import com.ibm.icu.text.MeasureFormat;
140 MeasureFormat tfeq = new TimeUnitFormat(ULocale.ENGLISH, TimeUnitFormat.FULL_NAME); in TestEqHashCode()
142 MeasureFormat tfne = new TimeUnitFormat(ULocale.ENGLISH, TimeUnitFormat.ABBREVIATED_NAME); in TestEqHashCode()
143 MeasureFormat tfne2 = new TimeUnitFormat(ULocale.GERMAN, TimeUnitFormat.FULL_NAME); in TestEqHashCode()
441 assertEquals("getWidth", MeasureFormat.FormatWidth.WIDE, tuf.getWidth()); in TestStandInForMeasureFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java113 public class MeasureFormat extends UFormat { class
228 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth) { in getInstance()
242 public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth) { in getInstance()
258 public static MeasureFormat getInstance( in getInstance()
262 return new MeasureFormat(locale, formatWidth, format, null, null); in getInstance()
277 public static MeasureFormat getInstance( in getInstance()
496 if (!(other instanceof MeasureFormat)) { in equals()
499 MeasureFormat rhs = (MeasureFormat) other; in equals()
522 public MeasureFormat.FormatWidth getWidth() { in getWidth()
523 if (formatWidth == MeasureFormat.FormatWidth.DEFAULT_CURRENCY) { in getWidth()
[all …]
DCurrencyFormat.java33 class CurrencyFormat extends MeasureFormat {
DTimeUnitFormat.java66 public class TimeUnitFormat extends MeasureFormat {
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java107 public class MeasureFormat extends UFormat { class
211 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth) { in getInstance()
224 public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth) { in getInstance()
239 public static MeasureFormat getInstance( in getInstance()
243 return new MeasureFormat(locale, formatWidth, format, null, null); in getInstance()
257 public static MeasureFormat getInstance( in getInstance()
466 if (!(other instanceof MeasureFormat)) { in equals()
469 MeasureFormat rhs = (MeasureFormat) other; in equals()
488 public MeasureFormat.FormatWidth getWidth() { in getWidth()
489 if (formatWidth == MeasureFormat.FormatWidth.DEFAULT_CURRENCY) { in getWidth()
[all …]
DCurrencyFormat.java34 class CurrencyFormat extends MeasureFormat {
DTimeUnitFormat.java68 public class TimeUnitFormat extends MeasureFormat {
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DMeasureFormat.java.patch1 --- android_icu4j/src/main/java/android/icu/text/MeasureFormat.java 2018-08-21 18:04:14.282638002 +…
2 +++ android_icu4j/src/main/java/android/icu/text/MeasureFormat.java 2018-08-21 18:02:29.502129978 +…
9 - * class, MeasureFormat, is provided for backwards compatibility only.
13 …* To format a Measure object, first create a formatter object using a MeasureFormat factory method…
/external/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp78 const MeasureFormat &fmt,
84 const MeasureFormat &fmt,
91 const MeasureFormat &fmt,
128 const MeasureFormat &fmt,
1288 MeasureFormat fmtFr(Locale::getFrench(), UMEASFMT_WIDTH_SHORT, status); in TestExamplesInDocs()
1289 MeasureFormat fmtFrFull( in TestExamplesInDocs()
1291 MeasureFormat fmtFrNarrow( in TestExamplesInDocs()
1293 MeasureFormat fmtEn(Locale::getUS(), UMEASFMT_WIDTH_WIDE, status); in TestExamplesInDocs()
1514 MeasureFormat mf(en, UMEASFMT_WIDTH_WIDE, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn()
1522 MeasureFormat mf2(mf); in TestFormatPeriodEn()
[all …]
Duobjtest.cpp383 …TESTCLASSID_FACTORY_HIDDEN(CurrencyFormat, MeasureFormat::createCurrencyFormat(Locale::getUS(), st… in testIDs()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DPropertiesTest.java38 import com.ibm.icu.text.MeasureFormat.FormatWidth;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DPropertiesTest.java39 import android.icu.text.MeasureFormat.FormatWidth;

12