Exemple #1
0
        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);
        }
Exemple #3
0
 internal static extern int Hunspell_suggest(
     HunspellHandle handle,
     IntPtr slst,
     string word);
Exemple #4
0
 internal static extern int Hunspell_spell(
     HunspellHandle handle,
     string word);
Exemple #5
0
 internal static extern void Hunspell_free_list(
     HunspellHandle handle,
     IntPtr slst,
     int n);
Exemple #6
0
 internal static extern void Hunspell_destroy(HunspellHandle handle);
Exemple #7
0
 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);