Home | History | Annotate | Download | only in unicode

Lines Matching refs:Format

29 #include "unicode/format.h"
51 * DateFormat helps you to format and parse dates for any locale. Your code can
53 * week, or even the calendar format: lunar vs. solar.
55 * To format a date for the current Locale, use one of the static factory
62 * myString = dfmt->format( myDate, myString );
66 * format and use it multiple times so that the system doesn't have to fetch the
75 * cout << df->format( myDateArr[i], myString ) << endl;
86 * myString = dfmt->format( myDate, myString );
91 * To format a date for a different Locale, specify it in the call to
106 * Use createDateInstance() to produce the normal date format for that country.
108 * to produce the normal time format for that country. Use createDateTimeInstance()
120 * You can also set the time zone on the format if you wish. If you want even
121 * more control over the format or parsing, (or want to give your users more
126 * You can also use forms of the parse and format methods with ParsePosition and
138 class U_I18N_API DateFormat : public Format {
212 virtual UBool operator==(const Format&) const;
215 using Format::format;
218 * Format an object to produce a string. This method handles Formattable
222 * @param obj The object to format. Must be a Date.
231 virtual UnicodeString& format(const Formattable& obj,
237 * Format an object to produce a string. This method handles Formattable
241 * @param obj The object to format. Must be a Date.
245 * of fields generated by this format call. Field values
251 virtual UnicodeString& format(const Formattable& obj,
288 virtual UnicodeString& format( Calendar& cal,
304 * of fields generated by this format call. Field values
310 virtual UnicodeString& format(Calendar& cal,
341 UnicodeString& format( UDate date,
352 * of fields generated by this format call. Field values
358 UnicodeString& format(UDate date,
364 * know, using this method. Use the overloaded format() method which takes a
373 UnicodeString& format(UDate date, UnicodeString& appendTo) const;
376 * Redeclared Format method.
385 UnicodeString& format
399 * this object's format method but can still be parsed as a date, then the
400 * parse succeeds. Clients may insist on strict adherence to the format by
409 * ERA field of the Calendar object) is not normally part of the format,
414 * within the era/cycle that should be assumed if absent in the format.
432 * this object's format method but can still be parsed as a date, then the
433 * parse succeeds. Clients may insist on strict adherence to the format by
462 * this object's format method but can still be parsed as a date, then the
463 * parse succeeds. Clients may insist on strict adherence to the format by
472 * ERA field of the Calendar object) is not normally part of the format,
477 * within the era/cycle that should be assumed if absent in the format.
500 * See Format::parseObject() for more.
597 * precisely match this object's format. With strict parsing, inputs must
598 * match this object's format.
614 * Set the calendar to be used by this date format. Initially, the default
625 * Set the calendar to be used by this date format. Initially, the default
635 * Gets the number formatter which this date/time formatter uses to format
709 * The number formatter that DateFormat uses to format numbers in dates and
711 * format for the locale associated with this DateFormat.
785 DateFormat::format(const Formattable& obj,
788 return Format::format(obj, appendTo, status);