1/* spell.c */ 2int spell_check(win_T *wp, char_u *ptr, hlf_T *attrp, int *capcol, int docount); 3int match_checkcompoundpattern(char_u *ptr, int wlen, garray_T *gap); 4int can_compound(slang_T *slang, char_u *word, char_u *flags); 5int match_compoundrule(slang_T *slang, char_u *compflags); 6int valid_word_prefix(int totprefcnt, int arridx, int flags, char_u *word, slang_T *slang, int cond_req); 7int spell_valid_case(int wordflags, int treeflags); 8int no_spell_checking(win_T *wp); 9int spell_move_to(win_T *wp, int dir, int allwords, int curline, hlf_T *attrp); 10void spell_cat_line(char_u *buf, char_u *line, int maxlen); 11char_u *spell_enc(void); 12slang_T *slang_alloc(char_u *lang); 13void slang_free(slang_T *lp); 14void slang_clear(slang_T *lp); 15void slang_clear_sug(slang_T *lp); 16void count_common_word(slang_T *lp, char_u *word, int len, int count); 17int byte_in_str(char_u *str, int n); 18int init_syl_tab(slang_T *slang); 19char *did_set_spelllang(win_T *wp); 20int captype(char_u *word, char_u *end); 21void spell_delete_wordlist(void); 22void spell_free_all(void); 23void spell_reload(void); 24buf_T *open_spellbuf(void); 25void close_spellbuf(buf_T *buf); 26void clear_spell_chartab(spelltab_T *sp); 27void init_spell_chartab(void); 28int spell_iswordp(char_u *p, win_T *wp); 29int spell_iswordp_nmw(char_u *p, win_T *wp); 30int spell_casefold(char_u *str, int len, char_u *buf, int buflen); 31int check_need_cap(linenr_T lnum, colnr_T col); 32void ex_spellrepall(exarg_T *eap); 33void onecap_copy(char_u *word, char_u *wcopy, int upper); 34void allcap_copy(char_u *word, char_u *wcopy); 35int nofold_len(char_u *fword, int flen, char_u *word); 36void make_case_word(char_u *fword, char_u *cword, int flags); 37char_u *eval_soundfold(char_u *word); 38void spell_soundfold(slang_T *slang, char_u *inword, int folded, char_u *res); 39void ex_spellinfo(exarg_T *eap); 40void ex_spelldump(exarg_T *eap); 41void spell_dump_compl(char_u *pat, int ic, int *dir, int dumpflags_arg); 42char_u *spell_to_word_end(char_u *start, win_T *win); 43int spell_word_start(int startcol); 44void spell_expand_check_cap(colnr_T col); 45int expand_spelling(linenr_T lnum, char_u *pat, char_u ***matchp); 46int valid_spellang(char_u *val); 47int valid_spellfile(char_u *val); 48char *did_set_spell_option(int is_spellfile); 49char *compile_cap_prog(synblock_T *synblock); 50/* vim: set ft=c : */ 51