29 #if U_SHOW_CPLUSPLUS_API 36 #if !UCONFIG_NO_FORMATTING 46 class NumberFormatTest;
50 class SharedNumberFormat;
52 #if !UCONFIG_NO_SERVICE 53 class NumberFormatFactory;
54 class StringEnumeration;
708 UBool isParseIntegerOnly()
const;
717 virtual void setParseIntegerOnly(
UBool value);
726 virtual void setLenient(
UBool enable);
736 virtual UBool isLenient()
const;
775 #ifndef U_HIDE_INTERNAL_API 783 const Locale& desiredLocale,
794 static const SharedNumberFormat* U_EXPORT2 createSharedInstance(
864 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
866 #if !UCONFIG_NO_SERVICE 911 UBool isGroupingUsed()
const;
919 virtual void setGroupingUsed(
UBool newValue);
929 int32_t getMaximumIntegerDigits()
const;
943 virtual void setMaximumIntegerDigits(int32_t newValue);
953 int32_t getMinimumIntegerDigits()
const;
965 virtual void setMinimumIntegerDigits(int32_t newValue);
975 int32_t getMaximumFractionDigits()
const;
987 virtual void setMaximumFractionDigits(int32_t newValue);
997 int32_t getMinimumFractionDigits()
const;
1009 virtual void setMinimumFractionDigits(int32_t newValue);
1023 virtual void setCurrency(
const char16_t* theCurrency,
UErrorCode& ec);
1032 const char16_t* getCurrency()
const;
1063 virtual ERoundingMode getRoundingMode()
const;
1070 virtual void setRoundingMode(ERoundingMode roundingMode);
1082 static UClassID U_EXPORT2 getStaticClassID();
1125 virtual void getEffectiveCurrency(char16_t* result,
UErrorCode& ec)
const;
1127 #ifndef U_HIDE_INTERNAL_API 1136 UBool mustBeDecimalFormat,
1155 UBool fGroupingUsed;
1156 int32_t fMaxIntegerDigits;
1157 int32_t fMinIntegerDigits;
1158 int32_t fMaxFractionDigits;
1159 int32_t fMinFractionDigits;
1168 UBool fParseIntegerOnly;
1172 char16_t fCurrency[4];
1176 friend class ICUNumberFormatFactory;
1177 friend class ICUNumberFormatService;
1178 friend class ::NumberFormatTest;
1181 #if !UCONFIG_NO_SERVICE 1205 virtual UBool visible()
const = 0;
1268 NumberFormat::isParseIntegerOnly()
const 1270 return fParseIntegerOnly;
1274 NumberFormat::isLenient()
const
UDisplayContext
Display context settings.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
C API: Display context types (enum values)
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
C++ API: StringPiece: Read-only byte string wrapper class.
C++ API: Currency Amount Object.
UNumberFormatStyle
The possible number format styles.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
const void * URegistryKey
Opaque type returned by registerInstance, registerFactory and unregister for service registration...
UDisplayContextType
Display context types, for getting values of a particular setting.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
C++ API: Locale ID object.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
A string-like object that points to a sized piece of memory.
UObject is the common ICU "boilerplate" class.
A currency together with a numeric amount, such as 200 USD.
int8_t UBool
The ICU boolean type, a signed-byte integer.
C API: Compatibility APIs for number formatting.
A Locale object represents a specific geographical, political, or cultural region.