Lines Matching defs:linepos
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];
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)
1047 create_hilites(linepos, line, lep, sp[i],
1049 create_hilites(linepos, line, sp[i], ep[i],
1054 create_hilites(linepos, line, lep, ep[0],
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)
1214 hl.hl_startpos = linepos;
1322 static lbool osc8_param_match(POSITION linepos, constant char *line, constant struct osc8_parse_info *op1, constant struct osc8_parse_info *op2, constant char *param, POSITION clickpos)
1329 return clickpos >= linepos + ptr_diff(op1->osc8_start, line) &&
1330 clickpos < linepos + ptr_diff(op2->osc8_end, line);
1370 static osc8_match osc8_search_line1(int search_type, POSITION linepos, POSITION spos, constant char *line, size_t line_len, constant char *param, POSITION clickpos)
1399 osc8_param_match(linepos, line, &op1, &op2, param, clickpos))
1413 osc8_param_match(linepos, line, &op1, &op2, param, clickpos))
1423 if (osc8_linepos == linepos && osc8_match_start == spos + ptr_diff(op1.osc8_start, line))
1426 osc8_linepos = linepos;
1444 static osc8_match osc8_search_line(int search_type, POSITION linepos, constant char *line, size_t line_len, constant char *param, POSITION clickpos, int *matches)
1448 POSITION spos = linepos;
1452 if (linepos == osc8_linepos && clickpos == NULL_POSITION)
1460 size_t off = (size_t) (osc8_match_end - linepos);
1466 sline_len = (size_t) (osc8_match_start - linepos);
1469 r = osc8_search_line1(search_type, linepos, spos, sline, sline_len, param, clickpos);
1510 POSITION linepos, oldpos;
1560 * starting position of that line in linepos.
1562 linepos = pos;
1570 * starting position of that line in linepos.
1573 linepos = pos;
1631 if (is_filtered(linepos))
1639 if (osc8_search_line(search_type, linepos, line, line_len, osc8_search_param, NULL_POSITION, &matches) != OSC8_NO_MATCH)
1642 *plinepos = linepos;
1666 linepos < prep_startpos || linepos >= prep_endpos)) {
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);
1745 *plinepos = linepos;
1813 POSITION linepos = position(sindex);
1820 if (linepos == NULL_POSITION)
1822 clickpos = pos_from_col(linepos, col, NULL_POSITION, -1);
1825 if (forw_raw_line(linepos, &line, &line_len) == NULL_POSITION)
1827 r = osc8_search_line(SRCH_FORW|SRCH_OSC8, linepos, line, line_len, NULL, clickpos, &matches);