3 * \file WordLangTuple.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef WORD_LANG_TUPLE_H
13 #define WORD_LANG_TUPLE_H
15 #include "support/docstring.h"
22 * A word and its given language code ("en_US")
23 * plus a variety if needed.
24 * This is used for spellchecking.
30 WordLangTuple(docstring const & w, std::string const & c,
31 std::string const & v = std::string())
32 : word_(w), code_(c), variety_(v)
36 docstring const & word() const {
40 /// return its language code
41 std::string const & lang_code() const {
45 /// return the language variety
46 std::string const & lang_variety() const {
53 /// language code of word
55 /// language variety of word
62 #endif // WORD_LANG_TUPLE_H