Lines Matching defs:chpos
979 static void create_hilites(POSITION linepos, constant char *line, constant char *sp, constant char *ep, int attr, int *chpos)
987 hl.hl_startpos = linepos + chpos[start_index];
1000 if (chpos[i] != chpos[i-1] + 1 || i == end_index)
1002 hl.hl_endpos = linepos + chpos[i-1] + 1;
1007 hl.hl_startpos = linepos + chpos[i];
1018 static void hilite_line(POSITION linepos, constant char *line, size_t line_len, int *chpos, constant char **sp, constant char **ep, int nsp)
1048 AT_HILITE | AT_COLOR_SEARCH, chpos);
1050 AT_HILITE | AT_COLOR_SUBSEARCH(i), chpos);
1055 AT_HILITE | AT_COLOR_SEARCH, chpos);
1203 static int matches_filters(POSITION pos, char *cline, size_t line_len, int *chpos, POSITION linepos, constant char **sp, constant char **ep, int nsp)
1218 free(chpos);
1509 int *chpos;
1656 chpos = cvt_alloc_chpos(cvt_len);
1657 cvt_text(cline, line, chpos, &line_len, cvt_ops);
1667 if (matches_filters(pos, cline, line_len, chpos, linepos, sp, ep, NSP))
1694 hilite_line(linepos + skip_bytes, cline, line_len, chpos, sp, ep, NSP);
1710 hilite_line(linepos + skip_bytes, cline, line_len, chpos, sp, ep, NSP);
1723 shift_visible(linepos, chpos[start_off], chpos[end_off]);
1739 *plastlinepos = get_lastlinepos(linepos, linepos + chpos[end_off], (int) sheight);
1743 free(chpos);
1751 free(chpos);