/** * \file * \brief C++ API: FieldPosition Iterator.
*/
#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;
/** * FieldPositionIterator returns the field ids and their start/limit positions generated * by a call to Format::format. See Format, NumberFormat, DecimalFormat. * @stable ICU 4.4
*/ class U_I18N_API FieldPositionIterator : public UObject { public: /** * Destructor. * @stable ICU 4.4
*/
~FieldPositionIterator();
/** * Copy constructor. If the copy failed for some reason, the new iterator will * be empty. * @stable ICU 4.4
*/
FieldPositionIterator(const FieldPositionIterator&);
/** * Return true if another object is semantically equal to this * one. * <p> * Return true if this FieldPositionIterator is at the same position in an * equal array of run values. * @stable ICU 4.4
*/ booloperator==(const FieldPositionIterator&) const;
/** * Returns the complement of the result of operator== * @param rhs The FieldPositionIterator to be compared for inequality * @return the complement of the result of operator== * @stable ICU 4.4
*/ booloperator!=(const FieldPositionIterator& rhs) const { return !operator==(rhs); }
/** * If the current position is valid, updates the FieldPosition values, advances the iterator, * and returns true, otherwise returns false. * @stable ICU 4.4
*/
UBool next(FieldPosition& fp);
private: /** * Sets the data used by the iterator, and resets the position. * Returns U_ILLEGAL_ARGUMENT_ERROR in status if the data is not valid * (length is not a multiple of 3, or start >= limit for any run).
*/ void setData(UVector32 *adopt, UErrorCode& status);
friendclass FieldPositionIteratorHandler;
UVector32 *data;
int32_t pos;
};
U_NAMESPACE_END
#endif/* #if !UCONFIG_NO_FORMATTING */
#endif/* U_SHOW_CPLUSPLUS_API */
#endif// FPOSITER_H
Messung V0.5
¤ Dauer der Verarbeitung: 0.22 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.