Home | History | Annotate | Download | only in i18n

Lines Matching refs:era

282  * The current era, for reference. 
326 int32_t era = internalGetEra();
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();
346 if(eyear == kEraInfo[era].year) {
347 if(month == (kEraInfo[era].month-1)) {
348 return kEraInfo[era].day;
387 // occur in the current era and won't require the binary search.
388 // Note that if the year is == the current era year, then we use
443 fprintf(stderr, " low[era]=%d,.. %d\n", low, year);
445 // Now we've found the last era that starts before this date, so
446 // adjust the year to count from the start of that era. Note that
447 // all dates before the first era will fall into the first era by
453 fprintf(stderr, " Set ERA=%d, year=%d\n", low, year-kEraInfo[low].year+1);
506 int32_t era = get(UCAL_ERA, status);
510 if (era == kCurrentEra) {
514 int32_t nextEraYear = kEraInfo[era + 1].year;
515 int32_t nextEraMonth = kEraInfo[era + 1].month;
516 int32_t nextEraDate = kEraInfo[era + 1].day;
518 int32_t maxYear = nextEraYear - kEraInfo[era].year + 1; // 1-base
520 // Subtract 1, because the next era starts at Jan 1