dp_intl 1.0.0
Gettext-compatible internationalization library for C++
dp::intl::GermanicPluralSpec Struct Reference

A plural specification for the Germanic family of languages. More...

#include <dp_intl/translator_plural_spec.h>

Public Member Functions

CountT operator() (CountT n) const

Static Public Attributes

static constexpr CountT numPlurals {2}

Detailed Description

A plural specification for the Germanic family of languages.

This specification is suitable for English, Spanish, German and other Germanic languages that use two plural forms: one for 1 (the singular form) and another for all other numbers.

Member Function Documentation

◆ operator()()

CountT dp::intl::GermanicPluralSpec::operator() ( CountT n) const
inline

Member Data Documentation

◆ numPlurals

CountT dp::intl::GermanicPluralSpec::numPlurals {2}
staticconstexpr

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