blob: 6114412585e40690c3d27a024b3199159126f0be [file] [log] [blame]
Bram Moolenaar2d3c0a92005-03-21 08:27:48 +00001/* spell.c */
Bram Moolenaaref269542016-01-19 13:22:12 +01002int spell_check(win_T *wp, char_u *ptr, hlf_T *attrp, int *capcol, int docount);
3int spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp);
4void spell_cat_line(char_u *buf, char_u *line, int maxlen);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +02005char_u *spell_enc(void);
6slang_T *slang_alloc(char_u *lang);
7void slang_free(slang_T *lp);
8void slang_clear(slang_T *lp);
9void slang_clear_sug(slang_T *lp);
10void count_common_word(slang_T *lp, char_u *word, int len, int count);
11int byte_in_str(char_u *str, int n);
12int init_syl_tab(slang_T *slang);
Bram Moolenaarf9e3e092019-01-13 23:38:42 +010013char *did_set_spelllang(win_T *wp);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020014int captype(char_u *word, char_u *end);
Bram Moolenaaref269542016-01-19 13:22:12 +010015void spell_delete_wordlist(void);
16void spell_free_all(void);
17void spell_reload(void);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020018buf_T *open_spellbuf(void);
19void close_spellbuf(buf_T *buf);
20void clear_spell_chartab(spelltab_T *sp);
Bram Moolenaaref269542016-01-19 13:22:12 +010021void init_spell_chartab(void);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020022int spell_casefold(char_u *str, int len, char_u *buf, int buflen);
Bram Moolenaaref269542016-01-19 13:22:12 +010023int spell_check_sps(void);
24void spell_suggest(int count);
25void ex_spellrepall(exarg_T *eap);
26void spell_suggest_list(garray_T *gap, char_u *word, int maxcount, int need_cap, int interactive);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020027void onecap_copy(char_u *word, char_u *wcopy, int upper);
Bram Moolenaaref269542016-01-19 13:22:12 +010028char_u *eval_soundfold(char_u *word);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020029void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res);
Bram Moolenaaref269542016-01-19 13:22:12 +010030void ex_spellinfo(exarg_T *eap);
31void ex_spelldump(exarg_T *eap);
32void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg);
33char_u *spell_to_word_end(char_u *start, win_T *win);
34int spell_word_start(int startcol);
35void spell_expand_check_cap(colnr_T col);
36int expand_spelling(linenr_T lnum, char_u *pat, char_u ***matchp);
Bram Moolenaare677df82019-09-02 22:31:11 +020037int valid_spellang(char_u *val);
38int valid_spellfile(char_u *val);
39char *did_set_spell_option(int is_spellfile);
40char *compile_cap_prog(synblock_T *synblock);
Bram Moolenaar2d3c0a92005-03-21 08:27:48 +000041/* vim: set ft=c : */