Lines Matching refs:mi

165     matchinf_T	mi;		// Most things are put in "mi" so that it can  in spell_check()  local
184 CLEAR_FIELD(mi); in spell_check()
192 mi.mi_end = skipbin(ptr + 2); in spell_check()
194 mi.mi_end = skiphex(ptr + 2); in spell_check()
196 mi.mi_end = skipdigits(ptr); in spell_check()
197 nrlen = (int)(mi.mi_end - ptr); in spell_check()
201 mi.mi_word = ptr; in spell_check()
202 mi.mi_fend = ptr; in spell_check()
203 if (spell_iswordp(mi.mi_fend, wp)) in spell_check()
210 c = PTR2CHAR(mi.mi_fend); in spell_check()
216 MB_PTR_ADV(mi.mi_fend); in spell_check()
220 c = PTR2CHAR(mi.mi_fend); in spell_check()
224 } while (*mi.mi_fend != NUL && spell_iswordp(mi.mi_fend, wp) in spell_check()
232 wrongcaplen = (int)(mi.mi_fend - ptr); in spell_check()
240 mi.mi_end = mi.mi_fend; in spell_check()
243 mi.mi_capflags = 0; in spell_check()
244 mi.mi_cend = NULL; in spell_check()
245 mi.mi_win = wp; in spell_check()
249 if (*mi.mi_fend != NUL) in spell_check()
250 MB_PTR_ADV(mi.mi_fend); in spell_check()
252 (void)spell_casefold(wp, ptr, (int)(mi.mi_fend - ptr), mi.mi_fword, in spell_check()
254 mi.mi_fwordlen = (int)STRLEN(mi.mi_fword); in spell_check()
258 mi.mi_fword[mi.mi_fwordlen - 1] = ' '; in spell_check()
261 mi.mi_result = SP_BAD; in spell_check()
262 mi.mi_result2 = SP_BAD; in spell_check()
271 mi.mi_lp = LANGP_ENTRY(wp->w_s->b_langp, lpi); in spell_check()
275 if (mi.mi_lp->lp_slang->sl_fidxs == NULL) in spell_check()
279 find_word(&mi, FIND_FOLDWORD); in spell_check()
282 find_word(&mi, FIND_KEEPWORD); in spell_check()
285 find_prefix(&mi, FIND_FOLDWORD); in spell_check()
289 if (mi.mi_lp->lp_slang->sl_nobreak && mi.mi_result == SP_BAD in spell_check()
290 && mi.mi_result2 != SP_BAD) in spell_check()
292 mi.mi_result = mi.mi_result2; in spell_check()
293 mi.mi_end = mi.mi_end2; in spell_check()
297 if (count_word && mi.mi_result == SP_OK) in spell_check()
299 count_common_word(mi.mi_lp->lp_slang, ptr, in spell_check()
300 (int)(mi.mi_end - ptr), 1); in spell_check()
305 if (mi.mi_result != SP_OK) in spell_check()
311 if (mi.mi_result == SP_BAD || mi.mi_result == SP_BANNED) in spell_check()
337 else if (mi.mi_end == ptr) in spell_check()
340 MB_PTR_ADV(mi.mi_end); in spell_check()
341 else if (mi.mi_result == SP_BAD in spell_check()
345 int save_result = mi.mi_result; in spell_check()
349 mi.mi_lp = LANGP_ENTRY(wp->w_s->b_langp, 0); in spell_check()
350 if (mi.mi_lp->lp_slang->sl_fidxs != NULL) in spell_check()
352 p = mi.mi_word; in spell_check()
353 fp = mi.mi_fword; in spell_check()
358 if (p >= mi.mi_end) in spell_check()
360 mi.mi_compoff = (int)(fp - mi.mi_fword); in spell_check()
361 find_word(&mi, FIND_COMPOUND); in spell_check()
362 if (mi.mi_result != SP_BAD) in spell_check()
364 mi.mi_end = p; in spell_check()
368 mi.mi_result = save_result; in spell_check()
372 if (mi.mi_result == SP_BAD || mi.mi_result == SP_BANNED) in spell_check()
374 else if (mi.mi_result == SP_RARE) in spell_check()
380 if (wrongcaplen > 0 && (mi.mi_result == SP_OK || mi.mi_result == SP_RARE)) in spell_check()
387 return (int)(mi.mi_end - ptr); in spell_check()