1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 4 ******************************************************************************** 5 * Copyright (C) 1997-2006, International Business Machines 6 * Corporation and others. All Rights Reserved. 7 ******************************************************************************** 11 * Modification History: 13 * Date Name Description 14 * 02/25/97 aliu Converted from java. 15 * 03/17/97 clhuang Updated per Format implementation. 16 * 07/17/98 stephen Added default/copy ctors, and operators =, ==, != 17 ******************************************************************************** 20 // ***************************************************************************** 21 // This file was generated from the java source file FieldPosition.java 22 // ***************************************************************************** 29 #if U_SHOW_CPLUSPLUS_API 36 #if !UCONFIG_NO_FORMATTING 117 enum { DONT_CARE = -1 };
124 :
UObject(), fField(DONT_CARE), fBeginIndex(0), fEndIndex(0) {}
138 :
UObject(), fField(field), fBeginIndex(0), fEndIndex(0) {}
146 :
UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {}
271 fField = copy.fField;
272 fEndIndex = copy.fEndIndex;
273 fBeginIndex = copy.fBeginIndex;
280 return (fField == copy.fField &&
281 fEndIndex == copy.fEndIndex &&
282 fBeginIndex == copy.fBeginIndex);
293 #endif/* #if !UCONFIG_NO_FORMATTING */ 295 #endif/* U_SHOW_CPLUSPLUS_API */ FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
virtual ~FieldPosition()
Destructor.
int32_t getEndIndex() const
Retrieve the index of the character following the last character in the requested field.
void setEndIndex(int32_t ei)
Set the end index.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
int32_t getField() const
Retrieve the field identifier.
int32_t getBeginIndex() const
Retrieve the index of the first character in the requested field.
FieldPosition(int32_t field)
Creates a FieldPosition object for the given field.
void setField(int32_t f)
Set the field.
void setBeginIndex(int32_t bi)
Set the begin index.
FieldPosition(const FieldPosition ©)
Copy constructor.
FieldPosition()
Creates a FieldPosition object with a non-specified field.
FieldPosition * clone() const
Clone this object.
virtual UClassID getDynamicClassID() const override
ICU "poor man's RTTI", returns a UClassID for the actual class.
UObject is the common ICU "boilerplate" class.
U_COMMON_API 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_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.