32 #if !UCONFIG_NO_FORMATTING
41 class NumberFormatTest;
45 #if !UCONFIG_NO_SERVICE
46 class NumberFormatFactory;
47 class StringEnumeration;
657 UBool isParseIntegerOnly(
void)
const;
666 virtual void setParseIntegerOnly(
UBool value);
675 virtual void setLenient(
UBool enable);
685 virtual UBool isLenient(
void)
const;
767 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
769 #if !UCONFIG_NO_SERVICE
808 UBool isGroupingUsed(
void)
const;
816 virtual void setGroupingUsed(
UBool newValue);
826 int32_t getMaximumIntegerDigits(
void)
const;
840 virtual void setMaximumIntegerDigits(int32_t newValue);
850 int32_t getMinimumIntegerDigits(
void)
const;
862 virtual void setMinimumIntegerDigits(int32_t newValue);
872 int32_t getMaximumFractionDigits(
void)
const;
884 virtual void setMaximumFractionDigits(int32_t newValue);
894 int32_t getMinimumFractionDigits(
void)
const;
906 virtual void setMinimumFractionDigits(int32_t newValue);
929 const UChar* getCurrency()
const;
941 static UClassID U_EXPORT2 getStaticClassID(
void);
984 virtual void getEffectiveCurrency(
UChar* result,
UErrorCode& ec)
const;
1001 UBool fGroupingUsed;
1002 int32_t fMaxIntegerDigits;
1003 int32_t fMinIntegerDigits;
1004 int32_t fMaxFractionDigits;
1005 int32_t fMinFractionDigits;
1006 UBool fParseIntegerOnly;
1012 friend class ICUNumberFormatFactory;
1013 friend class ICUNumberFormatService;
1014 friend class ::NumberFormatTest;
1017 #if !UCONFIG_NO_SERVICE
1041 virtual UBool visible(
void)
const = 0;
1104 NumberFormat::isParseIntegerOnly()
const
1106 return fParseIntegerOnly;
1110 NumberFormat::isLenient()
const
1119 return Format::format(obj, appendTo, status);
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
#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.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UNumberFormatStyle
The possible number format styles.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
#define TRUE
The TRUE value of a UBool.
const void * URegistryKey
Opaque type returned by registerInstance, registerFactory and unregister for service registration...
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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 Locale object represents a specific geographical, political, or cultural region.