Go to the documentation of this file.
34 #if !UCONFIG_NO_FORMATTING
44 class NumberFormatTest;
48 class SharedNumberFormat;
50 #if !UCONFIG_NO_SERVICE
51 class NumberFormatFactory;
52 class StringEnumeration;
678 UBool isParseIntegerOnly(
void)
const;
687 virtual void setParseIntegerOnly(
UBool value);
696 virtual void setLenient(
UBool enable);
706 virtual UBool isLenient(
void)
const;
745 #ifndef U_HIDE_INTERNAL_API
753 const Locale& desiredLocale,
764 static const SharedNumberFormat* U_EXPORT2 createSharedInstance(
834 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
836 #if !UCONFIG_NO_SERVICE
881 UBool isGroupingUsed(
void)
const;
889 virtual void setGroupingUsed(
UBool newValue);
899 int32_t getMaximumIntegerDigits(
void)
const;
913 virtual void setMaximumIntegerDigits(int32_t newValue);
923 int32_t getMinimumIntegerDigits(
void)
const;
935 virtual void setMinimumIntegerDigits(int32_t newValue);
945 int32_t getMaximumFractionDigits(
void)
const;
957 virtual void setMaximumFractionDigits(int32_t newValue);
967 int32_t getMinimumFractionDigits(
void)
const;
979 virtual void setMinimumFractionDigits(int32_t newValue);
993 virtual void setCurrency(
const char16_t* theCurrency,
UErrorCode& ec);
1002 const char16_t* getCurrency()
const;
1033 virtual ERoundingMode getRoundingMode(
void)
const;
1040 virtual void setRoundingMode(ERoundingMode roundingMode);
1052 static UClassID U_EXPORT2 getStaticClassID(
void);
1095 virtual void getEffectiveCurrency(char16_t* result,
UErrorCode& ec)
const;
1097 #ifndef U_HIDE_INTERNAL_API
1106 UBool mustBeDecimalFormat,
1125 UBool fGroupingUsed;
1126 int32_t fMaxIntegerDigits;
1127 int32_t fMinIntegerDigits;
1128 int32_t fMaxFractionDigits;
1129 int32_t fMinFractionDigits;
1138 UBool fParseIntegerOnly;
1142 char16_t fCurrency[4];
1146 friend class ICUNumberFormatFactory;
1147 friend class ICUNumberFormatService;
1148 friend class ::NumberFormatTest;
1151 #if !UCONFIG_NO_SERVICE
1175 virtual UBool visible(
void)
const = 0;
1238 NumberFormat::isParseIntegerOnly()
const
1240 return fParseIntegerOnly;
1244 NumberFormat::isLenient()
const
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
@ UNUM_EXPONENT_SIGN_FIELD
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
@ UNUM_DECIMAL_SEPARATOR_FIELD
UDisplayContextType
Display context types, for getting values of a particular setting.
C++ API: StringPiece: Read-only byte string wrapper class.
C API: Compatibility APIs for number formatting.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Base class for 'pure' C++ implementations of uenum api.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
#define TRUE
The TRUE value of a UBool.
UNumberFormatStyle
The possible number format styles.
@ UNUM_GROUPING_SEPARATOR_FIELD
C++ API: Currency Amount Object.
UDisplayContext
Display context settings.
C API: Display context types (enum values)
C++ API: Locale ID object.
A currency together with a numeric amount, such as 200 USD.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
#define U_NAMESPACE_BEGIN
A string-like object that points to a sized piece of memory.
A Locale object represents a specific geographical, political, or cultural region.
@ UNUM_EXPONENT_SYMBOL_FIELD
const typedef void * URegistryKey
Opaque type returned by registerInstance, registerFactory and unregister for service registration.