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

Method GetPluralString

Source/Engine/Localization/LocalizedStringTable.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50String LocalizedStringTable::GetPluralString(const String& id, int32 n) const
51{
52 StringView result;
53 const auto messages = Entries.TryGet(id);
54 if (messages && messages->Count() > n)
55 result = messages->At(n);
56 if (result.IsEmpty() && FallbackTable)
57 result = FallbackTable->GetPluralString(id, n);
58 return String::Format(result.GetText(), n);
59}
60
61Asset::LoadResult LocalizedStringTable::loadAsset()
62{

Callers

nothing calls this directly

Calls 5

FormatFunction · 0.50
TryGetMethod · 0.45
CountMethod · 0.45
IsEmptyMethod · 0.45
GetTextMethod · 0.45

Tested by

no test coverage detected