ICU 57.1 57.1
fpositer.h
Go to the documentation of this file.
1/*
2********************************************************************************
3* Copyright (C) 2010-2012, International Business Machines
4* Corporation and others. All Rights Reserved.
5********************************************************************************
6*
7* File attiter.h
8*
9* Modification History:
10*
11* Date Name Description
12* 12/15/2009 dougfelt Created
13********************************************************************************
14*/
15
16#ifndef FPOSITER_H
17#define FPOSITER_H
18
19#include "unicode/utypes.h"
20#include "unicode/uobject.h"
21
26
27#if UCONFIG_NO_FORMATTING
28
30
31/*
32 * Allow the declaration of APIs with pointers to FieldPositionIterator
33 * even when formatting is removed from the build.
34 */
36
38
39#else
40
41#include "unicode/fieldpos.h"
42#include "unicode/umisc.h"
43
45
46class UVector32;
47
54public:
60
66
73
83
90 UBool operator!=(const FieldPositionIterator& rhs) const { return !operator==(rhs); }
91
98
99private:
100 friend class FieldPositionIteratorHandler;
101
107 void setData(UVector32 *adopt, UErrorCode& status);
108
109 UVector32 *data;
110 int32_t pos;
111};
112
114
115#endif /* #if !UCONFIG_NO_FORMATTING */
116
117#endif // FPOSITER_H
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
Definition fpositer.h:53
UBool next(FieldPosition &fp)
If the current position is valid, updates the FieldPosition values, advances the iterator,...
FieldPositionIterator(const FieldPositionIterator &)
Copy constructor.
FieldPositionIterator(void)
Constructs a new, empty iterator.
UBool operator!=(const FieldPositionIterator &rhs) const
Returns the complement of the result of operator==.
Definition fpositer.h:90
~FieldPositionIterator()
Destructor.
UBool operator==(const FieldPositionIterator &) const
Return true if another object is semantically equal to this one.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Definition fieldpos.h:106
UObject is the common ICU "boilerplate" class.
Definition uobject.h:221
C++ API: FieldPosition identifies the fields in a formatted output.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
int8_t UBool
The ICU boolean type.
Definition umachine.h:234
C API:misc definitions.
C++ API: Common ICU base class UObject.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition utypes.h:476
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition utypes.h:358
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition uversion.h:130
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition uversion.h:129