#124 generate - lack of documentation

open
nobody
None
5
2009-10-20
2009-10-20
No

Dears,

I have a code:

n = spell_checker.generate(&result, "word", "ing");

printf("n = %d\n", n);
for (int i = 0; i < n; i++)
{
printf("%s\n", result[i]);
}

spell_checker.free_list(&result, n);

n = spell_checker.generate(&result, "word", &affix, 1);

printf("n = %d\n", n);
for (int i = 0; i < n; i++)
{
printf("%s\n", result[i]);
}

spell_checker.free_list(&result, n);

The result is:

n = 0
n = 0

Is it expected?

Also I would like to suggest to improve and make more precize documentation for all *generate* functions/methods.
Hunspell::generate(_1,_2_3, 2) - 4-th parameter set to 2 causes Segmentation fault.

Regards,

Discussion

  • Nobody/Anonymous

    Sourceforge.. May I repost it? :)

     
  • Nobody/Anonymous

    Sourceforge.. Bang-up :)

     
  • Nobody/Anonymous

    Sourceforge.. Outstanding :)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks