aspell-user
[Top][All Lists]
Advanced

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

Re: [Aspell-user] Discarding aspell suggestions with C API


From: Kevin Atkinson
Subject: Re: [Aspell-user] Discarding aspell suggestions with C API
Date: Fri, 22 Nov 2013 04:28:16 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hi,

You should't need to call aspell_string_enumeration_next unless it returns null. delete_aspell_string_enumeration will clean up any resources used.

Kevin


On 11/21/2013 04:59 PM, Felipe Lema wrote:
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

_______________________________________________
Aspell-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/aspell-user





reply via email to

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