Lines Matching refs:slang
307 static int read_region_section(FILE *fd, slang_T *slang, int len);
311 static int read_sal_section(FILE *fd, slang_T *slang);
313 static int read_sofo_section(FILE *fd, slang_T *slang);
314 static int read_compound(FILE *fd, slang_T *slang, int len);
671 slang_T *slang; in suggest_load_files() local
686 slang = lp->lp_slang; in suggest_load_files()
687 if (slang->sl_sugtime != 0 && !slang->sl_sugloaded) in suggest_load_files()
692 slang->sl_sugloaded = TRUE; in suggest_load_files()
694 dotp = vim_strrchr(slang->sl_fname, '.'); in suggest_load_files()
698 fd = mch_fopen((char *)slang->sl_fname, "r"); in suggest_load_files()
710 slang->sl_fname); in suggest_load_files()
717 slang->sl_fname); in suggest_load_files()
723 slang->sl_fname); in suggest_load_files()
730 if (timestamp != slang->sl_sugtime) in suggest_load_files()
733 slang->sl_fname); in suggest_load_files()
741 if (spell_read_tree(fd, &slang->sl_sbyts, NULL, &slang->sl_sidxs, in suggest_load_files()
746 slang->sl_fname); in suggest_load_files()
747 slang_clear_sug(slang); in suggest_load_files()
758 slang->sl_sugbuf = open_spellbuf(); in suggest_load_files()
759 if (slang->sl_sugbuf == NULL) in suggest_load_files()
781 if (ml_append_buf(slang->sl_sugbuf, (linenr_T)wordnr, in suggest_load_files()
791 tree_count_words(slang->sl_fbyts, slang->sl_fidxs); in suggest_load_files()
792 tree_count_words(slang->sl_sbyts, slang->sl_sidxs); in suggest_load_files()
993 read_sal_section(FILE *fd, slang_T *slang) in read_sal_section() argument
1002 slang->sl_sofo = FALSE; in read_sal_section()
1006 slang->sl_followup = TRUE; in read_sal_section()
1008 slang->sl_collapse = TRUE; in read_sal_section()
1010 slang->sl_rem_accents = TRUE; in read_sal_section()
1016 gap = &slang->sl_sal; in read_sal_section()
1131 set_sal_first(slang); in read_sal_section()
1175 read_sofo_section(FILE *fd, slang_T *slang) in read_sofo_section() argument
1181 slang->sl_sofo = TRUE; in read_sofo_section()
1198 res = set_sofo(slang, from, to); in read_sofo_section()
1215 read_compound(FILE *fd, slang_T *slang, int len) in read_compound() argument
1235 slang->sl_compmax = c; in read_compound()
1241 slang->sl_compminlen = c; in read_compound()
1247 slang->sl_compsylmax = c; in read_compound()
1257 slang->sl_compoptions = c; in read_compound()
1259 gap = &slang->sl_comppat; in read_compound()
1298 slang->sl_compstartflags = cp; in read_compound()
1307 slang->sl_compallflags = ap; in read_compound()
1314 slang->sl_comprules = crp; in read_compound()
1333 && !byte_in_str(slang->sl_compallflags, c)) in read_compound()
1349 if (!byte_in_str(slang->sl_compstartflags, c)) in read_compound()
1364 VIM_CLEAR(slang->sl_comprules); in read_compound()
1396 slang->sl_compprog = vim_regcomp(pat, RE_MAGIC + RE_STRING + RE_STRICT); in read_compound()
1398 if (slang->sl_compprog == NULL) in read_compound()
1754 slang_T *slang; in spell_reload_one() local
1757 FOR_ALL_SPELL_LANGS(slang) in spell_reload_one()
1759 if (fullpathcmp(fname, slang->sl_fname, FALSE, TRUE) == FPC_SAME) in spell_reload_one()
1761 slang_clear(slang); in spell_reload_one()
1762 if (spell_load_file(fname, NULL, slang, FALSE) == NULL) in spell_reload_one()
1764 slang_clear(slang); in spell_reload_one()
2013 static int sug_filltree(spellinfo_T *spin, slang_T *slang);
5463 slang_T *slang; in spell_make_sugfile() local
5473 FOR_ALL_SPELL_LANGS(slang) in spell_make_sugfile()
5474 if (fullpathcmp(wfname, slang->sl_fname, FALSE, TRUE) == FPC_SAME) in spell_make_sugfile()
5476 if (slang == NULL) in spell_make_sugfile()
5479 slang = spell_load_file(wfname, NULL, NULL, FALSE); in spell_make_sugfile()
5480 if (slang == NULL) in spell_make_sugfile()
5500 if (sug_filltree(spin, slang) == FAIL) in spell_make_sugfile()
5537 slang_free(slang); in spell_make_sugfile()
5546 sug_filltree(spellinfo_T *spin, slang_T *slang) in sug_filltree() argument
5572 byts = slang->sl_fbyts; in sug_filltree()
5573 idxs = slang->sl_fidxs; in sug_filltree()
5604 spell_soundfold(slang, tword, TRUE, tsalword); in sug_filltree()
5622 while (n + 1 < slang->sl_fbyts_len && byts[n + 1] == 0) in sug_filltree()