Lines Matching defs:linep

20 static int check_prevcol __ARGS((char_u *linep, int col, int ch, int *prevcol));
1669 * Return TRUE if the character before "linep[col]" equals "ch".
1676 check_prevcol(linep, col, ch, prevcol)
1677 char_u *linep;
1685 col -= (*mb_head_off)(linep, linep + col);
1689 return (col >= 0 && linep[col] == ch) ? TRUE : FALSE;
1722 char_u *linep; /* pointer to current line */
1743 linep = ml_get(pos.lnum);
1816 ptr = skipwhite(linep);
1817 if (*ptr == '#' && pos.col <= (colnr_T)(ptr - linep))
1827 else if (linep[pos.col] == '/')
1829 if (linep[pos.col + 1] == '*')
1835 else if (pos.col > 0 && linep[pos.col - 1] == '*')
1842 else if (linep[pos.col] == '*')
1844 if (linep[pos.col + 1] == '/')
1849 else if (pos.col > 0 && linep[pos.col - 1] == '/')
1868 if (linep[pos.col] == NUL && pos.col)
1872 initc = linep[pos.col];
1898 pos.col += (*mb_ptr2len)(linep + pos.col);
1906 if (!cpo_match && *skipwhite(linep) == '#')
1917 for (col = pos.col; check_prevcol(linep, col, '\\', &col);)
1932 ptr = skipwhite(skipwhite(linep) + 1);
1951 linep = ml_get(pos.lnum);
1953 ptr = skipwhite(linep);
1956 pos.col = (colnr_T) (ptr - linep);
2012 comment_col = check_linecomment(linep);
2039 linep = ml_get(pos.lnum);
2040 pos.col = (colnr_T)STRLEN(linep); /* pos.col on trailing NUL */
2050 comment_col = check_linecomment(linep);
2062 pos.col -= (*mb_head_off)(linep, linep + pos.col);
2068 if (linep[pos.col] == NUL
2090 linep = ml_get(pos.lnum);
2096 comment_col = check_linecomment(linep);
2103 pos.col += (*mb_ptr2len)(linep + pos.col);
2114 (linep[0] == '{' || linep[0] == '}'))
2116 if (linep[0] == findc && count == 0) /* match! */
2127 if (linep[pos.col] == '*' && linep[pos.col + 1] == '/')
2141 else if ( linep[pos.col - 1] == '/'
2142 && linep[pos.col] == '*'
2149 else if (linep[pos.col - 1] == '*' && linep[pos.col] == '/')
2153 else if (pos.col > 1 && linep[pos.col - 2] == '/'
2180 for (ptr = linep; *ptr; ++ptr)
2182 if (ptr == linep + pos.col + backwards)
2185 && (ptr == linep || ptr[-1] != '\'' || ptr[1] != '\''))
2227 /* ml_get() only keeps one line, need to get linep again */
2228 linep = ml_get(pos.lnum);
2246 switch (c = linep[pos.col])
2250 if (pos.col == 0 || linep[pos.col - 1] != '\\')
2265 if (linep[col] != '\\')
2289 if (linep[pos.col - 2] == '\'')
2294 else if (linep[pos.col - 2] == '\\' &&
2295 pos.col > 2 && linep[pos.col - 3] == '\'')
2302 else if (linep[pos.col + 1]) /* forward search */
2304 if (linep[pos.col + 1] == '\\' &&
2305 linep[pos.col + 2] && linep[pos.col + 3] == '\'')
2310 else if (linep[pos.col + 2] == '\'')
2328 && check_prevcol(linep, pos.col, '\\', NULL)
2329 && check_prevcol(linep, pos.col - 1, '#', NULL))
2342 for (col = pos.col; check_prevcol(linep, col, '\\', &col);)