]> gitweb.factorcode.org Git - factor.git/blob - basis/io/crlf/crlf-docs.factor
Switch to https urls
[factor.git] / basis / io / crlf / crlf-docs.factor
1 ! Copyright (C) 2009 Daniel Ehrenberg
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: help.syntax help.markup sequences ;
4 IN: io.crlf
5
6 HELP: crlf
7 { $values }
8 { $description "Prints a carriage return and line feed to the current output stream, used to indicate a newline for certain network protocols." } ;
9
10 HELP: read-crlf
11 { $values { "seq" sequence } }
12 { $description "Reads until the next CRLF (carriage return followed by line feed) from the current input stream, throwing an error if CR is present without immediately being followed by LF." } ;
13
14 HELP: read-?crlf
15 { $values { "seq" sequence } }
16 { $description "Reads until the next LF (line feed) or CRLF (carriage return followed by line feed) from the current input stream, throwing an error if CR is present without immediately being followed by LF." } ;
17
18 { crlf>lf lf>crlf } related-words