MCPcopy Create free account
hub / github.com/Alexays/Waybar / cldGetWeekForLine

Function cldGetWeekForLine

src/modules/clock.cpp:230–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230auto 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
239auto 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 {

Callers 2

getCalendarLineFunction · 0.85
get_calendarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected