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;
693 UBool isParseIntegerOnly(
void)
const;
702 virtual void setParseIntegerOnly(
UBool value);
711 virtual void setLenient(
UBool enable);
721 virtual UBool isLenient(
void)
const;
760 #ifndef U_HIDE_INTERNAL_API
768 const Locale& desiredLocale,
779 static const SharedNumberFormat* U_EXPORT2 createSharedInstance(
849 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
851 #if !UCONFIG_NO_SERVICE
896 UBool isGroupingUsed(
void)
const;
904 virtual void setGroupingUsed(
UBool newValue);
914 int32_t getMaximumIntegerDigits(
void)
const;
928 virtual void setMaximumIntegerDigits(int32_t newValue);
938 int32_t getMinimumIntegerDigits(
void)
const;
950 virtual void setMinimumIntegerDigits(int32_t newValue);
960 int32_t getMaximumFractionDigits(
void)
const;
972 virtual void setMaximumFractionDigits(int32_t newValue);
982 int32_t getMinimumFractionDigits(
void)
const;
994 virtual void setMinimumFractionDigits(int32_t newValue);
1008 virtual void setCurrency(
const char16_t* theCurrency,
UErrorCode& ec);
1017 const char16_t* getCurrency()
const;
1048 virtual ERoundingMode getRoundingMode(
void)
const;
1055 virtual void setRoundingMode(ERoundingMode roundingMode);
1067 static UClassID U_EXPORT2 getStaticClassID(
void);
1110 virtual void getEffectiveCurrency(char16_t* result,
UErrorCode& ec)
const;
1112 #ifndef U_HIDE_INTERNAL_API
1121 UBool mustBeDecimalFormat,
1140 UBool fGroupingUsed;
1141 int32_t fMaxIntegerDigits;
1142 int32_t fMinIntegerDigits;
1143 int32_t fMaxFractionDigits;
1144 int32_t fMinFractionDigits;
1153 UBool fParseIntegerOnly;
1157 char16_t fCurrency[4];
1161 friend class ICUNumberFormatFactory;
1162 friend class ICUNumberFormatService;
1163 friend class ::NumberFormatTest;
1166 #if !UCONFIG_NO_SERVICE
1190 virtual UBool visible(
void)
const = 0;
1253 NumberFormat::isParseIntegerOnly()
const
1255 return fParseIntegerOnly;
1259 NumberFormat::isLenient()
const
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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...
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.