MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / TryRemoveLanguageSpecifiers

Method TryRemoveLanguageSpecifiers

Sources/nCine/I18n.cpp:735–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733 }
734
735 StringView I18n::TryRemoveLanguageSpecifiers(StringView langId)
736 {
737 StringView suffix = langId.findAny("-_.@"_s);
738 return (suffix != nullptr ? langId.prefix(suffix.begin()) : langId);
739 }
740
741 const I18n::ExpressionToken* I18n::ExtractPluralExpression(StringView nullEntry)
742 {

Callers

nothing calls this directly

Calls 3

findAnyMethod · 0.45
prefixMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected