OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenXcom::ZeroOneSingular Class Reference

Plurality rules where 0 is also singular. More...

Inheritance diagram for OpenXcom::ZeroOneSingular:
OpenXcom::LanguagePlurality

Public Member Functions

virtual const char * getSuffix (unsigned n) const
 Get dictionary key suffix for value of n. More...
 
- Public Member Functions inherited from OpenXcom::LanguagePlurality
virtual ~LanguagePlurality ()
 Allow proper destruction through base pointer.
 

Additional Inherited Members

- Static Public Member Functions inherited from OpenXcom::LanguagePlurality
static LanguagePluralitycreate (const std::string &language)
 Create a concrete instance for a given language. More...
 

Detailed Description

Plurality rules where 0 is also singular.

Provide rules for languages where 0 and 1 are singular and everything else is plural.

Note
one = 0-1; other = ...

Member Function Documentation

const char * OpenXcom::ZeroOneSingular::getSuffix ( unsigned  n) const
virtual

Get dictionary key suffix for value of n.

Parameters
nThe number controlling the plurality.
Returns
Pointer to the zero-terminated suffix string.

Implements OpenXcom::LanguagePlurality.


The documentation for this class was generated from the following file: