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

Function GetLocale

libs/platform/locale_std.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22bool GetLocale(std::string const localeName, Locale & result)
23{
24 try
25 {
26 std::locale loc(localeName);
27
28 result = StdLocale2Locale(loc);
29
30 return true;
31 }
32 catch (...)
33 {
34 return false;
35 }
36}
37
38} // namespace platform

Callers 2

UNIT_TESTFunction · 0.50
GetTurnNotificationMethod · 0.50

Calls 1

StdLocale2LocaleFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.40