Home
last modified time | relevance | path

Searched refs:offsetHM (Results 1 – 4 of 4) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeZoneFormat.java2049 private static String expandOffsetPattern(String offsetHM) {
2050 int idx_mm = offsetHM.indexOf("mm");
2055 int idx_H = offsetHM.substring(0, idx_mm).lastIndexOf("H");
2057 sep = offsetHM.substring(idx_H + 1, idx_mm);
2059 return offsetHM.substring(0, idx_mm + 2) + sep + "ss" + offsetHM.substring(idx_mm + 2);
2069 private static String truncateOffsetPattern(String offsetHM) {
2070 int idx_mm = offsetHM.indexOf("mm");
2074 int idx_HH = offsetHM.substring(0, idx_mm).lastIndexOf("HH");
2076 return offsetHM.substring(0, idx_HH + 2);
2078 int idx_H = offsetHM.substring(0, idx_mm).lastIndexOf("H");
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneFormat.java2119 private static String expandOffsetPattern(String offsetHM) {
2120 int idx_mm = offsetHM.indexOf("mm");
2125 int idx_H = offsetHM.substring(0, idx_mm).lastIndexOf("H");
2127 sep = offsetHM.substring(idx_H + 1, idx_mm);
2129 return offsetHM.substring(0, idx_mm + 2) + sep + "ss" + offsetHM.substring(idx_mm + 2);
2139 private static String truncateOffsetPattern(String offsetHM) {
2140 int idx_mm = offsetHM.indexOf("mm");
2144 int idx_HH = offsetHM.substring(0, idx_mm).lastIndexOf("HH");
2146 return offsetHM.substring(0, idx_HH + 2);
2148 int idx_H = offsetHM.substring(0, idx_mm).lastIndexOf("H");
[all …]
/external/icu/icu4c/source/i18n/
Dtzfmt.cpp2568 TimeZoneFormat::expandOffsetPattern(const UnicodeString& offsetHM, UnicodeString& result, UErrorCod… in expandOffsetPattern() argument
2575 int32_t idx_mm = offsetHM.indexOf(DEFAULT_GMT_OFFSET_MINUTE_PATTERN, 2, 0); in expandOffsetPattern()
2583 int32_t idx_H = offsetHM.tempSubString(0, idx_mm).lastIndexOf((UChar)0x0048 /* H */); in expandOffsetPattern()
2585 sep = offsetHM.tempSubString(idx_H + 1, idx_mm - (idx_H + 1)); in expandOffsetPattern()
2587 result.setTo(offsetHM.tempSubString(0, idx_mm + 2)); in expandOffsetPattern()
2590 result.append(offsetHM.tempSubString(idx_mm + 2)); in expandOffsetPattern()
2595 TimeZoneFormat::truncateOffsetPattern(const UnicodeString& offsetHM, UnicodeString& result, UErrorC… in truncateOffsetPattern() argument
2602 int32_t idx_mm = offsetHM.indexOf(DEFAULT_GMT_OFFSET_MINUTE_PATTERN, 2, 0); in truncateOffsetPattern()
2609 int32_t idx_HH = offsetHM.tempSubString(0, idx_mm).lastIndexOf(HH, 2, 0); in truncateOffsetPattern()
2611 return result.setTo(offsetHM.tempSubString(0, idx_HH + 2)); in truncateOffsetPattern()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dtzfmt.h796 …static UnicodeString& expandOffsetPattern(const UnicodeString& offsetHM, UnicodeString& result, UE…
806 …static UnicodeString& truncateOffsetPattern(const UnicodeString& offsetHM, UnicodeString& result, …