Home | History | Annotate | Download | only in unicode

Lines Matching refs:Format

21 #include "unicode/format.h"
27 * Constants for time zone display format style used by format/parse APIs
33 * Generic location format, such as "United States Time (New York)", "Italy Time"
38 * Generic long non-location format, such as "Eastern Time".
43 * Generic short non-location format, such as "ET".
48 * Specific long format, such as "Eastern Standard Time".
53 * Specific short format, such as "EST", "PDT".
58 * Localized GMT offset format, such as "GMT-05:00", "UTC+0100"
63 * Short localized GMT offset format, such as "GMT-5", "UTC+1:30"
64 * This style is equivalent to the LDML date format pattern "O".
69 * Short ISO 8601 local time difference (basic format) or the UTC indicator.
71 * This style is equivalent to the LDML date format pattern "X".
76 * Short ISO 8601 locale time difference (basic format).
78 * This style is equivalent to the LDML date format pattern "x".
83 * Fixed width ISO 8601 local time difference (basic format) or the UTC indicator.
85 * This style is equivalent to the LDML date format pattern "XX".
90 * Fixed width ISO 8601 local time difference (basic format).
92 * This style is equivalent to the LDML date format pattern "xx".
97 * ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator.
99 * This style is equivalent to the LDML date format pattern "XXXX".
104 * ISO 8601 local time difference (basic format) with optional seconds field.
106 * This style is equivalent to the LDML date format pattern "xxxx".
111 * Fixed width ISO 8601 local time difference (extended format) or the UTC indicator.
113 * This style is equivalent to the LDML date format pattern "XXX".
118 * Fixed width ISO 8601 local time difference (extended format).
120 * This style is equivalent to the LDML date format pattern "xxx" and "ZZZZZ".
125 * ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator.
127 * This style is equivalent to the LDML date format pattern "XXXXX".
132 * ISO 8601 local time difference (extended format) with optional seconds field.
134 * This style is equivalent to the LDML date format pattern "xxxxx".
272 class U_I18N_API TimeZoneFormat : public Format {
293 * Return true if the given Format objects are semantically equal.
296 * @return Return TRUE if the given Format objects are semantically equal.
300 virtual UBool operator==(const Format& other) const;
308 virtual Format* clone() const;
328 * Sets the time zone display name data to this format instnace.
337 * Sets the time zone display name data to this format instnace.
344 * Returns the localized GMT format pattern.
345 * @param pattern Receives the localized GMT format pattern.
353 * Sets the localized GMT format pattern. The pattern must contain
355 * @param pattern The localized GMT format pattern to be used by this object.
363 * Returns the offset pattern used for localized GMT format.
375 * @param pattern The offset pattern used for localized GMT format for the type.
383 * Returns the decimal digit characters used for localized GMT format.
387 * @param digits Receives the decimal digits used for localized GMT format.
394 * Sets the decimal digit characters used for localized GMT format.
400 * @param digits The decimal digits used for localized GMT format.
408 * Returns the localized GMT format string for GMT(UTC) itself (GMT offset is 0).
417 * Sets the localized GMT format string for GMT(UTC) itself (GMT offset is 0).
418 * @param gmtZeroFormat The localized GMT format string for GMT(UTC).
452 * @param result Receives the ISO format string.
454 * @return the ISO 8601 basic format.
470 * @param result Receives the ISO format string.
472 * @return the ISO 8601 basic format.
481 format for the given offset.
484 * <li>GMT format pattern (e.g. "GMT {0}" - see {@link #getGMTPattern})
487 * <li>GMT zero format (e.g. "GMT" - see {@link #getGMTZeroFormat})
489 * This format always uses 2 digit hours and minutes. When the given offset has non-zero
494 * @param result Receives the localized GMT format string.
502 * Returns the short localized GMT(UTC) offset format for the given offset.
505 * <li>GMT format pattern (e.g. "GMT {0}" - see {@link #getGMTPattern})
508 * <li>GMT zero format (e.g. "GMT" - see {@link #getGMTZeroFormat})
510 * This format uses the shortest representation of offset. The hours field does not
515 * @param result Receives the short localized GMT format string.
522 using Format::format;
537 virtual UnicodeString& format(UTimeZoneFormatStyle style, const TimeZone& tz, UDate date,
558 * offset format string. When the given string cannot be parsed, this method
564 * offset format string.
572 * offset format string. When the given string cannot be parsed, this method
578 * offset format string.
586 * the given parse position, the specified format style and parse options.
589 * @param style The format style
605 * the given parse position, the specified format style and the default parse options.
608 * @param style The format style
622 * Format APIs
626 * Format an object to produce a time zone display string using localized GMT offset format.
629 * @param obj The object to format. Must be a <code>TimeZone</code>.
636 virtual UnicodeString& format(const Formattable& obj, UnicodeString& appendTo,
687 /* Localized GMT format pattern - e.g. "GMT{0}" */
690 /* Array of offset patterns used by Localized GMT format - e.g. "+HH:mm" */
693 /* Localized decimal digits used by Localized GMT format */
696 /* Localized GMT zero format - e.g. "GMT" */
702 /* Constant parts of GMT format pattern, populated from localized GMT format pattern*/
715 * Returns the time zone's specific format string.
720 * @param name receives the time zone's specific format name string
728 * Returns the time zone's generic format string.
732 * @param name receives the time zone's generic format name string
779 * Parse the GMT offset pattern into runtime optimized format.
828 * @return the ISO 8601 basic format.
836 * @param isShort true if the short localized GMT format is desired.
837 * @param result receives the localized GMT format string
844 * (extended format) time zone string. When the given string is not an ISO 8601 time
850 * @param extendedOnly TRUE if parsing the text as ISO 8601 extended offset format (e.g. "-08:00"),
851 * or FALSE to evaluate the text as basic format.
870 * offset format string. When the given string cannot be parsed, this method
875 * @param isShort true if this parser to try the short format first
878 * offset format string.
884 * Parse localized GMT format generated by the patter used by this formatter, except
885 * GMT Zero format.
888 * @param isShort true if the short localized format is parsed.
899 * @param isShort true if this is a short format - currently not used
929 * Parses the input text using the default format patterns (e.g. "UTC{0}").
1019 * Unquotes the message format style pattern.
1027 * Initialize localized GMT format offset hour/min/sec patterns.
1028 * This method parses patterns into optimized run-time format.
1034 * Check if there are any GMT format offset patterns without