QtSpell 1.0.2
Spell checking for Qt text widgets
QtSpell::Codetable Class Reference

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.

Detailed Description

Class for translating locale identifiers into human readable strings.

Definition at line 33 of file Codetable.hpp.

Member Function Documentation

◆ instance()

Codetable * QtSpell::Codetable::instance ( )
static

Get codetable instance.

Returns
The codetable singleton

Definition at line 32 of file Codetable.cpp.

Referenced by QtSpell::Checker::decodeLanguageCode().

◆ lookup()

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").

Parameters
language_codeThe language locale identifier (i.e. "en_US")
language_nameThe language name (i.e. "English")
country_nameThe country name (i.e. "United States")

Definition at line 38 of file Codetable.cpp.

Referenced by QtSpell::Checker::decodeLanguageCode().


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