MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetDecimalSeparator

Function GetDecimalSeparator

src/strings.cpp:469–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469static std::string_view GetDecimalSeparator()
470{
471 std::string_view decimal_separator = _settings_game.locale.digit_decimal_separator;
472 if (decimal_separator.empty()) decimal_separator = _langpack.langpack->digit_decimal_separator;
473 return decimal_separator;
474}
475
476/**
477 * Format a number into a string.

Callers 2

FormatBytesFunction · 0.85
FormatStringFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected