78 errorIndex(copy.errorIndex)
127 int32_t getIndex(
void)
const;
134 void setIndex(int32_t index);
143 void setErrorIndex(int32_t ei);
150 int32_t getErrorIndex(
void)
const;
186 errorIndex = copy.errorIndex;
193 if(index != copy.index || errorIndex != copy.errorIndex)
214 this->index = offset;
226 this->errorIndex = ei;
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
UBool operator!=(const ParsePosition &that) const
Equality operator.
ParsePosition(const ParsePosition ©)
Copy constructor.
void setErrorIndex(int32_t ei)
Set the index at which a parse error occurred.
ParsePosition(int32_t newIndex)
Create a new ParsePosition with the given initial index.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
ParsePosition & operator=(const ParsePosition ©)
Assignment operator.
ParsePosition()
Default constructor, the index starts with 0 as default.
int32_t getErrorIndex(void) const
Retrieve the index at which an error occurred, or -1 if the error index has not been set.
ParsePosition * clone() const
Clone this object.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
int32_t getIndex(void) const
Retrieve the current parse position.
void setIndex(int32_t index)
Set the current parse position.
virtual ~ParsePosition()
Destructor.
UBool operator==(const ParsePosition &that) const
Equality operator.
UObject is the common ICU "boilerplate" class.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
int8_t UBool
The ICU boolean type.
#define TRUE
The TRUE value of a UBool.
#define FALSE
The FALSE value of a UBool.
C++ API: Common ICU base class UObject.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.