Lines Matching refs:k
3211 int n, k = 0; in spell_soundfold_sal() local
3264 k = smp[n].sm_leadlen; in spell_soundfold_sal()
3265 if (k > 1) in spell_soundfold_sal()
3269 if (k > 2) in spell_soundfold_sal()
3271 for (j = 2; j < k; ++j) in spell_soundfold_sal()
3274 if (j < k) in spell_soundfold_sal()
3282 while (*pf != NUL && *pf != word[i + k]) in spell_soundfold_sal()
3286 ++k; in spell_soundfold_sal()
3292 k0 = k; in spell_soundfold_sal()
3293 while (*s == '-' && k > 1) in spell_soundfold_sal()
3295 k--; in spell_soundfold_sal()
3321 c0 = word[i + k - 1]; in spell_soundfold_sal()
3324 if (slang->sl_followup && k > 1 && n0 >= 0 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()
3347 k0 += k - 1; in spell_soundfold_sal()
3382 if (k0 == k) in spell_soundfold_sal()
3419 if (k > k0) in spell_soundfold_sal()
3420 STRMOVE(word + i + k0, word + i + k); in spell_soundfold_sal()
3428 i += k - 1; in spell_soundfold_sal()
3454 k = 1; in spell_soundfold_sal()
3459 if (k && !p0 && reslen < MAXWLEN && c != NUL in spell_soundfold_sal()
3467 k = 0; in spell_soundfold_sal()
3491 int n, k = 0; in spell_soundfold_wsal() local
3557 k = smp[n].sm_leadlen; in spell_soundfold_wsal()
3558 if (k > 1) in spell_soundfold_wsal()
3562 if (k > 2) in spell_soundfold_wsal()
3564 for (j = 2; j < k; ++j) in spell_soundfold_wsal()
3567 if (j < k) in spell_soundfold_wsal()
3575 while (*pf != NUL && *pf != word[i + k]) in spell_soundfold_wsal()
3579 ++k; in spell_soundfold_wsal()
3585 k0 = k; in spell_soundfold_wsal()
3586 while (*s == '-' && k > 1) in spell_soundfold_wsal()
3588 k--; in spell_soundfold_wsal()
3614 c0 = word[i + k - 1]; in spell_soundfold_wsal()
3617 if (slang->sl_followup && k > 1 && n0 >= 0 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()
3643 k0 += k - 1; in spell_soundfold_wsal()
3678 if (k0 == k) in spell_soundfold_wsal()
3716 if (k > k0) in spell_soundfold_wsal()
3717 mch_memmove(word + i + k0, word + i + k, in spell_soundfold_wsal()
3718 sizeof(int) * (wordlen - (i + k) + 1)); in spell_soundfold_wsal()
3726 i += k - 1; in spell_soundfold_wsal()
3758 k = 1; in spell_soundfold_wsal()
3763 if (k && !p0 && reslen < MAXWLEN && c != NUL in spell_soundfold_wsal()
3771 k = 0; in spell_soundfold_wsal()