Lines Matching full:position
14 * Finding the line number of a given file position is rather tricky.
30 * position in the file. As a side effect, it calls add_lnum
38 * Structure to keep track of a line number and the associated file position.
45 POSITION pos; /* File position */
46 POSITION gap; /* Gap between prev and next */
52 * ("Distance" means difference in file position.) In other words, the
97 anchor.pos = (POSITION)0;
119 * The specified position (pos) should be the file position of the
122 public void add_lnum(LINENUM linenum, POSITION pos)
128 POSITION mingap;
132 * The entries are sorted by position.
269 * Find the line number associated with a given position.
272 public LINENUM find_linenum(POSITION pos)
276 POSITION cpos;
296 * Find the entry nearest to the position we want.
343 * If the given position is not at the start of a line,
378 * Find the position of a given line number.
381 public POSITION find_pos(LINENUM linenum)
384 POSITION cpos;
454 POSITION pos;
455 POSITION len;
458 pos = position(where);
461 pos = position(++where);
480 POSITION pos = ch_zero();