MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / weekdayFromCode

Function weekdayFromCode

src/core/NetRecurrence.cpp:20–25  ·  view source on GitHub ↗

Map an RRULE two-letter weekday code to Qt's day-of-week (1=Mon..7=Sun).

Source from the content-addressed store, hash-verified

18
19// Map an RRULE two-letter weekday code to Qt's day-of-week (1=Mon..7=Sun).
20int weekdayFromCode(const QString& code)
21{
22 static const QStringList kCodes = {"MO", "TU", "WE", "TH", "FR", "SA", "SU"};
23 const int idx = kCodes.indexOf(code.trimmed().toUpper());
24 return idx < 0 ? 0 : idx + 1;
25}
26
27QString weekdayLongName(int qtDow)
28{

Callers 1

parseRuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected