blob: 485d7d1a63a28f4d6b64059959b32f4f91c48524 [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_iswordp_nmw(char_u *p, win_T *wp);
23int spell_casefold(char_u *str, int len, char_u *buf, int buflen);
Bram Moolenaaref269542016-01-19 13:22:12 +010024int spell_check_sps(void);
25void spell_suggest(int count);
26void ex_spellrepall(exarg_T *eap);
27void spell_suggest_list(garray_T *gap, char_u *word, int maxcount, int need_cap, int interactive);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020028void onecap_copy(char_u *word, char_u *wcopy, int upper);
Bram Moolenaaref269542016-01-19 13:22:12 +010029char_u *eval_soundfold(char_u *word);
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +020030void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res);
Bram Moolenaaref269542016-01-19 13:22:12 +010031void ex_spellinfo(exarg_T *eap);
32void ex_spelldump(exarg_T *eap);
33void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg);
34char_u *spell_to_word_end(char_u *start, win_T *win);
35int spell_word_start(int startcol);
36void spell_expand_check_cap(colnr_T col);
37int expand_spelling(linenr_T lnum, char_u *pat, char_u ***matchp);
Bram Moolenaar2d3c0a92005-03-21 08:27:48 +000038/* vim: set ft=c : */