Lines Matching refs:badsound

214 static int stp_sal_score(suggest_T *stp, suginfo_T *su, slang_T *slang, char_u *badsound);
227 static int soundalike_score(char_u *goodsound, char_u *badsound);
2829 char_u badsound[MAXWLEN]; in score_comp_sal() local
2846 spell_soundfold(lp->lp_slang, su->su_fbadword, TRUE, badsound); in score_comp_sal()
2854 score = stp_sal_score(stp, su, lp->lp_slang, badsound); in score_comp_sal()
2889 char_u badsound[MAXWLEN]; in score_combine() local
2902 spell_soundfold(slang, su->su_fbadword, TRUE, badsound); in score_combine()
2907 stp->st_altscore = stp_sal_score(stp, su, slang, badsound); in score_combine()
2996 char_u *badsound) // sound-folded badword in stp_sal_score() argument
3009 pbad = badsound; in stp_sal_score()
3777 char_u *badsound = badstart; in soundalike_score() local
3787 if ((*badsound == '*' || *goodsound == '*') && *badsound != *goodsound) in soundalike_score()
3789 if ((badsound[0] == NUL && goodsound[1] == NUL) in soundalike_score()
3790 || (goodsound[0] == NUL && badsound[1] == NUL)) in soundalike_score()
3793 if (badsound[0] == NUL || goodsound[0] == NUL) in soundalike_score()
3797 if (badsound[1] == goodsound[1] in soundalike_score()
3798 || (badsound[1] != NUL in soundalike_score()
3800 && badsound[2] == goodsound[2])) in soundalike_score()
3807 if (*badsound == '*') in soundalike_score()
3808 ++badsound; in soundalike_score()
3815 badlen = (int)STRLEN(badsound); in soundalike_score()
3826 ps = badsound; in soundalike_score()
3830 pl = badsound; // badsound is longest in soundalike_score()