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