19 #ifndef OPENXCOM_LANGUAGEPLURALITY_H
20 #define OPENXCOM_LANGUAGEPLURALITY_H
42 virtual const char *
getSuffix(
unsigned n)
const = 0;
53 typedef LanguagePlurality *(*PFCreate)();
54 static std::map<std::string, PFCreate> s_factoryFunctions;
This class is the interface used to find plural forms for the different languages.
Definition: LanguagePlurality.h:32
static LanguagePlurality * create(const std::string &language)
Create a concrete instance for a given language.
Definition: LanguagePlurality.cpp:207
virtual ~LanguagePlurality()
Allow proper destruction through base pointer.
Definition: LanguagePlurality.h:36
virtual const char * getSuffix(unsigned n) const =0
Get dictionary key suffix for value of n.