Lines Matching full:roll
1187 testCal->roll(UCAL_WEEK_OF_YEAR, amount,status);
1195 opTypeStr = UnicodeString("roll(WOY,", "");
1210 testCal->roll(UCAL_WEEK_OF_YEAR, -amount,status);
1327 const int32_t ROLL = 2;
1333 onset - ONE_HOUR, ROLL, 1, ONE_HOUR,
1334 onset, ROLL, -1, -ONE_HOUR,
1337 cease - ONE_HOUR, ROLL, 1, ONE_HOUR,
1338 cease, ROLL, -1, -ONE_HOUR,
1354 case ROLL:
1355 log(UnicodeString(" roll(HOUR,") + (amt<0?"":"+")+amt + ")= ");
1356 cal->roll(UCAL_HOUR, amt,status);
1370 if (fail) errln("Fail: roll/add misbehaves around DST onset/cease");
1532 * Bug states that ArrayIndexOutOfBoundsException is thrown by GregorianCalendar::roll()
1545 calendar->roll((UCalendarDateFields)-1, TRUE, status);
2028 enum Action { ADD=1, ROLL=2 };
2036 int8_t actionMask; // ADD or ROLL or both
2167 #define ADD_ROLL ADD|ROLL
2173 { UCAL_WEEK_OF_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2174 { UCAL_DATE, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2175 { UCAL_DATE, ROLL, PLUS, -6, -ONE_DAY, +14*ONE_DAY },
2176 { UCAL_DATE, ROLL, PLUS, -7, 0, +14*ONE_DAY },
2177 { UCAL_DATE, ROLL, PLUS, -7, +ONE_DAY, +15*ONE_DAY },
2178 { UCAL_DATE, ROLL, PLUS, +18, -ONE_DAY, -4*ONE_DAY },
2179 { UCAL_DAY_OF_YEAR, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2180 { UCAL_DAY_OF_WEEK, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2181 { UCAL_DAY_OF_WEEK_IN_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2189 // Uncomment these lines when add/roll supported on these fields.
2190 // { Calendar::YEAR_WOY, ADD|ROLL, 1, -ONE_DAY, +6*ONE_DAY },
2191 // { Calendar::DOW_LOCAL, ADD|ROLL, 2, -ONE_DAY, +1*ONE_DAY }
2197 for (Action action=ADD; action<=ROLL; action=(Action)(action+1)) {
2219 cal.roll(DATA[i].field, amount, status);
2223 (action==ADD?"add ":"roll ") + FIELD_NAME[DATA[i].field] +
2236 (action==ADD?") add ":") roll ") +
2244 (action==ADD?") add ":") roll ") +
2735 dataerrln("Couldn't create calendars for roll of HOUR: %s", u_errorName(status));
2743 c1->roll(Calendar::HOUR,(int32_t)3,status);
2744 c2->roll(UCAL_HOUR,(int32_t)3,status);
2747 errln("Error code when trying to roll");
2749 errln("roll(EDateField, int32_t) had different effect than roll(UCalendarField, int32_t)");
2753 c1->roll(Calendar::HOUR,(UBool)FALSE,status);
2754 c2->roll(UCAL_HOUR,(UBool)FALSE,status);
2757 errln("Error code when trying to roll(UBool)");
2759 errln("roll(EDateField, UBool) had different effect than roll(UCalendarField, UBool)");