Lines Matching defs:ROLL
1141 testCal->roll(UCAL_WEEK_OF_YEAR, amount,status);
1149 opTypeStr = UnicodeString("roll(WOY,", "");
1164 testCal->roll(UCAL_WEEK_OF_YEAR, -amount,status);
1281 const int32_t ROLL = 2;
1287 onset - ONE_HOUR, ROLL, 1, ONE_HOUR,
1288 onset, ROLL, -1, -ONE_HOUR,
1291 cease - ONE_HOUR, ROLL, 1, ONE_HOUR,
1292 cease, ROLL, -1, -ONE_HOUR,
1308 case ROLL:
1309 log(UnicodeString(" roll(HOUR,") + (amt<0?"":"+")+amt + ")= ");
1310 cal->roll(UCAL_HOUR, amt,status);
1324 if (fail) errln("Fail: roll/add misbehaves around DST onset/cease");
1478 * Bug states that ArrayIndexOutOfBoundsException is thrown by GregorianCalendar::roll()
1491 calendar->roll((UCalendarDateFields)-1, TRUE, status);
1974 enum Action { ADD=1, ROLL=2 };
1982 int8_t actionMask; // ADD or ROLL or both
2113 #define ADD_ROLL ADD|ROLL
2119 { UCAL_WEEK_OF_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2120 { UCAL_DATE, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2121 { UCAL_DATE, ROLL, PLUS, -6, -ONE_DAY, +14*ONE_DAY },
2122 { UCAL_DATE, ROLL, PLUS, -7, 0, +14*ONE_DAY },
2123 { UCAL_DATE, ROLL, PLUS, -7, +ONE_DAY, +15*ONE_DAY },
2124 { UCAL_DATE, ROLL, PLUS, +18, -ONE_DAY, -4*ONE_DAY },
2125 { UCAL_DAY_OF_YEAR, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2126 { UCAL_DAY_OF_WEEK, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2127 { UCAL_DAY_OF_WEEK_IN_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2135 // Uncomment these lines when add/roll supported on these fields.
2136 // { Calendar::YEAR_WOY, ADD|ROLL, 1, -ONE_DAY, +6*ONE_DAY },
2137 // { Calendar::DOW_LOCAL, ADD|ROLL, 2, -ONE_DAY, +1*ONE_DAY }
2143 for (Action action=ADD; action<=ROLL; action=(Action)(action+1)) {
2165 cal.roll(DATA[i].field, amount, status);
2169 (action==ADD?"add ":"roll ") + FIELD_NAME[DATA[i].field] +
2182 (action==ADD?") add ":") roll ") +
2190 (action==ADD?") add ":") roll ") +
2679 dataerrln("Couldn't create calendars for roll of HOUR: %s", u_errorName(status));
2687 c1->roll(Calendar::HOUR,(int32_t)3,status);
2688 c2->roll(UCAL_HOUR,(int32_t)3,status);
2691 errln("Error code when trying to roll");
2693 errln("roll(EDateField, int32_t) had different effect than roll(UCalendarField, int32_t)");
2697 c1->roll(Calendar::HOUR,(UBool)FALSE,status);
2698 c2->roll(UCAL_HOUR,(UBool)FALSE,status);
2701 errln("Error code when trying to roll(UBool)");
2703 errln("roll(EDateField, UBool) had different effect than roll(UCalendarField, UBool)");