Lines Matching refs:linebuf
68 string linebuf;
73 while (read_line(fp, &linebuf)) {
74 if (linebuf.length() >= 4
75 && linebuf[0] == '.' && linebuf[1] == 'l' && linebuf[2] == 'f'
76 && (linebuf[3] == ' ' || linebuf[3] == '\n' || compatible_flag)) {
77 put_string(linebuf, stdout);
78 linebuf += '\0';
79 if (interpret_lf_args(linebuf.contents() + 3))
82 else if (linebuf.length() >= 4
83 && linebuf[0] == '.'
84 && linebuf[1] == 'E'
85 && linebuf[2] == 'Q'
86 && (linebuf[3] == ' ' || linebuf[3] == '\n'
88 put_string(linebuf, stdout);
92 if (!read_line(fp, &linebuf))
94 if (linebuf.length() >= 3 && linebuf[0] == '.' && linebuf[1] == 'E') {
95 if (linebuf[2] == 'N'
96 && (linebuf.length() == 3 || linebuf[3] == ' '
97 || linebuf[3] == '\n' || compatible_flag))
99 else if (linebuf[2] == 'Q' && linebuf.length() > 3
100 && (linebuf[3] == ' ' || linebuf[3] == '\n'
104 str += linebuf;
118 put_string(linebuf, stdout);
120 else if (start_delim != '\0' && linebuf.search(start_delim) >= 0
121 && inline_equation(fp, linebuf, str))
124 put_string(linebuf, stdout);
132 static int inline_equation(FILE *fp, string &linebuf, string &str)
134 linebuf += '\0';
135 char *ptr = &linebuf[0];
139 linebuf.set_length(linebuf.length() - 1); // strip the '\0'
167 if (!read_line(fp, &linebuf))
170 linebuf += '\0';
171 ptr = &linebuf[0];