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;
UBool operator==(const ParsePosition &that) const
Equality operator.
int32_t getIndex(void) const
Retrieve the current parse position.
UBool operator!=(const ParsePosition &that) const
Equality operator.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
int32_t getErrorIndex(void) const
Retrieve the index at which an error occurred, or -1 if the error index has not been set...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
ParsePosition(int32_t newIndex)
Create a new ParsePosition with the given initial index.
#define TRUE
The TRUE value of a UBool.
ParsePosition()
Default constructor, the index starts with 0 as default.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
C++ API: Common ICU base class UObject.
#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...
void setErrorIndex(int32_t ei)
Set the index at which a parse error occurred.
void setIndex(int32_t index)
Set the current parse position.
ParsePosition(const ParsePosition ©)
Copy constructor.
Basic definitions for ICU, for both C and C++ APIs.
#define FALSE
The FALSE value of a UBool.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
ParsePosition & operator=(const ParsePosition ©)
Assignment operator.
int8_t UBool
The ICU boolean type.