Home | History | Annotate | Download | only in unicode

Lines Matching refs:pattern

63  * is guaranteed to get an appropriate formatting pattern for whatever locale the
66 * and give it an appropriate pattern (or use one of the factory methods on DateFormat
67 * and modify the pattern after the fact with toPattern() and applyPattern().
71 * <p>Date and time formats are specified by <em>date and time pattern</em> strings.
72 * Within date and time pattern strings, all unquoted ASCII letters [A-Za-z] are reserved
73 * as pattern letters representing calendar fields. <code>SimpleDateFormat</code> supports
74 * the date and time formatting algorithm and pattern letters defined by
78 * User Guide</a>. The following pattern letters are currently available (note that the actual
398 * <td>Hour [1-12]. When used in skeleton data or in a skeleton passed in an API for flexible data pattern
406 * <td>Hour [0-23]. When used in skeleton data or in a skeleton passed in an API for flexible data pattern
444 * (example shows display using pattern SSSS for seconds value 12.34567)</td>
622 * Any characters in the pattern that are not in the ranges of ['a'..'z'] and
627 * A pattern containing any invalid pattern letter will result in a failing
633 * Format Pattern Result
668 * marker 'a' is left out from the format pattern while the "hour in am/pm"
669 * pattern symbol is used. This information loss can happen when formatting the
673 * When parsing a date string using the abbreviated year pattern ("y" or "yy"),
677 * instance is created. For example, using a pattern of "MM/dd/yy" and a
686 * Gregorian calendar), using the same pattern, as Jan 2, 3 AD. Likewise (but
690 * If the year pattern has more than two 'y' characters, the year is
692 * pattern "MM/dd/yyyy", "01/11/12" parses to Jan 11, 12 A.D.
713 * is handled programmatically according to the pattern.
722 * Construct a SimpleDateFormat using the default pattern for the default
733 * Construct a SimpleDateFormat using the given pattern and the default locale.
735 pattern.
739 * @param pattern the pattern for the format.
743 SimpleDateFormat(const UnicodeString& pattern,
747 * Construct a SimpleDateFormat using the given pattern, numbering system override, and the default locale.
749 * names of the months), but not to provide the pattern.
754 * date or time pattern are to be rendered using Thai digits, simply specify the numbering system override
762 * @param pattern the pattern for the format.
767 SimpleDateFormat(const UnicodeString& pattern,
772 * Construct a SimpleDateFormat using the given pattern and locale.
774 * names of the months), but not to provide the pattern.
778 * @param pattern the pattern for the format.
783 SimpleDateFormat(const UnicodeString& pattern,
788 * Construct a SimpleDateFormat using the given pattern, numbering system override, and locale.
790 * names of the months), but not to provide the pattern.
795 * date or time pattern are to be rendered using Thai digits, simply specify the numbering system override
802 * @param pattern the pattern for the format.
808 SimpleDateFormat(const UnicodeString& pattern,
814 * Construct a SimpleDateFormat using the given pattern and locale-specific
817 * @param pattern the given pattern for the format.
822 SimpleDateFormat(const UnicodeString& pattern,
827 * Construct a SimpleDateFormat using the given pattern and locale-specific
830 * @param pattern the given pattern for the format.
835 SimpleDateFormat(const UnicodeString& pattern,
989 * Return a pattern string describing this date format.
990 * @param result Output param to receive the pattern.
997 * Return a localized pattern string describing this date format.
999 * but a locale can specify characters to use in pattern descriptions
1002 * language.) This function would produce a pattern using those
1006 * to get localized format pattern characters. ICU does not include
1007 * localized pattern character data, therefore, unless user sets localized
1008 * pattern characters manually, this method returns the same result as
1011 * @param result Receives the localized pattern.
1013 * exit. If the pattern is invalid, this will be
1022 * Apply the given unlocalized pattern string to this date format.
1024 * the new pattern)
1026 * @param pattern The pattern to be applied.
1029 virtual void applyPattern(const UnicodeString& pattern);
1032 * Apply the given localized pattern string to this date format.
1035 * @param pattern The localized pattern to be applied.
1037 * exit. If the pattern is invalid, this will be
1041 virtual void applyLocalizedPattern(const UnicodeString& pattern,
1179 * pattern, return TRUE if it is. The sequence of calendar field,
1183 * covered in pattern. FALSE otherwise.
1192 * pattern, return TRUE if it is. The sequence of calendar field,
1194 * @param pattern the pattern to check against
1197 * covered in pattern. FALSE otherwise.
1200 static UBool isFieldUnitIgnored(const UnicodeString& pattern,
1241 SimpleDateFormat(const Locale& locale, UErrorCode& status); // Use default pattern
1253 * @param ch The format character we encountered in the pattern.
1254 * @param count Number of characters in the current pattern symbol (e.g.,
1255 * "yyyy" in the pattern would result in a call to this function
1302 static UBool isAtNumericField(const UnicodeString &pattern, int32_t patternOffset);
1307 static UBool isAfterNonNumericField(const UnicodeString &pattern, int32_t patternOffset);
1319 * Called by several of the constructors to load pattern data and formatting symbols
1344 * @param monthPattern pointer to leap month pattern, or NULL if none.
1377 * Private function used by subParse to match literal pattern text.
1379 * @param pattern the pattern string
1380 * @param patternOffset the starting offset into the pattern text. On
1381 * outupt will be set the offset of the first non-literal character in the pattern
1391 static UBool matchLiterals(const UnicodeString &pattern, int32_t &patternOffset,
1400 * @param ch the pattern character for the date field text to be parsed.
1401 * @param count the count of a pattern character.
1447 * Translate a pattern, mapping each character in the from string to the
1449 * pattern contains an unmapped character, or if a quote is unmatched.
1451 * @param originalPattern the original pattern.
1452 * @param translatedPattern Output param to receive the translited pattern.
1477 * @param affix pattern string, taken as a literal
1509 * Used to map pattern characters to Calendar field identifiers.
1514 * Map index into pattern character string to DateFormat field number
1544 * The formatting pattern for this formatter.