3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
13 #ifdef HAVE_LIBAIKSAURUS
15 Thesaurus::ThesaurusEntry::ThesaurusEntry(string const & ent, char part)
16 : entry(ent), pos(Thesaurus::NONE)
18 if (part & AikSaurus::Unknown)
20 if (part & AikSaurus::Other)
22 if (part & AikSaurus::Noun)
24 if (part & AikSaurus::Verb)
26 if (part & AikSaurus::Adjective)
28 if (part & AikSaurus::Adverb)
33 Thesaurus::Thesaurus()
39 Thesaurus::~Thesaurus()
45 std::vector<Thesaurus::ThesaurusEntry> Thesaurus::lookup(string const & text)
47 std::vector<ThesaurusEntry> entries;
49 if (!aik_->find(text.c_str()))
54 string ret = aik_->next(pos);
55 while (!ret.empty()) {
56 entries.push_back(ThesaurusEntry(ret, pos));
57 ret = aik_->next(pos);
65 Thesaurus::ThesaurusEntry::ThesaurusEntry(string const &, char)
70 Thesaurus::Thesaurus()
75 Thesaurus::~Thesaurus()
80 std::vector<Thesaurus::ThesaurusEntry>
81 Thesaurus::lookup(string const & /*text*/)
83 return std::vector<ThesaurusEntry>();
86 #endif // HAVE_LIBAIKSAURUS