[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    Re: [Aspell-user] Discarding aspell suggestions with C API
From:       Kevin Atkinson <k () kevina ! org>
Date:       2013-11-22 3:33:58
Message-ID: 528ED0A6.5000902 () kevina ! org
[Download RAW message or body]

On 11/22/2013 04:28 AM, Kevin Atkinson wrote:

> 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.

That should be "You should't need to call aspell_string_enumeration_next 
_until_ 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
>> Aspell-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/aspell-user
>>
>
>
> _______________________________________________
> Aspell-user mailing list
> Aspell-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/aspell-user
>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic