Lines Matching refs:amount
214 void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status) in add() argument
230 if (amount > 0) { in add()
232 month += amount; in add()
246 month += amount; in add()
266 Calendar::add(field, amount, status); in add()
274 void HebrewCalendar::add(EDateFields field, int32_t amount, UErrorCode& status) in add() argument
276 add((UCalendarDateFields)field, amount, status); in add()
311 void HebrewCalendar::roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) in roll() argument
324 int32_t newMonth = month + (amount % yearLength); in roll()
330 if (amount > 0 && month < ADAR_1 && newMonth >= ADAR_1) { in roll()
332 } else if (amount < 0 && month > ADAR_1 && newMonth <= ADAR_1) { in roll()
341 Calendar::roll(field, amount, status); in roll()
345 void HebrewCalendar::roll(EDateFields field, int32_t amount, UErrorCode& status) { in roll() argument
346 roll((UCalendarDateFields)field, amount, status); in roll()