QtSpell  0.8.2
Spell checking for Qt text widgets
Public Member Functions | Static Public Member Functions
QtSpell::Codetable Class Reference

Class for translating locale identifiers into human readable strings. More...

#include <Codetable.hpp>

List of all members.

Public Member Functions

void lookup (const QString &language_code, QString &language_name, QString &country_name) 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

Get codetable instance.

Returns:
The codetable singleton

Definition at line 31 of file Codetable.cpp.

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

void QtSpell::Codetable::lookup ( const QString &  language_code,
QString &  language_name,
QString &  country_name 
) 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 37 of file Codetable.cpp.

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


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