#include "debug.h"
#include "encoding.h"
#include "ispell.h"
+#include "WordLangTuple.h"
#ifndef CXX_GLOBAL_CSTD
using std::strcpy;
}
-enum ISpell::Result ISpell::check(string const & word)
+enum ISpell::Result ISpell::check(WordLangTuple const & word)
{
// FIXME Please rewrite to use string.
Result res;
- ::fputs(word.c_str(), out);
+ ::fputs(word.word().c_str(), out);
::fputc('\n', out);
char buf[1024];
}
-void ISpell::insert(string const & word)
+void ISpell::insert(WordLangTuple const & word)
{
::fputc('*', out); // Insert word in personal dictionary
- ::fputs(word.c_str(), out);
+ ::fputs(word.word().c_str(), out);
::fputc('\n', out);
}
-void ISpell::accept(string const & word)
+void ISpell::accept(WordLangTuple const & word)
{
::fputc('@', out); // Accept in this session
- ::fputs(word.c_str(), out);
+ ::fputs(word.word().c_str(), out);
::fputc('\n', out);
}