Lines 127-133
Link Here
|
127 |
pvSugg->addItem (ucszSugg); |
127 |
pvSugg->addItem (ucszSugg); |
128 |
} |
128 |
} |
129 |
|
129 |
|
130 |
enchant_dict_free_suggestions (m_dict, suggestions); |
130 |
enchant_dict_free_string_list (m_dict, suggestions); |
131 |
} |
131 |
} |
132 |
|
132 |
|
133 |
return pvSugg; |
133 |
return pvSugg; |
Lines 139-145
Link Here
|
139 |
|
139 |
|
140 |
if (word && len) { |
140 |
if (word && len) { |
141 |
UT_UTF8String utf8 (word, len); |
141 |
UT_UTF8String utf8 (word, len); |
142 |
enchant_dict_add_to_personal (m_dict, utf8.utf8_str(), utf8.byteLength()); |
142 |
enchant_dict_add (m_dict, utf8.utf8_str(), utf8.byteLength()); |
143 |
return true; |
143 |
return true; |
144 |
} |
144 |
} |
145 |
return false; |
145 |
return false; |
Lines 150-156
Link Here
|
150 |
UT_return_val_if_fail (m_dict, false); |
150 |
UT_return_val_if_fail (m_dict, false); |
151 |
|
151 |
|
152 |
UT_UTF8String ignore (toCorrect, toCorrectLen); |
152 |
UT_UTF8String ignore (toCorrect, toCorrectLen); |
153 |
return enchant_dict_is_in_session (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0; |
153 |
return enchant_dict_is_added (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0; |
154 |
} |
154 |
} |
155 |
|
155 |
|
156 |
void EnchantChecker::ignoreWord (const UT_UCSChar *toCorrect, size_t toCorrectLen) |
156 |
void EnchantChecker::ignoreWord (const UT_UCSChar *toCorrect, size_t toCorrectLen) |