aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Aspell-user] Discarding aspell suggestions with C API


From: Felipe Lema
Subject: [Aspell-user] Discarding aspell suggestions with C API
Date: Thu, 21 Nov 2013 12:59:02 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22

Hi, everyone

The documentation instructs on how to recover all suggestions for a word. Since I'm only interested in the first suggestion, I was wondering if I _must_ call aspell_string_enumeration_next() until it throws NULL.

//...
const char *word = aspell_string_enumeration_next(aspell_elements);
while (aspell_string_enumeration_next(aspell_elements) )
    ;
delete_aspell_String_enumeration(elements);
//...


Thanks
Felipe Lema



reply via email to

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