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

Function ordinalName

src/core/NetRecurrence.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36QString ordinalName(int ordinal)
37{
38 switch (ordinal) {
39 case 1: return "first";
40 case 2: return "second";
41 case 3: return "third";
42 case 4: return "fourth";
43 case 5: return "fifth";
44 case -1: return "last";
45 default: return {};
46 }
47}
48
49// Date of the nth `weekday` (Qt 1..7) within `year`/`month`. ordinal>0 counts
50// from the start; ordinal==-1 is the last such weekday. Returns a null QDate if

Callers 1

describeRuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected