34 #if !UCONFIG_NO_FORMATTING 115 enum { DONT_CARE = -1 };
122 :
UObject(), fField(DONT_CARE), fBeginIndex(0), fEndIndex(0) {}
136 :
UObject(), fField(field), fBeginIndex(0), fEndIndex(0) {}
144 :
UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {}
244 static UClassID U_EXPORT2 getStaticClassID();
269 fField = copy.fField;
270 fEndIndex = copy.fEndIndex;
271 fBeginIndex = copy.fBeginIndex;
278 return (fField == copy.fField &&
279 fEndIndex == copy.fEndIndex &&
280 fBeginIndex == copy.fBeginIndex);
FieldPosition(int32_t field)
Creates a FieldPosition object for the given field.
void setField(int32_t f)
Set the field.
void setEndIndex(int32_t ei)
Set the end index.
UBool operator!=(const FieldPosition &that) const
Equality operator.
int32_t getEndIndex(void) const
Retrieve the index of the character following the last character in the requested field...
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
FieldPosition & operator=(const FieldPosition ©)
Assignment operator.
UBool operator==(const FieldPosition &that) const
Equality operator.
#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.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
void setBeginIndex(int32_t bi)
Set the begin index.
FieldPosition()
Creates a FieldPosition object with a non-specified field.
Basic definitions for ICU, for both C and C++ APIs.
FieldPosition(const FieldPosition ©)
Copy constructor.
int32_t getField(void) const
Retrieve the field identifier.
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.
int32_t getBeginIndex(void) const
Retrieve the index of the first character in the requested field.