[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pspell] pure virtual in PspellWordList
From: |
Kevin Atkinson |
Subject: |
Re: [pspell] pure virtual in PspellWordList |
Date: |
Thu, 3 Aug 2000 20:12:10 -0400 (EDT) |
On Thu, 3 Aug 2000, Glenn Bach wrote:
> PspellConfig * spell_config = new_pspell_config();
> spell_config->replace("language-tag", "en");
> PspellCanHaveError* e_checker = new_pspell_manager(spell_config);
> PspellManager * spell_checker = to_pspell_manager(e_checker);
> bool correct = spell_checker->check("congradulations");
>
> PspellWordList & suggestions = spell_checker->suggest("congradulations");
^
That should be a * suggest returns a pointer and not a reference.
> PspellStringEmulation * elements = suggestions.elements();
> const char * word;
> while ( (word = elements->next()) != NULL )
> {
> cout << word << endl;
> }
> delete elements;
> delete spell_config;
> delete_pspell_manager(spell_checker);
>
> ---
>
> _______________________________________________
> pspell-devel mailing list
> address@hidden
> http://lists.sourceforge.net/mailman/listinfo/pspell-devel
>
--
Kevin Atkinson
kevina at users sourceforge net
http://metalab.unc.edu/kevina/