1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 4 * Copyright (C) 1997-2005, International Business Machines Corporation and others. All Rights Reserved. 5 ******************************************************************************* 9 * Modification History: 11 * Date Name Description 12 * 07/09/97 helena Converted from java. 13 * 07/17/98 stephen Added errorIndex support. 14 * 05/11/99 stephen Cleaned up. 15 ******************************************************************************* 23 #if U_SHOW_CPLUSPLUS_API 83 errorIndex(copy.errorIndex)
132 inline int32_t getIndex()
const;
139 inlinevoid setIndex(int32_t index);
148 inlinevoid setErrorIndex(int32_t ei);
155 inline int32_t getErrorIndex()
const;
191 errorIndex = copy.errorIndex;
198 if(index != copy.index || errorIndex != copy.errorIndex)
211 ParsePosition::getIndex()
const 217 ParsePosition::setIndex(int32_t offset)
219 this->index = offset;
223 ParsePosition::getErrorIndex()
const 229 ParsePosition::setErrorIndex(int32_t ei)
231 this->errorIndex = ei;
235 #endif/* U_SHOW_CPLUSPLUS_API */ ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
ParsePosition * clone() const
Clone this object.
virtual UClassID getDynamicClassID() const override
ICU "poor man's RTTI", returns a UClassID for the actual class.
ParsePosition(const ParsePosition ©)
Copy constructor.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
virtual ~ParsePosition()
Destructor.
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.