1 /* 2 LibRCC - interface to spelling libraries used by language recognition code 3 4 Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> 5 6 This library is free software; you can redistribute it and/or modify it 7 under the terms of the GNU Lesser General Public License version 2.1 or later 8 as published by the Free Software Foundation. 9 10 This library is distributed in the hope that it will be useful, but WITHOUT 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 13 for more details. 14 15 You should have received a copy of the GNU Lesser General Public License 16 along with this program; if not, write to the Free Software Foundation, Inc., 17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 20 #ifndef _RCC_SPELL_H 21 #define _RCC_SPELL_H 22 23 #include "../config.h" 24 25 #ifdef HAVE_ASPELL 26 #include <aspell.h> 27 #endif /* HAVE_ASPELL */ 28 29 #include "internal.h" 30 31 struct rcc_speller_t { 32 #ifdef HAVE_ASPELL 33 struct AspellSpeller *speller; 34 #else 35 void *speller; 36 #endif /* HAVE_ASPELL */ 37 rcc_speller parents[RCC_MAX_LANGUAGE_PARENTS+1]; 38 }; 39 40 typedef struct rcc_speller_t rcc_speller_s; 41 42 int rccSpellerGetError(rcc_speller rccspeller); 43 44 45 rcc_speller_result rccSpellerSized(rcc_speller speller, const char *word, size_t len, int recursion); 46 47 #endif /* _RCC_SPELL_H */ 48