Logo Search packages:      
Sourcecode: icu version File versions  Download package

NumberFormat *U_EXPORT2 NumberFormat::createInstance ( UErrorCode status  )  [static, inherited]

Returns the default number format for the current default locale. The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale dependant. ICU 2.0

Definition at line 625 of file numfmt.cpp.

References Locale::getDefault().

Referenced by NumberFormat::createCurrencyInstance(), NumberFormat::createInstance(), MessageFormat::createIntegerFormat(), NumberFormat::createPercentInstance(), NumberFormat::createScientificInstance(), MessageFormat::getDefaultNumberFormat(), SimpleDateFormat::initialize(), MessageFormat::makeFormat(), PluralFormat::operator=(), TimeZone::parseCustomID(), PluralFormat::PluralFormat(), PluralFormatTest::pluralFormatBasicTest(), PluralFormatTest::pluralFormatUnitTest(), SimpleDateFormat::processOverrideString(), IntlTestNumberFormat::runIndexedTest(), NumberFormatRegressionTest::Test4145457(), NumberFormatRegressionTest::Test4161100(), NumberFormatRegressionTest::Test4162198(), NumberFormatRegressionTest::Test4162852(), NumberFormatRegressionTest::Test4167494(), NumberFormatRegressionTest::Test4170798(), NumberFormatRegressionTest::Test4212072(), NumberFormatRegressionTest::Test4216742(), NumberFormatRegressionTest::Test4217661(), TimeUnitTest::testAPI(), NumberFormatTest::TestAPI(), IntlTestNumberFormatAPI::testAPI(), TestMessageFormat::testBug3(), TestChoiceFormat::TestComplexExample(), NumberFormatRegressionTest::TestJ691(), IntlTestNumberFormat::testLocale(), NumberFormatTest::TestNumberingSystems(), TestMessageFormat::TestRBNF(), NumberFormatTest::TestRounding487(), NumberFormatTest::TestSecondaryGrouping(), MessageFormat::toPattern(), and unum_open().

{
    return createInstance(Locale::getDefault(), kNumberStyle, status);
}


Generated by  Doxygen 1.6.0   Back to index