80 errorIndex(copy.errorIndex)
129 inline int32_t getIndex(
void)
const;
136 inline void setIndex(int32_t index);
145 inline void setErrorIndex(int32_t ei);
152 inline int32_t getErrorIndex(
void)
const;
159 static UClassID U_EXPORT2 getStaticClassID();
188 errorIndex = copy.errorIndex;
195 if(index != copy.index || errorIndex != copy.errorIndex)
216 this->index = offset;
228 this->errorIndex = ei;
void setIndex(int32_t index)
Set the current parse position.
int32_t getErrorIndex(void) const
Retrieve the index at which an error occurred, or -1 if the error index has not been set...
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.
void setErrorIndex(int32_t ei)
Set the index at which a parse error occurred.
#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.
#define TRUE
The TRUE value of a UBool.
C++ API: Common ICU base class UObject.
ParsePosition & operator=(const ParsePosition ©)
Assignment operator.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
int32_t getIndex(void) const
Retrieve the current parse position.
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...
UBool operator==(const ParsePosition &that) const
Equality operator.
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...
UBool operator!=(const ParsePosition &that) const
Equality operator.
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.