34 #if !UCONFIG_NO_FORMATTING 44 class NumberFormatTest;
48 class SharedNumberFormat;
50 #if !UCONFIG_NO_SERVICE 51 class NumberFormatFactory;
52 class StringEnumeration;
240 #ifndef U_HIDE_DRAFT_API 245 #endif // U_HIDE_DRAFT_API 683 UBool isParseIntegerOnly(
void)
const;
692 virtual void setParseIntegerOnly(
UBool value);
701 virtual void setLenient(
UBool enable);
711 virtual UBool isLenient(
void)
const;
750 #ifndef U_HIDE_INTERNAL_API 758 const Locale& desiredLocale,
769 static const SharedNumberFormat* U_EXPORT2 createSharedInstance(
839 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
841 #if !UCONFIG_NO_SERVICE 886 UBool isGroupingUsed(
void)
const;
894 virtual void setGroupingUsed(
UBool newValue);
904 int32_t getMaximumIntegerDigits(
void)
const;
918 virtual void setMaximumIntegerDigits(int32_t newValue);
928 int32_t getMinimumIntegerDigits(
void)
const;
940 virtual void setMinimumIntegerDigits(int32_t newValue);
950 int32_t getMaximumFractionDigits(
void)
const;
962 virtual void setMaximumFractionDigits(int32_t newValue);
972 int32_t getMinimumFractionDigits(
void)
const;
984 virtual void setMinimumFractionDigits(int32_t newValue);
998 virtual void setCurrency(
const char16_t* theCurrency,
UErrorCode& ec);
1007 const char16_t* getCurrency()
const;
1057 static UClassID U_EXPORT2 getStaticClassID(
void);
1100 virtual void getEffectiveCurrency(char16_t* result,
UErrorCode& ec)
const;
1102 #ifndef U_HIDE_INTERNAL_API 1111 UBool mustBeDecimalFormat,
1130 UBool fGroupingUsed;
1131 int32_t fMaxIntegerDigits;
1132 int32_t fMinIntegerDigits;
1133 int32_t fMaxFractionDigits;
1134 int32_t fMinFractionDigits;
1143 UBool fParseIntegerOnly;
1147 char16_t fCurrency[4];
1151 friend class ICUNumberFormatFactory;
1152 friend class ICUNumberFormatService;
1153 friend class ::NumberFormatTest;
1156 #if !UCONFIG_NO_SERVICE 1180 virtual UBool visible(
void)
const = 0;
1245 return fParseIntegerOnly;
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.
#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...
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.
const void * URegistryKey
Opaque type returned by registerInstance, registerFactory and unregister for service registration...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UDisplayContextType
Display context types, for getting values of a particular setting.
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.
C API: Compatibility APIs for number formatting.
A Locale object represents a specific geographical, political, or cultural region.