(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
If the next characters in the input stream are equal to the given string, consume them and return true.
If the next characters in the input stream are equal to the given string, consume them and return true. Otherwise return false.
Same as de.uni_luebeck.isp.compacom.LookaheadSource.peekWhile, but consume the characters.
Consume and ignore the next n characters in the stream.
Consume and ignore the next n characters in the stream.
A LookaheadSource that will produce the characters from this source by peeking into it.
A LookaheadSource that will produce the characters from this source by peeking into it.
When val ps = s.peekSource, ps must not be used again after s.next() has been called.
A stream containing the characters returned by peek(0) onwards.
A stream containing the characters returned by peek(0) onwards.
The stream returned by this method must not be used again after next() has been called on this source.
Return a string containing the next length characters without consuming any.
Return a string containing the next length characters without consuming any. If the stream
contains less than length characters, return a string containing all the remaining characters
instead.
Return a string containing all the characters in the input until the first that does not meet the predicate without consuming any.