Alternate constructor that takes a Source object.
Alternate constructor that takes a Source object.
source from which to read lines
an iterator that produces lines of input. Any trailing newlines are stripped.
(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
Determine whether there's any input remaining.
Determine whether there's any input remaining.
true if input remains, false if not
Get the next logical line of input, which may represent a concatenation of physical input lines.
Get the next logical line of input, which may represent a concatenation of physical input lines. Any trailing newlines are stripped.
the next input line
an iterator that produces lines of input.
an iterator that produces lines of input. Any trailing newlines are stripped.
Assemble input lines, honoring backslash escapes for line continuation.
BackslashContinuedLineIteratortakes an iterator over lines of input, looks for lines containing trailing backslashes, and treats them as continuation lines, to be concatenated with subsequent lines in the input. Thus, when aBackslashContinuedLineIteratorfilters this input:it produces these lines: