Home
last modified time | relevance | path

Searched refs:isLeapMonth (Results 1 – 17 of 17) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DChineseDateFormatSymbols.java40 String[] isLeapMonth; field in ChineseDateFormatSymbols
102 return isLeapMonth[leap]; in getLeapMonth()
121 this.isLeapMonth = ((ChineseDateFormatSymbols)dfs).isLeapMonth; in initializeData()
132 isLeapMonth = new String[2]; in initializeIsLeapMonth()
133 isLeapMonth[0] = ""; in initializeIsLeapMonth()
134isLeapMonth[1] = (leapMonthPatterns != null)? leapMonthPatterns[DT_LEAP_MONTH_PATTERN_FORMAT_WIDE]… in initializeIsLeapMonth()
DSimpleDateFormat.java1630 …int isLeapMonth = (formatData.leapMonthPatterns != null && formatData.leapMonthPatterns.length >= … in subFormat() local
1635 …safeAppendWithMonthPattern(formatData.narrowMonths, value, buf, (isLeapMonth!=0)? formatData.leapM… in subFormat()
1637 …AppendWithMonthPattern(formatData.standaloneNarrowMonths, value, buf, (isLeapMonth!=0)? formatData… in subFormat()
1642 …safeAppendWithMonthPattern(formatData.months, value, buf, (isLeapMonth!=0)? formatData.leapMonthPa… in subFormat()
1645 …safeAppendWithMonthPattern(formatData.standaloneMonths, value, buf, (isLeapMonth!=0)? formatData.l… in subFormat()
1650 …safeAppendWithMonthPattern(formatData.shortMonths, value, buf, (isLeapMonth!=0)? formatData.leapMo… in subFormat()
1653 …eAppendWithMonthPattern(formatData.standaloneShortMonths, value, buf, (isLeapMonth!=0)? formatData… in subFormat()
1661 …safeAppendWithMonthPattern(monthNumberStrings, 0, buf, (isLeapMonth!=0)? formatData.leapMonthPatte… in subFormat()
2887 int isLeapMonth = 0; in matchString() local
2900 isLeapMonth = 0; in matchString()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DChineseDateFormatSymbols.java38 String[] isLeapMonth; field in ChineseDateFormatSymbols
100 return isLeapMonth[leap]; in getLeapMonth()
119 this.isLeapMonth = ((ChineseDateFormatSymbols)dfs).isLeapMonth; in initializeData()
130 isLeapMonth = new String[2]; in initializeIsLeapMonth()
131 isLeapMonth[0] = ""; in initializeIsLeapMonth()
132isLeapMonth[1] = (leapMonthPatterns != null)? leapMonthPatterns[DT_LEAP_MONTH_PATTERN_FORMAT_WIDE]… in initializeIsLeapMonth()
DSimpleDateFormat.java1640 …int isLeapMonth = (formatData.leapMonthPatterns != null && formatData.leapMonthPatterns.length >= … in subFormat() local
1645 …safeAppendWithMonthPattern(formatData.narrowMonths, value, buf, (isLeapMonth!=0)? formatData.leapM… in subFormat()
1647 …AppendWithMonthPattern(formatData.standaloneNarrowMonths, value, buf, (isLeapMonth!=0)? formatData… in subFormat()
1652 …safeAppendWithMonthPattern(formatData.months, value, buf, (isLeapMonth!=0)? formatData.leapMonthPa… in subFormat()
1655 …safeAppendWithMonthPattern(formatData.standaloneMonths, value, buf, (isLeapMonth!=0)? formatData.l… in subFormat()
1660 …safeAppendWithMonthPattern(formatData.shortMonths, value, buf, (isLeapMonth!=0)? formatData.leapMo… in subFormat()
1663 …eAppendWithMonthPattern(formatData.standaloneShortMonths, value, buf, (isLeapMonth!=0)? formatData… in subFormat()
1671 …safeAppendWithMonthPattern(monthNumberStrings, 0, buf, (isLeapMonth!=0)? formatData.leapMonthPatte… in subFormat()
2901 int isLeapMonth = 0; in matchString() local
2914 isLeapMonth = 0; in matchString()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DChineseCalendar.java175 public ChineseCalendar(int year, int month, int isLeapMonth, int date) { in ChineseCalendar() argument
176 this(year, month, isLeapMonth, date, 0, 0, 0); in ChineseCalendar()
197 public ChineseCalendar(int year, int month, int isLeapMonth, int date, int hour, in ChineseCalendar() argument
211 this.set(IS_LEAP_MONTH, isLeapMonth); in ChineseCalendar()
231 public ChineseCalendar(int era, int year, int month, int isLeapMonth, int date) in ChineseCalendar() argument
233 this(era, year, month, isLeapMonth, date, 0, 0, 0); in ChineseCalendar()
255 public ChineseCalendar(int era, int year, int month, int isLeapMonth, int date, int hour, in ChineseCalendar() argument
267 this.set(IS_LEAP_MONTH, isLeapMonth); in ChineseCalendar()
867 boolean isLeapMonth = isLeapYear && in computeChineseFields()
872 internalSet(IS_LEAP_MONTH, isLeapMonth?1:0); in computeChineseFields()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java178 public ChineseCalendar(int year, int month, int isLeapMonth, int date) { in ChineseCalendar() argument
179 this(year, month, isLeapMonth, date, 0, 0, 0); in ChineseCalendar()
201 public ChineseCalendar(int year, int month, int isLeapMonth, int date, int hour, in ChineseCalendar() argument
215 this.set(IS_LEAP_MONTH, isLeapMonth); in ChineseCalendar()
236 public ChineseCalendar(int era, int year, int month, int isLeapMonth, int date) in ChineseCalendar() argument
238 this(era, year, month, isLeapMonth, date, 0, 0, 0); in ChineseCalendar()
261 public ChineseCalendar(int era, int year, int month, int isLeapMonth, int date, int hour, in ChineseCalendar() argument
273 this.set(IS_LEAP_MONTH, isLeapMonth); in ChineseCalendar()
886 boolean isLeapMonth = isLeapYear && in computeChineseFields()
891 internalSet(IS_LEAP_MONTH, isLeapMonth?1:0); in computeChineseFields()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DChineseTestCase.java35 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument
42 set(Calendar.IS_LEAP_MONTH, isLeapMonth?1:0); in ChineseTestCase()
DDangiTest.java234 int isLeapMonth = cal.get(Calendar.IS_LEAP_MONTH); in TestResolution() local
236 if (expMonth == month && expIsLeapMonth == isLeapMonth && in TestResolution()
247 "=" + (month+1) + "," + isLeapMonth + "," + dom + in TestResolution()
382 static public String ymdToString(int year, int month, int isLeapMonth, int day) { in ymdToString() argument
383 return "" + year + "/" + (month + 1) + ((isLeapMonth != 0) ? "(leap)" : "") + "/" + day; in ymdToString()
DChineseTest.java371 int isLeapMonth = cal.get(Calendar.IS_LEAP_MONTH); in TestResolution() local
373 if (expMonth == month && expIsLeapMonth == isLeapMonth && in TestResolution()
384 "=" + (month+1) + "," + isLeapMonth + "," + dom + in TestResolution()
528 static public String ymdToString(int year, int month, int isLeapMonth, int day) { in ymdToString() argument
530 ((isLeapMonth!=0)?"(leap)":"") + in ymdToString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DChineseTestCase.java34 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument
41 set(Calendar.IS_LEAP_MONTH, isLeapMonth?1:0); in ChineseTestCase()
DDangiTest.java233 int isLeapMonth = cal.get(Calendar.IS_LEAP_MONTH); in TestResolution() local
235 if (expMonth == month && expIsLeapMonth == isLeapMonth && in TestResolution()
246 "=" + (month+1) + "," + isLeapMonth + "," + dom + in TestResolution()
381 static public String ymdToString(int year, int month, int isLeapMonth, int day) { in ymdToString() argument
382 return "" + year + "/" + (month + 1) + ((isLeapMonth != 0) ? "(leap)" : "") + "/" + day; in ymdToString()
DChineseTest.java370 int isLeapMonth = cal.get(Calendar.IS_LEAP_MONTH); in TestResolution() local
372 if (expMonth == month && expIsLeapMonth == isLeapMonth && in TestResolution()
383 "=" + (month+1) + "," + isLeapMonth + "," + dom + in TestResolution()
527 static public String ymdToString(int year, int month, int isLeapMonth, int day) { in ymdToString() argument
529 ((isLeapMonth!=0)?"(leap)":"") + in ymdToString()
/external/icu/icu4c/source/i18n/
Dchnsecal.cpp346 int32_t isLeapMonth = useMonth ? saveIsLeapMonth : 0; in handleComputeMonthStart() local
358 isLeapMonth != internalGet(UCAL_IS_LEAP_MONTH)) { in handleComputeMonthStart()
706 UBool isLeapMonth = isLeapYear && in computeChineseFields() local
711 internalSet(UCAL_IS_LEAP_MONTH, isLeapMonth?1:0); in computeChineseFields()
Dsmpdtfmt.cpp1514 …int32_t isLeapMonth = (fSymbols->fLeapMonthPatterns != NULL && fSymbols->fLeapMonthPatternsCount >… in subFormat() local
1520 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternFormatNarrow]… in subFormat()
1523 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternStandaloneNar… in subFormat()
1529 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternFormatWide]):… in subFormat()
1533 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternStandaloneWid… in subFormat()
1539 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternFormatAbbrev]… in subFormat()
1543 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternStandaloneAbb… in subFormat()
1550 …(isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternNumeric]): NU… in subFormat()
2775 int32_t isLeapMonth = 0; in matchString() local
2792 isLeapMonth = 1; in matchString()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java4174 public int isLeapMonth; in TestMonthPatterns() field in DateFormatTest.ChineseCalTestDate
4181 isLeapMonth = il; in TestMonthPatterns()
4252 rootChineseCalendar.set( Calendar.IS_LEAP_MONTH, date.isLeapMonth ); in TestMonthPatterns()
4272 int isLeapMonth = rootChineseCalendar.get(Calendar.IS_LEAP_MONTH); in TestMonthPatterns() local
4274 …sult.length() || year != date.year || month != date.month || isLeapMonth != date.isLeapMonth || da… in TestMonthPatterns()
4276 …ring \"" + result + "\", expected " + date.year+"-"+date.month+"("+date.isLeapMonth+")-"+date.day + in TestMonthPatterns()
4277 … ", got pos " + ppos.getIndex() + " era("+era+")-"+year+"-"+month+"("+isLeapMonth+")-"+day ); in TestMonthPatterns()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4173 public int isLeapMonth; in TestMonthPatterns() field in DateFormatTest.ChineseCalTestDate
4180 isLeapMonth = il; in TestMonthPatterns()
4251 rootChineseCalendar.set( Calendar.IS_LEAP_MONTH, date.isLeapMonth ); in TestMonthPatterns()
4271 int isLeapMonth = rootChineseCalendar.get(Calendar.IS_LEAP_MONTH); in TestMonthPatterns() local
4273 …sult.length() || year != date.year || month != date.month || isLeapMonth != date.isLeapMonth || da… in TestMonthPatterns()
4275 …ring \"" + result + "\", expected " + date.year+"-"+date.month+"("+date.isLeapMonth+")-"+date.day + in TestMonthPatterns()
4276 … ", got pos " + ppos.getIndex() + " era("+era+")-"+year+"-"+month+"("+isLeapMonth+")-"+day ); in TestMonthPatterns()
/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp4043 int32_t isLeapMonth; member
4131 rootChineseCalendar->set(UCAL_IS_LEAP_MONTH, datePtr->isLeapMonth); in TestMonthPatterns()
4150 … int32_t isLeapMonth = rootChineseCalendar->get(UCAL_IS_LEAP_MONTH, status); in TestMonthPatterns() local
4152 …h() || year != datePtr->year || month != datePtr->month || isLeapMonth != datePtr->isLeapMonth || … in TestMonthPatterns()
4154 …ult + "\", expected " + datePtr->year +"-"+datePtr->month+"("+datePtr->isLeapMonth+")-"+datePtr->d… in TestMonthPatterns()
4155 … ppos.getIndex() + " " + year +"-"+month+"("+isLeapMonth+")-"+day); in TestMonthPatterns()