MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetLocaleCurrency

Function GetLocaleCurrency

src/openrct2/platform/Platform.Linux.cpp:311–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 CurrencyType GetLocaleCurrency()
312 {
313 char* langstring = setlocale(LC_MONETARY, "");
314
315 if (langstring == nullptr)
316 {
317 return Platform::GetCurrencyValue(NULL);
318 }
319
320 struct lconv* lc = localeconv();
321
322 return Platform::GetCurrencyValue(lc->int_curr_symbol);
323 }
324
325 MeasurementFormat GetLocaleMeasurementFormat()
326 {

Callers 1

ReadGeneralFunction · 0.50

Calls 1

GetCurrencyValueFunction · 0.85

Tested by

no test coverage detected