#include <gettext_plural_form.h>
Public Types | |
using | NumT = unsigned long |
using | Ptr = std::shared_ptr<GettextPluralForm> |
Public Member Functions | |
size_t | size () const |
virtual NumT | operator() (const NumT) const =0 |
virtual | operator bool () const |
virtual | ~GettextPluralForm () |
Static Public Member Functions | |
static GettextPluralForm::Ptr | parse (const size_t nplurals, const std::wstring_view &str) |
static GettextPluralForm::Ptr | parseHeaderLine (const std::wstring_view &str) |
Protected Member Functions | |
GettextPluralForm (size_t nplurals) | |
Private Attributes | |
const size_t | nplurals |
using GettextPluralForm::NumT = unsigned long |
using GettextPluralForm::Ptr = std::shared_ptr<GettextPluralForm> |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
Implemented in BinaryOperation< F >, ConstValue, Identity, TernaryOperation, and UnaryOperation< F >.
|
static |
References nplurals, and parse_expr().
Referenced by parseHeaderLine().
|
static |
References nplurals, parse(), str_ends_with(), and str_starts_with().
Referenced by Translations::loadMoTranslation(), Translations::loadPoTranslation(), and TEST_CASE().
|
inline |
|
private |
Referenced by parse(), parseHeaderLine(), and size().