Sonnet
Go to the documentation of this file.
23 #include <QtCore/QTextCodec>
24 #include <QtCore/QDebug>
26 using namespace Sonnet;
29 EnchantBroker *broker,
37 qDebug()<<
"Enchant dict for"<<language << dict;
50 int wrong = enchant_dict_check(m_dict, word.toUtf8(),
51 word.toUtf8().length());
58 QTextCodec *codec = QTextCodec::codecForName(
"utf8");
62 enchant_dict_suggest(m_dict, word.toUtf8(), word.toUtf8().length(),
66 for (
size_t i = 0; i < number; ++i) {
67 qsug.append(codec->toUnicode(suggestions[i]));
70 if (suggestions && number)
71 enchant_dict_free_string_list(m_dict, suggestions);
78 enchant_dict_store_replacement(m_dict,
79 bad.toUtf8(), bad.toUtf8().length(),
80 good.toUtf8(), good.toUtf8().length());
86 qDebug() <<
"QSpellEnchantDict::addToPersonal: word = "
88 enchant_dict_add_to_pwl(m_dict, word.toUtf8(),
89 word.toUtf8().length());
95 enchant_dict_add_to_session(m_dict, word.toUtf8(),
96 word.toUtf8().length());
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:05:45 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.