Lines Matching defs:startHour
195 for (int32_t startHour = 0; startHour <= 24; ++startHour) {
197 if (cutoffs[startHour] & (1 << CUTOFF_TYPE_AT)) {
198 if (startHour == 0 && period == DayPeriodRules::DAYPERIOD_MIDNIGHT) {
200 } else if (startHour == 12 && period == DayPeriodRules::DAYPERIOD_NOON) {
209 if (cutoffs[startHour] & (1 << CUTOFF_TYPE_FROM) ||
210 cutoffs[startHour] & (1 << CUTOFF_TYPE_AFTER)) {
211 for (int32_t hour = startHour + 1;; ++hour) {
212 if (hour == startHour) {
219 rule.add(startHour, hour, period);
394 int32_t startHour = getStartHourForDayPeriod(dayPeriod, errorCode);
396 // Can't obtain startHour or endHour; bail out.
399 double midPoint = (startHour + endHour) / 2.0;
401 if (startHour > endHour) {
498 void DayPeriodRules::add(int32_t startHour, int32_t limitHour, DayPeriod period) {
499 for (int32_t i = startHour; i != limitHour; ++i) {