From 094ca96844842928810f14844413109fc6cdd890 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 3 Feb 2013 00:59:38 -0700 Subject: Initial Alpine Version --- pico/osdep/mswin_aspell.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pico/osdep/mswin_aspell.h (limited to 'pico/osdep/mswin_aspell.h') diff --git a/pico/osdep/mswin_aspell.h b/pico/osdep/mswin_aspell.h new file mode 100644 index 00000000..623890ad --- /dev/null +++ b/pico/osdep/mswin_aspell.h @@ -0,0 +1,30 @@ +/* + * ======================================================================== + * FILE: MSWIN_ASPELL.H + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * ======================================================================== + */ + +typedef struct ASPELLINFO ASPELLINFO; + +ASPELLINFO *speller_init(char *lang); +void speller_close(ASPELLINFO *aspellinfo); + +const char *speller_get_error_message(ASPELLINFO *aspellinfo); + +int speller_check_word(ASPELLINFO *aspellinfo, const char *word, int word_size); +int speller_add_to_dictionary(ASPELLINFO *aspellinfo, const char *word, int word_size); +int speller_ignore_all(ASPELLINFO *aspellinfo, const char *word, int word_size); +int speller_replace_word(ASPELLINFO *aspellinfo, const char * mis, int mis_size, + const char * cor, int cor_size); + +int speller_suggestion_init(ASPELLINFO *aspellinfo, const char *word, int word_size); +const char *speller_suggestion_getnext(ASPELLINFO *aspellinfo); +void speller_suggestion_close(ASPELLINFO *aspellinfo); + -- cgit v1.2.3-54-g00ecf