32 #if !UCONFIG_NO_FORMATTING
40 class NumberFormatTest;
44 #if !UCONFIG_NO_SERVICE
182 kDecimalSeparatorField,
183 kExponentSymbolField,
186 kGroupingSeparatorField,
197 INTEGER_FIELD = kIntegerField,
198 FRACTION_FIELD = kFractionField
591 UBool isParseIntegerOnly(
void)
const;
600 virtual void setParseIntegerOnly(
UBool value);
609 virtual void setLenient(
UBool enable);
619 virtual UBool isLenient(
void)
const;
704 #if !UCONFIG_NO_SERVICE
743 UBool isGroupingUsed(
void)
const;
751 virtual void setGroupingUsed(
UBool newValue);
761 int32_t getMaximumIntegerDigits(
void)
const;
775 virtual void setMaximumIntegerDigits(int32_t newValue);
785 int32_t getMinimumIntegerDigits(
void)
const;
797 virtual void setMinimumIntegerDigits(int32_t newValue);
807 int32_t getMaximumFractionDigits(
void)
const;
819 virtual void setMaximumFractionDigits(int32_t newValue);
829 int32_t getMinimumFractionDigits(
void)
const;
841 virtual void setMinimumFractionDigits(int32_t newValue);
864 const UChar* getCurrency()
const;
919 virtual void getEffectiveCurrency(
UChar* result,
UErrorCode& ec)
const;
937 int32_t fMaxIntegerDigits;
938 int32_t fMinIntegerDigits;
939 int32_t fMaxFractionDigits;
940 int32_t fMinFractionDigits;
941 UBool fParseIntegerOnly;
947 friend class ICUNumberFormatFactory;
948 friend class ICUNumberFormatService;
949 friend class ::NumberFormatTest;
952 #if !UCONFIG_NO_SERVICE
976 virtual UBool visible(
void)
const = 0;
1041 return fParseIntegerOnly;
A string-like object that points to a sized piece of memory.
#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.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UNumberFormatStyle
The possible number format styles.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
#define TRUE
The TRUE value of a UBool.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
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...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
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.
C++ API: Locale ID object.
Basic definitions for ICU, for both C and C++ APIs.
A Locale object represents a specific geographical, political, or cultural region.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
int8_t UBool
The ICU boolean type.