32 #if !UCONFIG_NO_FORMATTING
112 enum { DONT_CARE = -1 };
119 :
UObject(), fField(DONT_CARE), fBeginIndex(0), fEndIndex(0) {}
133 :
UObject(), fField(field), fBeginIndex(0), fEndIndex(0) {}
141 :
UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {}
266 fField = copy.fField;
267 fEndIndex = copy.fEndIndex;
268 fBeginIndex = copy.fBeginIndex;
275 return (fField == copy.fField &&
276 fEndIndex == copy.fEndIndex &&
277 fBeginIndex == copy.fBeginIndex);
FieldPosition()
Creates a FieldPosition object with a non-specified field.
void setEndIndex(int32_t ei)
Set the end index.
FieldPosition & operator=(const FieldPosition ©)
Assignment operator.
void setField(int32_t f)
Set the field.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
int32_t getEndIndex(void) const
Retrieve the index of the character following the last character in the requested field...
FieldPosition(int32_t field)
Creates a FieldPosition object for the given field.
int32_t getBeginIndex(void) const
Retrieve the index of the first character in the requested field.
UBool operator==(const FieldPosition &that) const
Equality operator.
UBool operator!=(const FieldPosition &that) const
Equality operator.
C++ API: Common ICU base class UObject.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
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...
Basic definitions for ICU, for both C and C++ APIs.
int32_t getField(void) const
Retrieve the field identifier.
FieldPosition(const FieldPosition ©)
Copy constructor.
void setBeginIndex(int32_t bi)
Set the begin index.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.