]> git.lyx.org Git - features.git/blob - src/WordLangTuple.h
the FuncRequest changes
[features.git] / src / WordLangTuple.h
1 /**
2  * \file WordLangTuple.h
3  * Copyright 2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <levon@movementarian.org>
7  */
8
9 #ifndef WORD_LANG_TUPLE_H
10 #define WORD_LANG_TUPLE_H
11  
12 #include <config.h>
13 #include "LString.h" 
14  
15 /**
16  * A word and its given language code ("en_US").
17  * This is used for spellchecking.
18  */
19 class WordLangTuple {
20 public:
21         WordLangTuple() {}
22  
23         WordLangTuple(string const & w, string const & c)
24                 : word_(w), code_(c)
25         {}
26  
27         /// return the word
28         string const word() const {
29                 return word_;
30         }
31
32         /// return its language code
33         string const lang_code() const {
34                 return code_;
35         }
36
37 private:
38         /// the word
39         string word_;
40         /// language code of word
41         string code_;
42 };
43  
44 #endif // WORD_LANG_TUPLE_H