/external/chromium_org/third_party/icu/source/test/intltest/ |
H A D | calcasts.h | 29 int32_t era; member in struct:CalendarCaseTest::TestCase 40 * @param cases array of items to test. Terminate with a "-1" for era.
|
H A D | incaltst.cpp | 147 * that behaves like a Gregorian but has different year/era mappings. 150 * { era, year, gregorianYear, month, dayOfMonth, ... ... , -1 } 171 int32_t era = data[i++]; local 182 cal.set(UCAL_ERA, era); 190 logln(UnicodeString("OK: ") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth + 193 errln(UnicodeString("Fail: (fields to millis)") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth + 206 if (y == year && e == era) { 214 ", expected " + era + ":" + year + "/" + (month+1) + "/" + 267 0, // B. era [928479600000] 273 0, // B. era [ [all...] |
H A D | tzregts.cpp | 469 int32_t era = cal->get(UCAL_ERA, status); local 481 int32_t offset = tz->getOffset((uint8_t)era, year, month, day, (uint8_t)dayOfWeek, millis, status);
|
H A D | tzrulets.cpp | 274 int32_t era, year, month, dayOfMonth, dayOfWeek, millisInDay; local 295 era = cal->get(UCAL_ERA, status); 305 offset = rbtz1->getOffset(era, year, month, dayOfMonth, dayOfWeek, millisInDay, status); 334 era = cal->get(UCAL_ERA, status); 344 offset = rbtz1->getOffset(era, year, month, dayOfMonth, dayOfWeek, millisInDay, status); 1627 // getOffset(era, year, month, day, dayOfWeek, milliseconds, ec) 1640 // getOffset(era, year, month, day, dayOfWeek, milliseconds, monthLength, ec)
|
/external/icu/icu4c/source/test/intltest/ |
H A D | calcasts.h | 29 int32_t era; member in struct:CalendarCaseTest::TestCase 40 * @param cases array of items to test. Terminate with a "-1" for era.
|
H A D | incaltst.cpp | 144 * that behaves like a Gregorian but has different year/era mappings. 147 * { era, year, gregorianYear, month, dayOfMonth, ... ... , -1 } 168 int32_t era = data[i++]; local 179 cal.set(UCAL_ERA, era); 187 logln(UnicodeString("OK: ") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth + 190 errln(UnicodeString("Fail: (fields to millis)") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth + 203 if (y == year && e == era) { 211 ", expected " + era + ":" + year + "/" + (month+1) + "/" + 264 0, // B. era [928479600000] 270 0, // B. era [ [all...] |
H A D | tzregts.cpp | 469 int32_t era = cal->get(UCAL_ERA, status); local 481 int32_t offset = tz->getOffset((uint8_t)era, year, month, day, (uint8_t)dayOfWeek, millis, status);
|
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | coptccal.cpp | 64 // The year defaults to the epoch start, the era to CE 65 int32_t era = internalGet(UCAL_ERA, CE); local 66 if (era == BCE) { 78 int32_t eyear, month, day, era, year; local 82 era = BCE; 85 era = CE; 90 internalSet(UCAL_ERA, era);
|
H A D | ethpccal.cpp | 90 // The year defaults to the epoch start, the era to AMETE_MIHRET 91 int32_t era = internalGet(UCAL_ERA, AMETE_MIHRET); local 92 if (era == AMETE_MIHRET) { 104 int32_t eyear, month, day, era, year; local 108 era = AMETE_ALEM; 112 era = AMETE_MIHRET; 115 era = AMETE_ALEM; 121 internalSet(UCAL_ERA, era); 132 return 0; // Only one era in this mode, era i [all...] |
H A D | taiwncal.cpp | 74 int32_t era = internalGet(UCAL_ERA, MINGUO); local 75 if(era == MINGUO) { 77 } else if(era == BEFORE_MINGUO) { 115 int32_t era = internalGet(UCAL_ERA); 118 if(era == GregorianCalendar::BC) { 120 era = TaiwanCalendar::MINGUO; 121 } else if(era == GregorianCalendar::AD) { 122 era = TaiwanCalendar::MINGUO; 129 internalSet(UCAL_ERA, era);
|
H A D | japancal.cpp | 282 * The current era, for reference. 326 int32_t era = internalGetEra(); local 327 // TODO do we assume we can trust 'era'? What if it is denormalized? 331 // Find out if we are at the edge of an era 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 335 return kEraInfo[era].month-1; 343 int32_t era = internalGetEra(); local 346 if(eyear == kEraInfo[era].year) { 347 if(month == (kEraInfo[era] 506 int32_t era = get(UCAL_ERA, status); local [all...] |
H A D | vzone.cpp | 117 vzone_getOffset(VZone* zone, uint8_t era, int32_t year, int32_t month, int32_t day, argument 119 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 123 vzone_getOffset2(VZone* zone, uint8_t era, int32_t year, int32_t month, int32_t day, argument 126 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
|
H A D | simpletz.cpp | 393 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 408 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status); 412 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 432 return getOffset(era, year, month, day, dayOfWeek, millis, 439 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 446 if ((era != GregorianCalendar::AD && era != GregorianCalendar::BC) 466 if(!useDaylight || year < startYear || era != GregorianCalendar::AD)
|
H A D | gregocal.cpp | 439 int32_t era = AD; local 441 era = BC; 444 internalSet(UCAL_ERA, era); 1131 * time, or era changes in response to setting the year. We don't 1132 * check for month, date, and time here because the year and era are 1147 int32_t era = cal->get(UCAL_ERA, status); local 1158 if (cal->get(UCAL_YEAR, status) == y && cal->get(UCAL_ERA, status) == era) { 1198 // The year defaults to the epoch start, the era to AD 1199 int32_t era = internalGet(UCAL_ERA, AD); local 1200 if (era 1227 int32_t era = internalGet(UCAL_ERA, AD); local [all...] |
H A D | olsontz.cpp | 329 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, argument 338 return getOffset(era, year, month, dom, dow, millis, 347 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, argument 355 if ((era != GregorianCalendar::AD && era != GregorianCalendar::BC) 370 if (era == GregorianCalendar::BC) { 375 return finalZone->getOffset(era, year, month, dom, dow,
|
H A D | rbtz.cpp | 363 RuleBasedTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 372 return getOffset(era, year, month, day, dayOfWeek, millis, 378 RuleBasedTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 385 if (era == GregorianCalendar::BC) {
|
/external/icu/icu4c/source/i18n/ |
H A D | coptccal.cpp | 64 // The year defaults to the epoch start, the era to CE 65 int32_t era = internalGet(UCAL_ERA, CE); local 66 if (era == BCE) { 78 int32_t eyear, month, day, era, year; local 82 era = BCE; 85 era = CE; 90 internalSet(UCAL_ERA, era);
|
H A D | ethpccal.cpp | 90 // The year defaults to the epoch start, the era to AMETE_MIHRET 91 int32_t era = internalGet(UCAL_ERA, AMETE_MIHRET); local 92 if (era == AMETE_MIHRET) { 104 int32_t eyear, month, day, era, year; local 108 era = AMETE_ALEM; 112 era = AMETE_MIHRET; 115 era = AMETE_ALEM; 121 internalSet(UCAL_ERA, era); 132 return 0; // Only one era in this mode, era i [all...] |
H A D | taiwncal.cpp | 74 int32_t era = internalGet(UCAL_ERA, MINGUO); local 75 if(era == MINGUO) { 77 } else if(era == BEFORE_MINGUO) { 115 int32_t era = internalGet(UCAL_ERA); 118 if(era == GregorianCalendar::BC) { 120 era = TaiwanCalendar::MINGUO; 121 } else if(era == GregorianCalendar::AD) { 122 era = TaiwanCalendar::MINGUO; 129 internalSet(UCAL_ERA, era);
|
H A D | japancal.cpp | 282 * The current era, for reference. 326 int32_t era = internalGetEra(); local 327 // TODO do we assume we can trust 'era'? What if it is denormalized? 331 // Find out if we are at the edge of an era 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 335 return kEraInfo[era].month-1; 343 int32_t era = internalGetEra(); local 346 if(eyear == kEraInfo[era].year) { 347 if(month == (kEraInfo[era] 506 int32_t era = get(UCAL_ERA, status); local [all...] |
H A D | vzone.cpp | 117 vzone_getOffset(VZone* zone, uint8_t era, int32_t year, int32_t month, int32_t day, argument 119 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 123 vzone_getOffset2(VZone* zone, uint8_t era, int32_t year, int32_t month, int32_t day, argument 126 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
|
H A D | simpletz.cpp | 393 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 408 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status); 412 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 432 return getOffset(era, year, month, day, dayOfWeek, millis, 439 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 446 if ((era != GregorianCalendar::AD && era != GregorianCalendar::BC) 466 if(!useDaylight || year < startYear || era != GregorianCalendar::AD)
|
H A D | gregocal.cpp | 439 int32_t era = AD; local 441 era = BC; 444 internalSet(UCAL_ERA, era); 1131 * time, or era changes in response to setting the year. We don't 1132 * check for month, date, and time here because the year and era are 1147 int32_t era = cal->get(UCAL_ERA, status); local 1158 if (cal->get(UCAL_YEAR, status) == y && cal->get(UCAL_ERA, status) == era) { 1198 // The year defaults to the epoch start, the era to AD 1199 int32_t era = internalGet(UCAL_ERA, AD); local 1200 if (era 1227 int32_t era = internalGet(UCAL_ERA, AD); local [all...] |
H A D | olsontz.cpp | 329 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, argument 338 return getOffset(era, year, month, dom, dow, millis, 347 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, argument 355 if ((era != GregorianCalendar::AD && era != GregorianCalendar::BC) 370 if (era == GregorianCalendar::BC) { 375 return finalZone->getOffset(era, year, month, dom, dow,
|
H A D | rbtz.cpp | 363 RuleBasedTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 372 return getOffset(era, year, month, day, dayOfWeek, millis, 378 RuleBasedTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, argument 385 if (era == GregorianCalendar::BC) {
|