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

Function StdLocale2Locale

libs/platform/locale_std.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace platform
6{
7Locale StdLocale2Locale(std::locale loc)
8{
9 return {"", "", std::use_facet<std::moneypunct<char, true>>(loc).curr_symbol(),
10 std::string(1, std::use_facet<std::numpunct<char>>(loc).decimal_point()),
11 std::string(1, std::use_facet<std::numpunct<char>>(loc).thousands_sep())};
12}
13
14Locale GetCurrentLocale()
15{

Callers 2

GetCurrentLocaleFunction · 0.85
GetLocaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected