Differential D3185 Diff 14447 ps/trunk/source/third_party/tinygettext/include/tinygettext/language.hpp
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/third_party/tinygettext/include/tinygettext/language.hpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | public: | ||||
/** Compares two Languages, returns 0 on missmatch and a score | /** Compares two Languages, returns 0 on missmatch and a score | ||||
between 1 and 9 on match, the higher the score the better the | between 1 and 9 on match, the higher the score the better the | ||||
match */ | match */ | ||||
static int match(const Language& lhs, const Language& rhs); | static int match(const Language& lhs, const Language& rhs); | ||||
/** Create an undefined Language object */ | /** Create an undefined Language object */ | ||||
Language(); | Language(); | ||||
explicit operator bool() const { return language_spec != NULL; } | explicit operator bool() const { return language_spec != nullptr; } | ||||
/** Returns the language code (i.e. de, en, fr) */ | /** Returns the language code (i.e. de, en, fr) */ | ||||
std::string get_language() const; | std::string get_language() const; | ||||
/** Returns the country code (i.e. DE, AT, US) */ | /** Returns the country code (i.e. DE, AT, US) */ | ||||
std::string get_country() const; | std::string get_country() const; | ||||
/** Returns the modifier of the language (i.e. latn or Latn for | /** Returns the modifier of the language (i.e. latn or Latn for | ||||
Show All 34 Lines |
Wildfire Games · Phabricator