Lines Matching refs:word

132 static int count_syllables(slang_T *slang, char_u *word);
139 static void dump_word(slang_T *slang, char_u *word, char_u *pat, int *dir, int round, int flags, li…
140 static linenr_T dump_prefixes(slang_T *slang, char_u *word, char_u *pat, int *dir, int round, int f…
939 can_compound(slang_T *slang, char_u *word, char_u *flags) in can_compound() argument
965 && count_syllables(slang, word) > slang->sl_compsylmax) in can_compound()
1034 char_u *word, in valid_word_prefix() argument
1062 if (!vim_regexec_prog(rp, FALSE, word, 0)) in valid_word_prefix()
1809 char_u *word, in count_common_word() argument
1820 p = word; in count_common_word()
1825 vim_strncpy(buf, word, len); in count_common_word()
1913 count_syllables(slang_T *slang, char_u *word) in count_syllables() argument
1926 for (p = word; *p != NUL; p += len) in count_syllables()
2374 char_u *word, in captype() argument
2384 for (p = word; !spell_iswordp_nmw(p, curwin); MB_PTR_ADV(p)) in captype()
2946 char_u *word, in onecap_copy() argument
2954 p = word; in onecap_copy()
2978 allcap_copy(char_u *word, char_u *wcopy) in allcap_copy() argument
2985 for (s = word; *s != NUL; ) in allcap_copy()
3025 nofold_len(char_u *fword, int flen, char_u *word) in nofold_len() argument
3032 for (p = word; i > 0; MB_PTR_ADV(p)) in nofold_len()
3034 return (int)(p - word); in nofold_len()
3060 eval_soundfold(char_u *word) in eval_soundfold() argument
3074 spell_soundfold(lp->lp_slang, word, FALSE, sound); in eval_soundfold()
3080 return vim_strsave(word); in eval_soundfold()
3104 char_u *word; in spell_soundfold() local
3113 word = inword; in spell_soundfold()
3118 word = fword; in spell_soundfold()
3122 spell_soundfold_wsal(slang, word, res); in spell_soundfold()
3124 spell_soundfold_sal(slang, word, res); in spell_soundfold()
3205 char_u word[MAXWLEN]; in spell_soundfold_sal() local
3224 t = word; in spell_soundfold_sal()
3242 vim_strncpy(word, s, MAXWLEN - 1); in spell_soundfold_sal()
3251 while ((c = word[i]) != NUL) in spell_soundfold_sal()
3267 if (word[i + 1] != s[1]) in spell_soundfold_sal()
3272 if (word[i + j] != s[j]) in spell_soundfold_sal()
3282 while (*pf != NUL && *pf != word[i + k]) in spell_soundfold_sal()
3311 && (i == 0 || !(word[i - 1] == ' ' in spell_soundfold_sal()
3312 || spell_iswordp(word + i - 1, curwin))) in spell_soundfold_sal()
3314 || (!spell_iswordp(word + i + k0, curwin)))) in spell_soundfold_sal()
3316 && spell_iswordp(word + i - 1, curwin) in spell_soundfold_sal()
3317 && (!spell_iswordp(word + i + k0, curwin)))) in spell_soundfold_sal()
3321 c0 = word[i + k - 1]; in spell_soundfold_sal()
3325 && p0 != '-' && word[i + k] != NUL) in spell_soundfold_sal()
3335 if (word[i + k] != s[1]) in spell_soundfold_sal()
3339 pf = word + i + k + 1; in spell_soundfold_sal()
3353 while (*pf != NUL && *pf != word[i + k0]) in spell_soundfold_sal()
3379 && !spell_iswordp(word + i + k0, in spell_soundfold_sal()
3413 while (*s != NUL && word[i + k0] != NUL) in spell_soundfold_sal()
3415 word[i + k0] = *s; in spell_soundfold_sal()
3420 STRMOVE(word + i + k0, word + i + k); in spell_soundfold_sal()
3423 c = word[i]; in spell_soundfold_sal()
3442 STRMOVE(word, word + i + 1); in spell_soundfold_sal()
3482 int word[MAXWLEN]; in spell_soundfold_wsal() local
3529 word[wordlen++] = c; in spell_soundfold_wsal()
3531 word[wordlen] = NUL; in spell_soundfold_wsal()
3539 while ((c = word[i]) != NUL) in spell_soundfold_wsal()
3560 if (word[i + 1] != ws[1]) in spell_soundfold_wsal()
3565 if (word[i + j] != ws[j]) in spell_soundfold_wsal()
3575 while (*pf != NUL && *pf != word[i + k]) in spell_soundfold_wsal()
3604 && (i == 0 || !(word[i - 1] == ' ' in spell_soundfold_wsal()
3605 || spell_iswordp_w(word + i - 1, curwin))) in spell_soundfold_wsal()
3607 || (!spell_iswordp_w(word + i + k0, curwin)))) in spell_soundfold_wsal()
3609 && spell_iswordp_w(word + i - 1, curwin) in spell_soundfold_wsal()
3610 && (!spell_iswordp_w(word + i + k0, curwin)))) in spell_soundfold_wsal()
3614 c0 = word[i + k - 1]; in spell_soundfold_wsal()
3618 && p0 != '-' && word[i + k] != NUL) in spell_soundfold_wsal()
3631 if (word[i + k] != ws[1]) in spell_soundfold_wsal()
3635 pf = word + i + k + 1; in spell_soundfold_wsal()
3649 while (*pf != NUL && *pf != word[i + k0]) in spell_soundfold_wsal()
3675 && !spell_iswordp_w(word + i + k0, in spell_soundfold_wsal()
3710 while (*ws != NUL && word[i + k0] != NUL) in spell_soundfold_wsal()
3712 word[i + k0] = *ws; in spell_soundfold_wsal()
3717 mch_memmove(word + i + k0, word + i + k, in spell_soundfold_wsal()
3721 c = word[i]; in spell_soundfold_wsal()
3745 mch_memmove(word, word + i + 1, in spell_soundfold_wsal()
3872 char_u word[MAXWLEN]; in spell_dump_compl() local
4008 word[depth] = NUL; in spell_dump_compl()
4017 dump_word(slang, word, pat, dir, in spell_dump_compl()
4025 lnum = dump_prefixes(slang, word, pat, dir, in spell_dump_compl()
4032 word[depth++] = c; in spell_dump_compl()
4043 && MB_STRNICMP(word, pat, depth) != 0) in spell_dump_compl()
4059 char_u *word, in dump_word() argument
4082 make_case_word(word, cword, flags); in dump_word()
4087 p = word; in dump_word()
4089 && ((captype(word, NULL) & WF_KEEPCAP) == 0 in dump_word()
4149 char_u *word, // case-folded word in dump_prefixes() argument
4172 c = PTR2CHAR(word); in dump_prefixes()
4175 onecap_copy(word, word_up, TRUE); in dump_prefixes()
4214 c = valid_word_prefix(i, n, flags, word, slang, FALSE); in dump_prefixes()
4217 vim_strncpy(prefix + depth, word, MAXWLEN - depth - 1); in dump_prefixes()