Lines Matching refs:ptr

160     char_u	*ptr,  in spell_check()  argument
177 if (*ptr <= ' ') in spell_check()
189 if (*ptr >= '0' && *ptr <= '9') in spell_check()
191 if (*ptr == '0' && (ptr[1] == 'b' || ptr[1] == 'B')) in spell_check()
192 mi.mi_end = skipbin(ptr + 2); in spell_check()
193 else if (*ptr == '0' && (ptr[1] == 'x' || ptr[1] == 'X')) 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()
230 c = PTR2CHAR(ptr); in spell_check()
232 wrongcaplen = (int)(mi.mi_fend - ptr); in spell_check()
252 (void)spell_casefold(wp, ptr, (int)(mi.mi_fend - ptr), mi.mi_fword, 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()
317 else if (!spell_iswordp_nmw(ptr, wp)) in spell_check()
327 r = vim_regexec(&regmatch, ptr, 0); in spell_check()
330 *capcol = (int)(regmatch.endp[0] - ptr); in spell_check()
334 return (*mb_ptr2len)(ptr); in spell_check()
337 else if (mi.mi_end == ptr) in spell_check()
387 return (int)(mi.mi_end - ptr); in spell_check()
410 char_u *ptr; in find_word() local
426 ptr = mip->mi_word; in find_word()
438 ptr = mip->mi_fword; in find_word()
500 if (ptr[wlen] == NUL) in find_word()
504 c = ptr[wlen]; in find_word()
540 if (ptr[wlen] != ' ' && ptr[wlen] != TAB) in find_word()
558 if ((*mb_head_off)(ptr, ptr + wlen) > 0) in find_word()
560 if (spell_iswordp(ptr + wlen, mip->mi_win)) in find_word()
578 if (STRNCMP(ptr, p, wlen) != 0) in find_word()
580 for (s = ptr; s < ptr + wlen; MB_PTR_ADV(s)) in find_word()
687 if (match_checkcompoundpattern(ptr, wlen, &slang->sl_comppat)) in find_word()
696 if (has_mbyte && STRNCMP(ptr, mip->mi_word, in find_word()
701 for (s = ptr; s < ptr + mip->mi_compoff; MB_PTR_ADV(s)) in find_word()
738 if (ptr == mip->mi_word) in find_word()
740 ptr, wlen, fword, MAXWLEN); in find_word()
742 vim_strncpy(fword, ptr, endlen[endidxcnt]); in find_word()
784 if (STRNCMP(ptr, p, wlen) != 0) in find_word()
786 for (s = ptr; s < ptr + wlen; MB_PTR_ADV(s)) in find_word()
910 char_u *ptr, in match_checkcompoundpattern() argument
921 if (STRNCMP(ptr + wlen, p, STRLEN(p)) == 0) in match_checkcompoundpattern()
927 if (len <= wlen && STRNCMP(ptr + wlen - len, p, len) == 0) in match_checkcompoundpattern()
1091 char_u *ptr; in find_prefix() local
1103 ptr = mip->mi_fword; in find_prefix()
1108 ptr += mip->mi_compoff; in find_prefix()
1165 if (ptr[wlen] == NUL) in find_prefix()
1169 c = ptr[wlen]; in find_prefix()