Lines Matching refs:pattern
140 // This is a pattern-of-last-resort used when we can't load a usable pattern out
252 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
254 : fPattern(pattern),
271 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
274 : fPattern(pattern),
294 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
297 : fPattern(pattern),
315 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
319 : fPattern(pattern),
340 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
343 : fPattern(pattern),
362 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern,
365 : fPattern(pattern),
518 // called by several constructors to load pattern data from the resources
554 // if the pattern should include both date and time information, use the date/time
555 // pattern string as a guide to tell use how to glue together the appropriate date
556 // and time pattern strings. The actual gluing-together is handled by a convenience
640 // if the pattern includes just time data or just date date, load the appropriate
641 // pattern string from the resources
849 // loop through the pattern string character by character
853 // Use subFormat() to format a repeated pattern character
854 // when a different pattern or non-pattern character is seen
871 // ch is a date-time pattern character to be interpreted
877 // Append quoted characters and unquoted non-pattern characters
882 // Format the last item in the pattern, if any
934 // Map index into pattern character string to Calendar field number.
954 // Map index into pattern character string to DateFormat field number
1240 // GMT pattern
1242 // No GMT pattern is set
1249 // No Hour pattern is set
1327 // This prevents an hours format pattern like "-HH:mm:ss" from matching
1494 // if the pattern character is unrecognized, signal an error and bail out
1522 // text for an individual pattern symbol (e.g., "HH" or "yyyy")
1532 // if the pattern character is unrecognized, signal an error and dump out
1719 // offset from GMT) regardless of how many z's were in the pattern symbol
1768 // long form, localized GMT pattern
1796 // all of the other pattern symbols can be formatted as simple numbers with
1866 // offset into 'pattern' of the first of 2 or more abutting
1943 // the pattern "HHmmss" as an example. We will try to parse
1947 // "12345" => 1:23:45. Likewise, for the pattern "yyyyMMdd" we
1985 // move to next pattern character
1991 // Advance over run in pattern
2007 // Handle literal pattern characters. These are any
2029 // will be wrong if we're parsing a 2-digit year pattern. It will be 1904.
2297 UBool SimpleDateFormat::matchLiterals(const UnicodeString &pattern,
2307 // scan pattern looking for contiguous literal characters
2308 for ( ; i < pattern.length(); i += 1) {
2309 UChar ch = pattern.charAt(i);
2317 if ((i + 1) < pattern.length() && pattern.charAt(i + 1) == QUOTE) {
2329 // and i is the index of the next non-literal pattern character.
2399 UChar *patternCharPtr = u_strchr(DateFormatSymbols::getPatternUChars(), pattern.charAt(i));
2522 * @param ch the pattern character for the date field text to be parsed.
2523 * @param count the count of a pattern character.
2683 // If there are 3 or more YEAR pattern characters, this indicates
2757 // while pattern uses numeric style: M or MM.
2784 // while pattern uses numeric style: M or MM.
2908 // while pattern uses numeric style: Q or QQ.
2934 // while pattern uses numeric style: q or q.
3121 // If we saw standalone GMT zero pattern, then use GMT.
3267 // run through the pattern and convert any pattern symbols from the version
3270 // an error if a particular "pattern character" doesn't appear in "from".
3329 SimpleDateFormat::applyPattern(const UnicodeString& pattern)
3331 fPattern = pattern;
3337 SimpleDateFormat::applyLocalizedPattern(const UnicodeString& pattern,
3340 translatePattern(pattern, fPattern,
3395 SimpleDateFormat::isFieldUnitIgnored(const UnicodeString& pattern,
3404 for (int32_t i = 0; i < pattern.length(); ++i) {
3405 ch = pattern[i];
3415 if ((i+1) < pattern.length() && pattern[i+1] == QUOTE) {
3480 // check suffix will be encountered in the pattern
3512 // We may have a pattern like: \u200F \u0020
3516 // match of the run of Pattern_White_Space in the pattern,
3534 // Advance over run in pattern
3546 // If we skip UWhiteSpace in the input text, we need to skip it in the pattern.