Lines Matching refs:ptr
85 register char *ptr = buf;
86 while (ptr < ebuf() && *ptr != '\n') ptr++;
87 _line_length = ptr - buf;
88 setg(buf, buf, ptr);
93 register char* ptr = egptr(); // Point to end of current_line
95 int i = right() - ptr;
98 ptr++; i--; // Skip '\n'.
99 char *line_start = ptr;
100 while (ptr < right() && *ptr == '\n') ptr++;
101 setg(line_start-1, line_start, ptr + (ptr < right()));
103 _line_length = ptr - line_start;
105 } while (gptr() == ptr);
111 char *ptr = eback();
113 ptr++; // Skip '\n' at end of previous line.
114 return ptr;
153 register char *ptr = base();
156 *ptr++ = '\n';
163 if (ptr == ebuf()) {
168 ptr = new_buffer + old_size;
170 *ptr++ = ch;
176 _line_length = ptr - cur_pos;
179 setg(base(), cur_pos, ptr);
180 return ptr == cur_pos ? EOF : cur_pos[0];