MCPcopy Create free account
hub / github.com/comaps/comaps / MakeWeekdays

Function MakeWeekdays

libs/editor/ui2oh.cpp:134–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134osmoh::Weekdays MakeWeekdays(editor::ui::TimeTable const & tt)
135{
136 osmoh::Weekdays wds;
137
138 for (auto const & daysInterval : SplitIntoIntervals(tt.GetOpeningDays()))
139 {
140 osmoh::WeekdayRange wdr;
141 wdr.SetStart(*begin(daysInterval));
142 if (daysInterval.size() > 1)
143 wdr.SetEnd(*(prev(end(daysInterval))));
144
145 wds.AddWeekdayRange(wdr);
146 }
147
148 return wds;
149}
150
151osmoh::TTimespans MakeTimespans(editor::ui::TimeTable const & tt)
152{

Callers 1

MakeOpeningHoursFunction · 0.85

Calls 7

SplitIntoIntervalsFunction · 0.85
AddWeekdayRangeMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
SetStartMethod · 0.45
sizeMethod · 0.45
SetEndMethod · 0.45

Tested by

no test coverage detected