QtSpell 1.0.2
Spell checking for Qt text widgets
|
Class for translating locale identifiers into human readable strings. More...
#include <Codetable.hpp>
Public Member Functions | |
void | lookup (const QString &language_code, QString &language_name, QString &country_name, QString &extra) const |
Looks up the language and country name for the specified language code. If no matching entries are found, language_name and country_name will simply contain the parts of the language code (i.e. "en" and "US"). |
Static Public Member Functions | |
static Codetable * | instance () |
Get codetable instance. |
Class for translating locale identifiers into human readable strings.
Definition at line 33 of file Codetable.hpp.
|
static |
Get codetable instance.
Definition at line 32 of file Codetable.cpp.
Referenced by QtSpell::Checker::decodeLanguageCode().
void QtSpell::Codetable::lookup | ( | const QString & | language_code, |
QString & | language_name, | ||
QString & | country_name, | ||
QString & | extra ) const |
Looks up the language and country name for the specified language code. If no matching entries are found, language_name and country_name will simply contain the parts of the language code (i.e. "en" and "US").
language_code | The language locale identifier (i.e. "en_US") |
language_name | The language name (i.e. "English") |
country_name | The country name (i.e. "United States") |
Definition at line 38 of file Codetable.cpp.
Referenced by QtSpell::Checker::decodeLanguageCode().