Loading...
Searching...
No Matches
fpositer.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
********************************************************************************
* Copyright (C) 2010-2012, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************
*
* File attiter.h
*
* Modification History:
*
* Date Name Description
* 12/15/2009 dougfelt Created
********************************************************************************
*/
#ifndef FPOSITER_H
#define FPOSITER_H
#include "unicode/utypes.h"
#if U_SHOW_CPLUSPLUS_API
#include "unicode/uobject.h"
#if UCONFIG_NO_FORMATTING
U_NAMESPACE_BEGIN
/*
* Allow the declaration of APIs with pointers to FieldPositionIterator
* even when formatting is removed from the build.
*/
class FieldPositionIterator;
U_NAMESPACE_END
#else
#include "unicode/fieldpos.h"
#include "unicode/umisc.h"
U_NAMESPACE_BEGIN
class UVector32;
class U_I18N_API FieldPositionIterator : public UObject {
public:
~FieldPositionIterator();
FieldPositionIterator();
FieldPositionIterator(const FieldPositionIterator&);
bool operator==(const FieldPositionIterator&) const;
bool operator!=(const FieldPositionIterator& rhs) const { return !operator==(rhs); }
UBool next(FieldPosition& fp);
private:
void setData(UVector32 *adopt, UErrorCode& status);
friend class FieldPositionIteratorHandler;
UVector32 *data;
int32_t pos;
};
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif /* U_SHOW_CPLUSPLUS_API */
#endif // FPOSITER_H
icu::FieldPositionIterator::FieldPositionIterator
FieldPositionIterator(const FieldPositionIterator &)
Copy constructor.
icu::FieldPositionIterator::next
UBool next(FieldPosition &fp)
If the current position is valid, updates the FieldPosition values, advances the iterator,...
icu::FieldPositionIterator::operator!=
bool operator!=(const FieldPositionIterator &rhs) const
Returns the complement of the result of operator==.
Definition fpositer.h:95
icu::FieldPositionIterator::~FieldPositionIterator
~FieldPositionIterator()
Destructor.
icu::FieldPositionIterator::FieldPositionIterator
FieldPositionIterator()
Constructs a new, empty iterator.
icu::FieldPositionIterator::operator==
bool operator==(const FieldPositionIterator &) const
Return true if another object is semantically equal to this one.
icu::FieldPosition
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Definition fieldpos.h:110
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition uobject.h:222
fieldpos.h
C++ API: FieldPosition identifies the fields in a formatted output.
icu::operator==
U_COMMON_API UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UBool
int8_t UBool
The ICU boolean type, a signed-byte integer.
Definition umachine.h:269
umisc.h
C API: Miscellaneous definitions.
uobject.h
C++ API: Common ICU base class UObject.
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition utypes.h:509
U_I18N_API
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition utypes.h:316