[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
                                                      <word>, <size>);
PspellStringEmulation * elements = pspell_word_list_elements
const char * word;
while ( (word = pspell_string_emulation_next(pspell_elements) != NULL ) {
  // add to suggestion list

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]