Lines Matching full:position

16 #include "position.h"
33 extern POSITION start_attnpos;
34 extern POSITION end_attnpos;
52 static POSITION prep_startpos;
53 static POSITION prep_endpos;
54 public POSITION header_start_pos = NULL_POSITION;
55 static POSITION header_end_pos;
58 public POSITION osc8_linepos = NULL_POSITION;
59 public POSITION osc8_match_start = NULL_POSITION;
60 public POSITION osc8_match_end = NULL_POSITION;
61 public POSITION osc8_params_start = NULL_POSITION;
62 public POSITION osc8_params_end = NULL_POSITION;
63 public POSITION osc8_uri_start = NULL_POSITION;
64 public POSITION osc8_uri_end = NULL_POSITION;
65 public POSITION osc8_text_start = NULL_POSITION;
66 public POSITION osc8_text_end = NULL_POSITION;
90 POSITION hl_startpos;
91 POSITION hl_endpos;
266 POSITION pos;
289 pos = position(sindex);
310 POSITION old_start_attnpos;
311 POSITION old_end_attnpos;
312 POSITION pos;
313 POSITION epos;
332 pos = position(sindex);
335 epos = position(sindex+1);
419 static struct hilite_node* hlist_find(struct hilite_tree *anchor, POSITION pos)
509 static int hilited_range_attr(POSITION pos, POSITION epos)
522 public void set_header(POSITION pos)
538 * Is a position within the header lines?
540 static int pos_in_header(POSITION pos)
549 public lbool is_filtered(POSITION pos)
563 * If pos is hidden, return the next position which isn't, otherwise
566 public POSITION next_unfiltered(POSITION pos)
585 * If pos is hidden, return the previous position which isn't or 0 if
588 public POSITION prev_unfiltered(POSITION pos)
613 static void shift_visible(POSITION line_pos, size_t start_off, size_t end_off)
615 POSITION start_pos = line_pos + start_off;
616 POSITION end_pos = line_pos + end_off;
646 public int is_hilited_attr(POSITION pos, POSITION epos, int nohide, int *p_matches)
979 static void create_hilites(POSITION linepos, constant char *line, constant char *sp, constant char *ep, int attr, int *chpos)
992 * If the source position (before cvt) of the char is one more
1018 static void hilite_line(POSITION linepos, constant char *line, size_t line_len, int *chpos, constant char **sp, constant char **ep, int nsp)
1084 prep_hilite(scrpos.pos, position(BOTTOM_PLUS_ONE), -1);
1110 static POSITION search_pos(int search_type)
1112 POSITION pos;
1170 pos = position(sindex);
1184 pos = position(sindex);
1192 pos = position(sindex);
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)
1227 * Get the position of the first char in the screen line which
1230 static POSITION get_lastlinepos(POSITION pos, POSITION tpos, int sheight)
1236 POSITION npos = forw_line(pos);
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)
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)
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;
1495 * Search a subset of the file, specified by start/end position.
1497 static int search_range(POSITION pos, POSITION endpos, int search_type, int matches, int maxlines, POSITION *plinepos, POSITION *pendpos, POSITION *plastlinepos)
1510 POSITION linepos, oldpos;
1524 /* When the search wraps around, end at starting position. */
1532 * going backwards), or until we hit the end position.
1547 * Reached end position without a match.
1560 * starting position of that line in linepos.
1570 * starting position of that line in linepos.
1620 * remember the information we have now (the position
1733 * lastlinepos is the position of the first char of that last line.
1762 POSITION pos;
1813 POSITION linepos = position(sindex);
1814 POSITION clickpos;
1874 POSITION pos;
2055 POSITION pos;
2056 POSITION opos;
2057 POSITION lastlinepos = NULL_POSITION;
2133 opos = position(sindex_from_sline(jump_sline));
2150 &pos, (POSITION*)NULL, &lastlinepos);
2206 public void prep_hilite(POSITION spos, POSITION epos, int maxlines)
2208 POSITION nprep_startpos = prep_startpos;
2209 POSITION nprep_endpos = prep_endpos;
2210 POSITION new_epos;
2211 POSITION max_epos;
2219 POSITION SEARCH_MORE = (POSITION) (3*size_linebuf);
2232 * file position we should stop at.
2314 * Don't go past the max position we're allowed.
2324 result = search_range(spos, epos, search_type, 0, maxlines, (POSITION*)NULL, &new_epos, (POSITION*)NULL);