#include "support/lstrings.h"
#include "support/os.h"
-#ifdef USE_EXTERNAL_MYTHES
-#include MYTHES_H_LOCATION
-#else
#include <cstdio>
-#include "support/mythes/mythes.hxx"
-#endif
+#include MYTHES_H_LOCATION
#include "frontends/alert.h"
typedef std::map<docstring, MyThes *> Thesauri;
-} // namespace anon
+} // namespace
struct Thesaurus::Private
{
Thesaurus::Meanings Thesaurus::lookup(WordLangTuple const & wl)
{
Meanings meanings;
- MyThes * mythes = 0;
+ MyThes * mythes = nullptr;
docstring const lang_code = from_ascii(wl.lang()->code());
docstring const t = wl.word();
return meanings;
string const encoding = mythes->get_th_encoding();
-
+
mentry * pmean;
string const text = to_iconv_encoding(support::lowercase(t), encoding);
int len = strlen(text.c_str());