23 #if U_SHOW_CPLUSPLUS_API 83 errorIndex(copy.errorIndex)
132 inline int32_t getIndex(
void)
const;
139 inline void setIndex(int32_t index);
148 inline void setErrorIndex(int32_t ei);
155 inline int32_t getErrorIndex(
void)
const;
162 static UClassID U_EXPORT2 getStaticClassID();
191 errorIndex = copy.errorIndex;
198 if(index != copy.index || errorIndex != copy.errorIndex)
219 this->index = offset;
231 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.
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.
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.