[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pspell-devel] getting word suggestions
From: |
Anton Leuski |
Subject: |
[pspell-devel] getting word suggestions |
Date: |
Wed Oct 24 17:20:07 2001 |
The recommended way to get word suggestions from pspell is
PspellWordList * suggestions = pspell_manager_suggest
(spell_checker,
<word>, <size>);
PspellStringEmulation * elements = pspell_word_list_elements
(suggestions);
const char * word;
while ( (word = pspell_string_emulation_next(pspell_elements) != NULL ) {
// add to suggestion list
}
delete_pspell_string_emulation(elements);
here the word variable is char*. How do I find the length of the
word? strlen works ONLY for 8 bit encoded words. I'm using
unicode. Thanks.
-- Anton
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [pspell-devel] getting word suggestions,
Anton Leuski <=