Lines Matching refs:chpos
957 …(POSITION linepos, constant char *line, constant char *sp, constant char *ep, int attr, int *chpos) in create_hilites() argument
965 hl.hl_startpos = linepos + chpos[start_index]; in create_hilites()
978 if (chpos[i] != chpos[i-1] + 1 || i == end_index) in create_hilites()
980 hl.hl_endpos = linepos + chpos[i-1] + 1; in create_hilites()
985 hl.hl_startpos = linepos + chpos[i]; in create_hilites()
996 static void hilite_line(POSITION linepos, constant char *line, size_t line_len, int *chpos, constan… in hilite_line() argument
1024 AT_HILITE | AT_COLOR_SEARCH, chpos); in hilite_line()
1026 AT_HILITE | AT_COLOR_SUBSEARCH(i), chpos); in hilite_line()
1031 AT_HILITE | AT_COLOR_SEARCH, chpos); in hilite_line()
1179 static lbool matches_filters(POSITION pos, char *cline, size_t line_len, int *chpos, POSITION linep… in matches_filters() argument
1194 free(chpos); in matches_filters()
1490 int *chpos; in search_range() local
1638 chpos = cvt_alloc_chpos(cvt_len); in search_range()
1639 cvt_text(cline, line, chpos, &line_len, cvt_ops); in search_range()
1649 if (matches_filters(pos, cline, line_len, chpos, linepos, sp, ep, NSP)) in search_range()
1676 hilite_line(linepos + skip_bytes, cline, line_len, chpos, sp, ep, NSP); in search_range()
1692 hilite_line(linepos + skip_bytes, cline, line_len, chpos, sp, ep, NSP); in search_range()
1705 shift_visible(linepos, chpos[start_off], chpos[end_off]); in search_range()
1721 *plastlinepos = get_lastlinepos(linepos, linepos + chpos[end_off], (int) sheight); in search_range()
1725 free(chpos); in search_range()
1733 free(chpos); in search_range()