Lines Matching defs:line

51 wchar_t	outbuf[BUFSIZ];			/* Sandbagged output line image */
161 * and sending each line down for analysis.
176 * Collect a line, doing ^H processing.
198 * Toss anything remaining on the input line.
225 * Swipe trailing blanks from the line.
237 /* look for an initial mail header line */
244 * only want to make sure cp points to a "From" line
253 /* no mail header line; process normally */
258 /* already saw 1st mail header line; look for more */
261 * blank line means end of mail header;
267 /* now process the current blank line */
271 * not a blank line--save this line as
272 * a potential mail header line
291 * Take a line devoid of tabs and other garbage and determine its
293 * If the input line is blank, echo the blank line on the output.
294 * Finally, if the line minus the prefix is a mail header, try to keep
295 * it on a line by itself.
299 prefix(wchar_t line[])
303 int nosplit = 0; /* flag set if line should not be split */
305 if (line[0] == L'\0') {
312 for (cp = line; *cp == L' '; cp++) {
314 np = cp - line;
324 * if this is a mail header line, don't split it; flush previous
325 * line, if any, so we don't join this line to it
331 /* flush previous line so we don't join this one to it */
361 /* put whole input line onto outbuf and print it out */
366 * split puts current line onto outbuf, but splits it
372 * flush current line so next lines, if any,
379 * Split up the passed line into output "words" which are
382 * line packer.
386 csplit(wchar_t line[])
392 cp = line;
408 * Guarantee a space at end of line.
425 msplit(wchar_t line[])
431 cp = line;
454 * Guarantee a space at end of line.
472 * Build up line images from the words passed in. Prefix
473 * each line with correct number of blanks. The buffer "outbuf"
474 * contains the current partial line image, including prefixed blanks.
481 * Pack a word onto the output line. If this is the beginning of
482 * the line, push on the appropriately-sized string of blanks first.
483 * If the word won't fit on the current line, flush and begin a new
484 * line. If the word is too long to fit all by itself on a line,
513 * If there is anything on the current output line, send it on
515 * line prefix.
529 * Take the passed line buffer, insert leading tabs where possible, and
534 tabulate(wchar_t line[])
540 /* Toss trailing blanks in the output line */
541 cp = line + wslen(line) - 1;
542 while (cp >= line && *cp == L' ')
546 for (cp = line; *cp == L' '; cp++) {
548 b = cp - line;
565 * Initialize the output line with the appropriate number of
719 * Either a blank line was seen, or EOF was reached.
729 * h_lines = hdrbuf index for next line to be saved;
735 wchar_t *cp; /* ptr to current char of line */
751 * go through each line in hdrbuf and see how many
777 * Save given input line into next element of hdrbuf,
778 * as a potential mail header line, to be processed later
783 * Dynamically allocates space for each line. If we are unable
789 fill_hdrbuf(wchar_t line[])
791 wchar_t *cp; /* pointer to characters in input line */
792 int i; /* index into characters a hdrbuf line */
799 * the current 'line' normally.
803 prefix(line);
807 (wslen(line) + 1));
818 /* hdrbuf is empty; process this line normally */
819 prefix(line);
831 /* save this line as a potential mail header line */
832 for (i = 0, cp = line; (hdrbuf[h_lines][i] = *cp) != L'\0'; i++, cp++) {