Home | History | Annotate | Download | only in intltest

Lines Matching refs:ADD

194     cal1->add(UCAL_DATE, 1, status) ;
195 failure(status, "cal1->add");
222 cal1->add(UCAL_MONTH,8,status);
223 failure(status, "->add(UCAL_MONTH,8)");
350 calendar->add(UCAL_SECOND,6, status);
362 errln(UnicodeString("Fail: Calendar::add misbehaves"));
507 cal->add(UCAL_HOUR_OF_DAY, 6,status);
548 //cal.add(field, amount); //<-- PROBLEM SEEN WITH field = DATE,MONTH
553 cal->add(UCAL_DATE, 1, status);
669 foo1->add(UCAL_DATE, + 1, status);
678 foo1->add(UCAL_DATE, - 1, status);
688 foo1->add(UCAL_DATE, + 1, status);
946 gc->add(UCAL_MONTH, 1,status);
1010 testCal->add(UCAL_DATE,1,status);
1068 testCal->add(UCAL_DATE, 1,status);
1172 TRUE,//ADD,
1187 testCal->add(UCAL_WEEK_OF_YEAR, amount,status);
1195 opTypeStr = UnicodeString("add(WOY,", "");
1210 testCal->add(UCAL_WEEK_OF_YEAR, -amount,status);
1328 const int32_t ADD = 1;
1333 onset - ONE_HOUR, ADD, 1, ONE_HOUR,
1334 onset, ADD, -1, -ONE_HOUR,
1337 cease - ONE_HOUR, ADD, 1, ONE_HOUR,
1338 cease, ADD, -1, -ONE_HOUR,
1352 case ADD:
1353 log(UnicodeString(" add (HOUR,") + (amt<0?"":"+")+amt + ")= ");
1354 cal->add(UCAL_HOUR, amt,status);
1372 if (fail) errln("Fail: roll/add misbehaves around DST onset/cease");
1493 cal->add(UCAL_DATE, 1,status);
1495 errln("add(DATE,1) failed");
1811 calendar->add(UCAL_MONTH, 12, status);
1813 errln("Couldn't add(MONTH, 12)");
1821 calendar->add(UCAL_YEAR, 1, status);
1823 errln("Couldn't add(YEAR, 1)");
2017 cal.add(UCAL_DATE, -8, status);
2019 cal.add(UCAL_DATE, 1, status);
2030 enum Action { ADD=1, ROLL=2 };
2038 int8_t actionMask; // ADD or ROLL or both
2169 #define ADD_ROLL ADD|ROLL
2175 { UCAL_WEEK_OF_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2176 { UCAL_DATE, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2181 { UCAL_DAY_OF_YEAR, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2182 { UCAL_DAY_OF_WEEK, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2183 { UCAL_DAY_OF_WEEK_IN_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2184 { UCAL_AM_PM, ADD, PLUS|MINUS, 4, -12*ONE_HOUR, +36*ONE_HOUR },
2185 { UCAL_HOUR, ADD, PLUS|MINUS, 48, -12*ONE_HOUR, +36*ONE_HOUR },
2186 { UCAL_HOUR_OF_DAY, ADD, PLUS|MINUS, 48, -12*ONE_HOUR, +36*ONE_HOUR },
2187 { UCAL_MINUTE, ADD, PLUS|MINUS, 48*60, -12*ONE_HOUR, +36*ONE_HOUR },
2188 { UCAL_SECOND, ADD, PLUS|MINUS, 48*60*60, -12*ONE_HOUR, +36*ONE_HOUR },
2189 { UCAL_MILLISECOND, ADD, PLUS|MINUS, 48*ONE_HOUR, -12*ONE_HOUR, +36*ONE_HOUR },
2191 // Uncomment these lines when add/roll supported on these fields.
2192 // { Calendar::YEAR_WOY, ADD|ROLL, 1, -ONE_DAY, +6*ONE_DAY },
2193 // { Calendar::DOW_LOCAL, ADD|ROLL, 2, -ONE_DAY, +1*ONE_DAY }
2199 for (Action action=ADD; action<=ROLL; action=(Action)(action+1)) {
2218 if (action == ADD) {
2219 cal.add(DATA[i].field, amount, status);
2225 (action==ADD?"add ":"roll ") + FIELD_NAME[DATA[i].field] +
2238 (action==ADD?") add ":") roll ") +
2246 (action==ADD?") add ":") roll ") +
2337 cal.add(UCAL_YEAR, dy, ec);
2338 cal.add(UCAL_MONTH, dm, ec);
2339 cal.add(UCAL_DATE, dd, ec);
2340 if (failure(ec, "add"))
2379 cal->add(UCAL_MONTH, 36, ec);
2453 cal->add( testItemPtr->fieldToChange, testItemPtr->fieldDelta, status );
2455 errln((UnicodeString)"FAIL: Calendar::add, locale " + testLocalePtr->locale + ", field/delta " +
2464 errln((UnicodeString)"ERROR: Calendar::add, locale " + testLocalePtr->locale + ", field/delta " +
2592 cal.add(UCAL_DATE, 1, ec); // Force recalc
2593 cal.add(UCAL_DATE, -1, ec);
2609 cal.add(UCAL_DATE, 1, ec); // Force recalc
2610 cal.add(UCAL_DATE, -1, ec);
2686 cal->add(UCAL_DATE, 1, ec);
2773 errln("Couldn't create calendars for add of HOUR");
2781 c1->add(Calendar::HOUR,(int32_t)1,status);
2784 errln("Error code when trying to add Calendar::HOUR - %s", u_errorName(status));
2787 c2->add(UCAL_HOUR,(int32_t)1,status);
2790 errln("Error code when trying to add - UCAL_HOUR %s", u_errorName(status));
2792 errln("add(EDateField) had different effect than add(UCalendarField)");
2804 errln("Couldn't create calendars for add of YEAR");
2812 c1->add(Calendar::YEAR,(int32_t)9,status);
2813 c2->add(UCAL_YEAR,(int32_t)9,status);
2816 errln("Error code when trying to add YEARs");
2818 errln("add(EDateField YEAR) had different effect than add(UCalendarField YEAR)");
2849 cal->add(UCAL_YEAR, 1, status);
2853 dataerrln((UnicodeString)"FAIL: wrong date after add: expected=" + expected + " returned=" + t);
2927 // Add 1 day
2928 cal.add(UCAL_DATE, 1, status);
2929 failure(status, "add 1 day");
2935 assertEquals("Add 1 day", UnicodeString("2011-12-31T00:00:00+14:00"), dstr);
2938 cal.add(UCAL_DATE, -1, status);