MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetPluralString

Method GetPluralString

Source/Engine/Localization/Localization.cpp:392–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392String Localization::GetPluralString(const String& id, int32 n, const String& fallback)
393{
394 CHECK_RETURN(n >= 1, String::Format(fallback.GetText(), n));
395 const String& format = Instance.Get(id, n - 1, fallback);
396 return String::Format(format.GetText(), n);
397}
398
399Array<String> Localization::GetLocales()
400{

Callers 1

ToStringPluralMethod · 0.45

Calls 3

FormatFunction · 0.50
GetTextMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected