fix cmake
[lyx.git] / src / WordLangTuple.h
blobb1a31bd90d27509345d2168604cd7239f49f1857
1 // -*- C++ -*-
2 /**
3 * \file WordLangTuple.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author John Levon
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"
18 namespace lyx {
21 /**
22 * A word and its given language code ("en_US").
23 * This is used for spellchecking.
25 class WordLangTuple {
26 public:
27 WordLangTuple() {}
29 WordLangTuple(docstring const & w, std::string const & c)
30 : word_(w), code_(c)
33 /// return the word
34 docstring const & word() const {
35 return word_;
38 /// return its language code
39 std::string const & lang_code() const {
40 return code_;
43 private:
44 /// the word
45 docstring word_;
46 /// language code of word
47 std::string code_;
51 } // namespace lyx
53 #endif // WORD_LANG_TUPLE_H