Lines Matching refs:NumberFormat
139 // Static hashtable cache of NumberingSystem objects used by NumberFormat
175 // class NumberFormat
180 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat)
212 NumberFormat::NumberFormat()
226 NumberFormat::~NumberFormat()
233 NumberFormat::NumberFormat(const NumberFormat &source)
242 NumberFormat&
243 NumberFormat::operator=(const NumberFormat& rhs)
263 NumberFormat::operator==(const Format& that) const
266 NumberFormat* other = (NumberFormat*)&that;
322 NumberFormat::format(double /* unused number */,
338 NumberFormat::format(int32_t /* unused number */,
354 NumberFormat::format(int64_t /* unused number */,
368 NumberFormat::format(double number,
380 NumberFormat::format(int32_t number,
392 NumberFormat::format(int64_t number,
411 // NumberFormat::format(Formattable ->
416 // NumberFormat::format(Formattable ->
417 // NumberFormat::format(DigitList ->
421 NumberFormat::format(const StringPiece &decimalNum,
440 NumberFormat *ncnf;
446 ArgExtractor(const NumberFormat& nf, const Formattable& obj, UErrorCode& status);
457 ArgExtractor::ArgExtractor(const NumberFormat& nf, const Formattable& obj, UErrorCode& status)
458 : ncnf((NumberFormat*) &nf), num(&obj), setCurr(FALSE) {
482 UnicodeString& NumberFormat::format(const DigitList &number,
500 NumberFormat::format(const DigitList &number,
516 NumberFormat::format(const Formattable& obj,
561 NumberFormat::format(const Formattable& obj,
597 NumberFormat::format(int64_t number,
610 NumberFormat::parseObject(const UnicodeString& source,
621 NumberFormat::format(double number, UnicodeString& appendTo) const
631 NumberFormat::format(int32_t number, UnicodeString& appendTo) const
641 NumberFormat::format(int64_t number, UnicodeString& appendTo) const
654 NumberFormat::parse(const UnicodeString& text,
667 CurrencyAmount* NumberFormat::parseCurrency(const UnicodeString& text,
693 NumberFormat::setParseIntegerOnly(UBool value)
702 NumberFormat::setLenient(UBool enable)
708 // Create a number style NumberFormat instance with the default locale.
710 NumberFormat* U_EXPORT2
711 NumberFormat::createInstance(UErrorCode& status)
717 // Create a number style NumberFormat instance with the inLocale locale.
719 NumberFormat* U_EXPORT2
720 NumberFormat::createInstance(const Locale& inLocale, UErrorCode& status)
726 // Create a currency style NumberFormat instance with the default locale.
728 NumberFormat* U_EXPORT2
729 NumberFormat::createCurrencyInstance(UErrorCode& status)
735 // Create a currency style NumberFormat instance with the inLocale locale.
737 NumberFormat* U_EXPORT2
738 NumberFormat::createCurrencyInstance(const Locale& inLocale, UErrorCode& status)
744 // Create a percent style NumberFormat instance with the default locale.
746 NumberFormat* U_EXPORT2
747 NumberFormat::createPercentInstance(UErrorCode& status)
753 // Create a percent style NumberFormat instance with the inLocale locale.
755 NumberFormat* U_EXPORT2
756 NumberFormat::createPercentInstance(const Locale& inLocale, UErrorCode& status)
762 // Create a scientific style NumberFormat instance with the default locale.
764 NumberFormat* U_EXPORT2
765 NumberFormat::createScientificInstance(UErrorCode& status)
771 // Create a scientific style NumberFormat instance with the inLocale locale.
773 NumberFormat* U_EXPORT2
774 NumberFormat::createScientificInstance(const Locale& inLocale, UErrorCode& status)
782 NumberFormat::getAvailableLocales(int32_t& count)
802 return NumberFormat::makeInstance(loc, (UNumberFormatStyle)kind, status);
885 return ((NumberFormat*)instance)->clone();
893 return NumberFormat::makeInstance(loc, (UNumberFormatStyle)kind, status);
933 NumberFormat::registerFactory(NumberFormatFactory* toAdopt, UErrorCode& status)
949 NumberFormat::unregister(URegistryKey key, UErrorCode& status)
964 NumberFormat::getAvailableLocales(void)
975 NumberFormat* U_EXPORT2
976 NumberFormat::createInstance(const Locale& loc, UNumberFormatStyle kind, UErrorCode& status)
982 return (NumberFormat*)gService->get(loc, kind, status);
994 // NumberFormat instance.
997 NumberFormat::isGroupingUsed() const
1004 // NumberFormat instance.
1007 NumberFormat::setGroupingUsed(UBool newValue)
1014 // this NumberFormat instance.
1016 int32_t NumberFormat::getMaximumIntegerDigits() const
1023 // this NumberFormat instance.
1026 NumberFormat::setMaximumIntegerDigits(int32_t newValue)
1035 // this NumberFormat instance.
1038 NumberFormat::getMinimumIntegerDigits() const
1045 // this NumberFormat instance.
1048 NumberFormat::setMinimumIntegerDigits(int32_t newValue)
1057 // this NumberFormat instance.
1060 NumberFormat::getMaximumFractionDigits() const
1067 // this NumberFormat instance.
1070 NumberFormat::setMaximumFractionDigits(int32_t newValue)
1079 // this NumberFormat instance.
1082 NumberFormat::getMinimumFractionDigits() const
1089 // this NumberFormat instance.
1092 NumberFormat::setMinimumFractionDigits(int32_t newValue)
1101 void NumberFormat::setCurrency(const UChar* theCurrency, UErrorCode& ec) {
1113 const UChar* NumberFormat::getCurrency() const {
1117 void NumberFormat::getEffectiveCurrency(UChar* result, UErrorCode& ec) const {
1132 // Creates the NumberFormat instance of the specified style (number, currency,
1136 NumberFormat::isStyleSupported(UNumberFormatStyle style) {
1140 NumberFormat*
1141 NumberFormat::makeInstance(const Locale& desiredLocale,
1147 NumberFormat*
1148 NumberFormat::makeInstance(const Locale& desiredLocale,
1160 // the @draft ICU 4.2 NumberFormat::EStyles into the long-existing UNumberFormatStyle.
1175 // if the locale has "@compat=host", create a host-specific NumberFormat
1318 NumberFormat *f;