• Home
  • Raw
  • Download

Lines Matching refs:ucalTest

2096         UCalendar *ucalTest = ucal_open(zoneGMT, -1, eraTestItemPtr->locale, UCAL_DEFAULT, &status);  in TestAddRollEra0AndEraBounds()  local
2101 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2102 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2103 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2104 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2105 ucal_add(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2106 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2116 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2117 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2118 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2119 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2120 ucal_roll(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2121 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2131 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2132 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2133 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2135 … ucal_roll(ucalTest, UCAL_YEAR, 1, &status); /* roll forward in time to era 0 boundary */ in TestAddRollEra0AndEraBounds()
2136 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2137 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2149 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds()
2150 ucal_roll(ucalTest, UCAL_YEAR, -2, &status); in TestAddRollEra0AndEraBounds()
2151 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2152 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2163 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2165 int32_t eraMin = ucal_getLimit(ucalTest, UCAL_ERA, UCAL_MINIMUM, &status); in TestAddRollEra0AndEraBounds()
2166 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds()
2173 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2174 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2175 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2176 eraMax = ucal_getLimit(ucalTest, UCAL_ERA, UCAL_MAXIMUM, &status); in TestAddRollEra0AndEraBounds()
2180 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2181 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2182 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2183 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2184 ucal_add(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2185 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2194 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2195 ucal_set(ucalTest, UCAL_YEAR, 2); in TestAddRollEra0AndEraBounds()
2196 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2197 yrBefore = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2198 ucal_roll(ucalTest, UCAL_YEAR, 1, &status); in TestAddRollEra0AndEraBounds()
2199 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2208 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2209 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2210 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2211 …yrMax = ucal_getLimit(ucalTest, UCAL_YEAR, UCAL_ACTUAL_MAXIMUM, &status); /* max year value for er… in TestAddRollEra0AndEraBounds()
2212 … ucal_roll(ucalTest, UCAL_YEAR, -1, &status); /* roll down which should pin or wrap to end */ in TestAddRollEra0AndEraBounds()
2213 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2214 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2229 … ucal_roll(ucalTest, UCAL_YEAR, 1, &status); /* now roll up which should wrap to beginning */ in TestAddRollEra0AndEraBounds()
2230 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2231 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2242 ucal_setMillis(ucalTest, ucal_getNow(), &status); in TestAddRollEra0AndEraBounds()
2243 eraNow = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2246 ucal_clear(ucalTest); in TestAddRollEra0AndEraBounds()
2247 ucal_set(ucalTest, UCAL_YEAR, 1); in TestAddRollEra0AndEraBounds()
2248 ucal_set(ucalTest, UCAL_ERA, eraNow); in TestAddRollEra0AndEraBounds()
2249 …yrMax = ucal_getLimit(ucalTest, UCAL_YEAR, UCAL_ACTUAL_MAXIMUM, &status); /* max year value for th… in TestAddRollEra0AndEraBounds()
2250 ucal_roll(ucalTest, UCAL_YEAR, -1, &status); in TestAddRollEra0AndEraBounds()
2251 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2252 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2267 … ucal_roll(ucalTest, UCAL_YEAR, 1, &status); /* now roll up which should wrap to beginning */ in TestAddRollEra0AndEraBounds()
2268 yrAfter = ucal_get(ucalTest, UCAL_YEAR, &status); in TestAddRollEra0AndEraBounds()
2269 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2281 ucal_close(ucalTest); in TestAddRollEra0AndEraBounds()