Home | History | Annotate | Download | only in i18n

Lines Matching refs:pattern

156 // This is a pattern-of-last-resort used when we can't load a usable pattern out
222 -1, // (no pattern character currently) - UDAT_TIME_SEPARATOR_FIELD
399 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
401 : fPattern(pattern),
419 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
422 : fPattern(pattern),
443 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
446 : fPattern(pattern),
465 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
469 : fPattern(pattern),
491 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
494 : fPattern(pattern),
513 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
516 : fPattern(pattern),
700 // called by several constructors to load pattern data from the resources
758 // if the pattern should include both date and time information, use the date/time
759 // pattern string as a guide to tell use how to glue together the appropriate date
760 // and time pattern strings.
824 // if the pattern includes just time data or just date date, load the appropriate
825 // pattern string from the resources
1031 // loop through the pattern string character by character
1035 // Use subFormat() to format a repeated pattern character
1036 // when a different pattern or non-pattern character is seen
1052 // ch is a date-time pattern character to be interpreted
1058 // Append quoted characters and unquoted non-pattern characters
1063 // Format the last item in the pattern, if any
1170 // Map index into pattern character string to Calendar field number.
1196 /*no pattern char for UDAT_TIME_SEPARATOR_FIELD*/ UCAL_FIELD_COUNT, /* => no useful mapping to any calendar field */
1200 // Map index into pattern character string to DateFormat field number
1225 /*no pattern char for UDAT_TIME_SEPARATOR_FIELD*/ UDAT_TIME_SEPARATOR_FIELD,
1380 // if the pattern character is unrecognized, signal an error and bail out
1417 // text for an individual pattern symbol (e.g., "HH" or "yyyy")
1428 // if the pattern character is unrecognized, signal an error and dump out
1431 if (ch != 0x6C) { // pattern char 'l' (SMALL LETTER L) just gets ignored
1668 // if we see pattern character for UDAT_TIME_SEPARATOR_FIELD (none currently defined),
1869 // loading of an instance) if a relevant pattern character (b or B) is used.
1959 // all of the other pattern symbols can be formatted as simple numbers with
2031 // if the pattern character is unrecognized, signal an error and bail out
2082 SimpleDateFormat::isAtNumericField(const UnicodeString &pattern, int32_t patternOffset) {
2083 if (patternOffset >= pattern.length()) {
2087 UChar ch = pattern.charAt(patternOffset);
2094 while (pattern.charAt(++i) == ch) {}
2099 SimpleDateFormat::isAfterNonNumericField(const UnicodeString &pattern
2104 UChar ch = pattern.charAt(--patternOffset);
2111 while (pattern.charAt(--i) == ch) {}
2137 // offset into 'pattern' of the first of 2 or more abutting
2208 // the pattern "HHmmss" as an example. We will try to parse
2212 // "12345" => 1:23:45. Likewise, for the pattern "yyyyMMdd" we
2241 else if (ch != 0x6C) { // pattern char 'l' (SMALL LETTER L) just gets ignored
2251 // move to next pattern character
2257 // Advance over run in pattern
2273 // Handle literal pattern characters. These are any
2373 // will be wrong if we're parsing a 2-digit year pattern. It will be 1904.
2613 UBool SimpleDateFormat::matchLiterals(const UnicodeString &pattern,
2625 // scan pattern looking for contiguous literal characters
2626 for ( ; i < pattern.length(); i += 1) {
2627 UChar ch = pattern.charAt(i);
2635 if ((i + 1) < pattern.length() && pattern.charAt(i + 1) == QUOTE) {
2647 // and i is the index of the next non-literal pattern character.
2703 isAfterNonNumericField(pattern, patternOffset)) {
2736 UDateFormatField patternCharIndex = DateFormatSymbols::getPatternCharIndex(pattern.charAt(i));
3049 // If there are 3 or more YEAR pattern characters, this indicates
3144 // while pattern uses numeric style: M/MM, L/LL
3333 // while pattern uses numeric style: Q or QQ.
3365 // while pattern uses numeric style: q or q.
3512 // currently no pattern character is defined for UDAT_TIME_SEPARATOR_FIELD
3752 // run through the pattern and convert any pattern symbols from the version
3755 // an error if a particular "pattern character" doesn't appear in "from".
3814 SimpleDateFormat::applyPattern(const UnicodeString& pattern)
3816 fPattern = pattern;
3823 SimpleDateFormat::applyLocalizedPattern(const UnicodeString& pattern,
3826 translatePattern(pattern, fPattern,
3933 SimpleDateFormat::isFieldUnitIgnored(const UnicodeString& pattern,
3942 for (int32_t i = 0; i < pattern.length(); ++i) {
3943 ch = pattern[i];
3953 if ((i+1) < pattern.length() && pattern[i+1] == QUOTE) {
4017 // check suffix will be encountered in the pattern
4049 // We may have a pattern like: \u200F \u0020
4053 // match of the run of Pattern_White_Space in the pattern,
4071 // Advance over run in pattern
4083 // If we skip UWhiteSpace in the input text, we need to skip it in the pattern.