Lines Matching refs:Format
15 * \brief C++ API: Format and parse duration in single time unit
50 * Format or parse a TimeUnitAmount, using plural rules for the units where available.
58 * // create time unit format instance
59 * TimeUnitFormat* format = new TimeUnitFormat(Locale("en"), status);
60 * // format a time unit amount
65 * formatted = ((Format*)format)->format(formattable, formatted, status);
67 * ((Format*)format)->parseObject(formatted, result, status);
127 * Clone this Format object polymorphically. The caller owns the result and
132 virtual Format* clone(void) const;
142 * Return true if the given Format objects are semantically equal. Objects
145 * @return true if the given Format objects are semantically equal.
148 virtual UBool operator==(const Format& other) const;
151 * Return true if the given Format objects are not semantically equal.
154 * @return true if the given Format objects are not semantically equal.
157 UBool operator!=(const Format& other) const;
169 * Set the number format used for formatting or parsing.
170 * @param format the number formatter to be set
174 void setNumberFormat(const NumberFormat& format, UErrorCode& status);
177 * Format a TimeUnitAmount.
181 * @see Format#format(const Formattable&, UnicodeString&, FieldPosition&, UErrorCode&) const
184 virtual UnicodeString& format(const Formattable& obj,
191 * @see Format#parseObject(const UnicodeString&, Formattable&, ParsePosition&) const;
270 TimeUnitFormat::operator!=(const Format& other) const {