Lines Matching refs:res

136 static void spell_soundfold_sofo(slang_T *slang, char_u *inword, char_u *res);
137 static void spell_soundfold_sal(slang_T *slang, char_u *inword, char_u *res);
138 static void spell_soundfold_wsal(slang_T *slang, char_u *inword, char_u *res);
414 int res = SP_BAD; in find_word() local
590 res = SP_BAD; in find_word()
856 res = SP_BANNED; in find_word()
861 res = SP_OK; in find_word()
863 res = SP_LOCAL; in find_word()
866 res = SP_RARE; in find_word()
868 res = SP_OK; in find_word()
875 if (mip->mi_result2 > res) in find_word()
877 mip->mi_result2 = res; in find_word()
880 else if (mip->mi_result2 == res in find_word()
884 else if (mip->mi_result > res) in find_word()
886 mip->mi_result = res; in find_word()
889 else if (mip->mi_result == res && mip->mi_end < mip->mi_word + wlen) in find_word()
3101 char_u *res) in spell_soundfold() argument
3108 spell_soundfold_sofo(slang, inword, res); in spell_soundfold()
3122 spell_soundfold_wsal(slang, word, res); in spell_soundfold()
3124 spell_soundfold_sal(slang, word, res); in spell_soundfold()
3133 spell_soundfold_sofo(slang_T *slang, char_u *inword, char_u *res) in spell_soundfold_sofo() argument
3177 ri += mb_char2bytes(c, res + ri); in spell_soundfold_sofo()
3193 if (c != NUL && (ri == 0 || res[ri - 1] != c)) in spell_soundfold_sofo()
3194 res[ri++] = c; in spell_soundfold_sofo()
3198 res[ri] = NUL; in spell_soundfold_sofo()
3202 spell_soundfold_sal(slang_T *slang, char_u *inword, char_u *res) in spell_soundfold_sal() argument
3407 if (reslen > 0 && *s != NUL && (res[reslen - 1] == c in spell_soundfold_sal()
3408 || res[reslen - 1] == *s)) in spell_soundfold_sal()
3432 if (reslen == 0 || res[reslen - 1] != *s) in spell_soundfold_sal()
3433 res[reslen++] = *s; in spell_soundfold_sal()
3441 res[reslen++] = c; in spell_soundfold_sal()
3461 || res[reslen - 1] != c)) in spell_soundfold_sal()
3463 res[reslen++] = c; in spell_soundfold_sal()
3471 res[reslen] = NUL; in spell_soundfold_sal()
3479 spell_soundfold_wsal(slang_T *slang, char_u *inword, char_u *res) in spell_soundfold_wsal() argument
3779 l += mb_char2bytes(wres[n], res + l); in spell_soundfold_wsal()
3783 res[l] = NUL; in spell_soundfold_wsal()