internal Hunspell( string affixFilename, string dictionaryFilename) { // Make sure we have a sane state. if (string.IsNullOrWhiteSpace(affixFilename)) { throw new ArgumentNullException("affixFilename"); } if (string.IsNullOrWhiteSpace(dictionaryFilename)) { throw new ArgumentNullException("dictionaryFilename"); } // Keep the handle we'll be using. handle = new HunspellHandle(affixFilename, dictionaryFilename); }
internal Hunspell( string affixFilename, string dictionaryFilename) { // Make sure we have a sane state. if (string.IsNullOrWhiteSpace(affixFilename)) { throw new ArgumentNullException("affixFilename"); } if (string.IsNullOrWhiteSpace(dictionaryFilename)) { throw new ArgumentNullException("dictionaryFilename"); } // Keep the handle we'll be using. handle = new HunspellHandle(affixFilename, dictionaryFilename); }
internal static extern int Hunspell_suggest( HunspellHandle handle, IntPtr slst, string word);
internal static extern int Hunspell_spell( HunspellHandle handle, string word);
internal static extern void Hunspell_free_list( HunspellHandle handle, IntPtr slst, int n);
internal static extern void Hunspell_destroy(HunspellHandle handle);
internal static extern int Hunspell_add_with_affix( HunspellHandle handle, string word, string example);
internal static extern int Hunspell_suggest( HunspellHandle handle, IntPtr slst, string word);
internal static extern int Hunspell_spell( HunspellHandle handle, string word);
internal static extern void Hunspell_free_list( HunspellHandle handle, IntPtr slst, int n);
internal static extern void Hunspell_destroy(HunspellHandle handle);
internal static extern int Hunspell_add_with_affix( HunspellHandle handle, string word, string example);