23#if U_SHOW_CPLUSPLUS_API
83 errorIndex(copy.errorIndex)
132 inline int32_t
getIndex(
void)
const;
139 inline void setIndex(int32_t index);
191 errorIndex = copy.errorIndex;
198 if(index != copy.index || errorIndex != copy.errorIndex)
219 this->index = offset;
231 this->errorIndex = ei;
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
int32_t getIndex(void) const
Retrieve the current parse position.
bool operator==(const ParsePosition &that) const
Equality operator.
void setIndex(int32_t index)
Set the current parse position.
ParsePosition & operator=(const ParsePosition ©)
Assignment operator.
virtual UClassID getDynamicClassID() const override
ICU "poor man's RTTI", returns a UClassID for the actual class.
ParsePosition * clone() const
Clone this object.
int32_t getErrorIndex(void) const
Retrieve the index at which an error occurred, or -1 if the error index has not been set.
ParsePosition(const ParsePosition ©)
Copy constructor.
void setErrorIndex(int32_t ei)
Set the index at which a parse error occurred.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
virtual ~ParsePosition()
Destructor.
bool operator!=(const ParsePosition &that) const
Equality operator.
ParsePosition()
Default constructor, the index starts with 0 as default.
ParsePosition(int32_t newIndex)
Create a new ParsePosition with the given initial index.
UObject is the common ICU "boilerplate" class.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
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.