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;
157 static UClassID U_EXPORT2 getStaticClassID();
182 inline ParsePosition&
186 errorIndex = copy.errorIndex;
193 if(index != copy.index || errorIndex != copy.errorIndex)
206 ParsePosition::getIndex()
const
212 ParsePosition::setIndex(int32_t offset)
214 this->index = offset;
218 ParsePosition::getErrorIndex()
const
224 ParsePosition::setErrorIndex(int32_t ei)
226 this->errorIndex = ei;
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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.
#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.
#define TRUE
The TRUE value of a UBool.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
ParsePosition()
Default constructor, the index starts with 0 as default.
ParsePosition(const ParsePosition ©)
Copy constructor.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Basic definitions for ICU, for both C and C++ APIs.
ParsePosition(int32_t newIndex)
Create a new ParsePosition with the given initial index.
#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...
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.