Lines Matching refs:format
15 * \brief C++ API: Format and parse duration in single time unit
40 * Format or parse a TimeUnitAmount, using plural rules for the units where available.
48 * // create time unit format instance
49 * TimeUnitFormat* format = new TimeUnitFormat(Locale("en"), status);
50 * // format a time unit amount
55 * formatted = ((Format*)format)->format(formattable, formatted, status);
57 * ((Format*)format)->parseObject(formatted, result, status);
117 * Clone this Format object polymorphically. The caller owns the result and
122 virtual Format* clone(void) const;
132 * Return true if the given Format objects are semantically equal. Objects
135 * @return true if the given Format objects are semantically equal.
138 virtual UBool operator==(const Format& other) const;
141 * Return true if the given Format objects are not semantically equal.
144 * @return true if the given Format objects are not semantically equal.
147 UBool operator!=(const Format& other) const;
159 * Set the number format used for formatting or parsing.
160 * @param format the number formatter to be set
164 void setNumberFormat(const NumberFormat& format, UErrorCode& status);
167 using MeasureFormat::format;
170 * Format a TimeUnitAmount.
174 * @see Format#format(const Formattable&, UnicodeString&, FieldPosition&, UErrorCode&) const
177 virtual UnicodeString& format(const Formattable& obj,
184 * @see Format#parseObject(const UnicodeString&, Formattable&, ParsePosition&) const;
261 TimeUnitFormat::operator!=(const Format& other) const {