| 228 | } |
| 229 | |
| 230 | auto cldGetWeekForLine(const year_month& ym, const weekday& firstdow, const unsigned line) |
| 231 | -> const year_month_weekday { |
| 232 | const unsigned idx = line - 2; |
| 233 | const auto indexed_first_day_of_week = |
| 234 | weekday{ym / 1} == firstdow ? firstdow[idx + 1] : firstdow[idx]; |
| 235 | |
| 236 | return ym / indexed_first_day_of_week; |
| 237 | } |
| 238 | |
| 239 | auto getCalendarLine(const year_month_day& currDate, const year_month ym, const unsigned line, |
| 240 | const weekday& firstdow, const std::locale* const m_locale_) -> std::string { |
no outgoing calls
no test coverage detected