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

Function GetUnitsString

libs/i18n/duration.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106std::string GetUnitsString(Duration::Units unit)
107{
108 switch (unit)
109 {
110 case Duration::Units::Minutes: return localisation::TranslatedInterfaceText("minute");
111 case Duration::Units::Hours: return localisation::TranslatedInterfaceText("hour");
112 case Duration::Units::Days: return localisation::TranslatedInterfaceText("day");
113 default: UNREACHABLE();
114 }
115}
116} // namespace platform

Callers 3

GetStringFunction · 0.85
duration_tests.cppFile · 0.85
ToStringMethod · 0.85

Calls 1

TranslatedInterfaceTextFunction · 0.85

Tested by

no test coverage detected