Re: Issue 2001 in pharo: Positionable stream hardcodes end of line delimiter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Issue 2001 in pharo: Positionable stream hardcodes end of line delimiter

pharo
Updates:
        Status: Closed

Comment #1 on issue 2001 by [hidden email]: Positionable stream  
hardcodes end of line delimiter
http://code.google.com/p/pharo/issues/detail?id=2001

this has been fixed... in 1.2:

nextLine
        "Answer next line (may be empty) without line end delimiters, or nil if at  
end.
        Let the stream positioned after the line delimiter(s).
        Handle a zoo of line delimiters CR, LF, or CR-LF pair"

        self atEnd ifTrue: [^nil].
        ^self upToAnyOf: CharacterSet crlf do: [:char | char = Character cr  
ifTrue: [self peekFor: Character lf]]