<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="UCol.html"> <link rel="next" href="UMap.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of class methods" rel=Appendix href="index_methods.html"> <link title="Index of classes" rel=Appendix href="index_classes.html"> <link title="Index of class types" rel=Appendix href="index_class_types.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="CaseMap" rel="Chapter" href="CaseMap.html"> <link title="CharEncoding" rel="Chapter" href="CharEncoding.html"> <link title="Default" rel="Chapter" href="Default.html"> <link title="IMap" rel="Chapter" href="IMap.html"> <link title="ISet" rel="Chapter" href="ISet.html"> <link title="Locale" rel="Chapter" href="Locale.html"> <link title="Main" rel="Chapter" href="Main.html"> <link title="OOChannel" rel="Chapter" href="OOChannel.html"> <link title="SubText" rel="Chapter" href="SubText.html"> <link title="UCS4" rel="Chapter" href="UCS4.html"> <link title="UChar" rel="Chapter" href="UChar.html"> <link title="UCharInfo" rel="Chapter" href="UCharInfo.html"> <link title="UCharTbl" rel="Chapter" href="UCharTbl.html"> <link title="UCol" rel="Chapter" href="UCol.html"> <link title="ULine" rel="Chapter" href="ULine.html"> <link title="UMap" rel="Chapter" href="UMap.html"> <link title="UNF" rel="Chapter" href="UNF.html"> <link title="UPervasives" rel="Chapter" href="UPervasives.html"> <link title="URe" rel="Chapter" href="URe.html"> <link title="UReStr" rel="Chapter" href="UReStr.html"> <link title="USet" rel="Chapter" href="USet.html"> <link title="UTF16" rel="Chapter" href="UTF16.html"> <link title="UTF8" rel="Chapter" href="UTF8.html"> <link title="UText" rel="Chapter" href="UText.html"> <link title="UnicodeString" rel="Chapter" href="UnicodeString.html"> <link title="XArray" rel="Chapter" href="XArray.html"> <link title="XString" rel="Chapter" href="XString.html"><title>ULine</title> </head> <body> <div class="navbar"><a href="UCol.html">Previous</a> <a href="index.html">Up</a> <a href="UMap.html">Next</a> </div> <center><h1>Module <a href="type_ULine.html">ULine</a></h1></center> <br> <pre><span class="keyword">module</span> ULine: <code class="code">sig</code> <a href="ULine.html">..</a> <code class="code">end</code></pre>Line I/O, conversion of line separators.<br> <hr width="100%"> <pre><span class="keyword">type</span> <a name="TYPEseparator"></a><code class="type"></code>separator = <code class="type">[ `CR | `CRLF | `LF | `LS | `NEL | `PS ]</code> </pre> <div class="info"> Line separators. <ul> <li><code class="code">`CR</code> specifies carriage return.</li> <li><code class="code">`LF</code> specifies linefeed.</li> <li><code class="code">`CRLF</code> specifies the sequence of carriage return and linefeed.</li> <li><code class="code">`NEL</code> specifies next line (\u0085).</li> <li><code class="code">`LS</code> specifies Unicode line separator (\u2028).</li> <li><code class="code">`PS</code> specifies Unicode paragraph separator (\u2029).</li> </ul> <br> </div> <pre><span class="keyword">class</span> <a name="TYPEinput"></a><a href="ULine.input.html">input</a> : <code class="type"><a href="ULine.html#TYPEseparator">separator</a> -> <a href="UChar.html#TYPEt">UChar.t</a> #<a href="OOChannel.obj_input_channel.html">OOChannel.obj_input_channel</a> -> </code><code class="type">[<a href="UChar.html#TYPEt">UChar.t</a>]</code> <code class="type"><a href="OOChannel.obj_input_channel.html">OOChannel.obj_input_channel</a></code></pre><div class="info"> <code class="code">new input separator input_obj</code> creates the new input channel object <a href="OOChannel.obj_input_channel.html"><code class="code">OOChannel.obj_input_channel</code></a> which reads from <code class="code">input_obj</code> and converts line separators (all of CR, LF, CRLF, NEL, LS, PS) to <code class="code">separator</code>. </div> <pre><span class="keyword">class</span> <a name="TYPEoutput"></a><a href="ULine.output.html">output</a> : <code class="type"><a href="ULine.html#TYPEseparator">separator</a> -> <a href="UChar.html#TYPEt">UChar.t</a> #<a href="OOChannel.obj_output_channel.html">OOChannel.obj_output_channel</a> -> </code><code class="type">[<a href="UChar.html#TYPEt">UChar.t</a>]</code> <code class="type"><a href="OOChannel.obj_output_channel.html">OOChannel.obj_output_channel</a></code></pre><div class="info"> <code class="code">new output separator output_obj</code> creates the new output channel object <a href="OOChannel.obj_output_channel.html"><code class="code">OOChannel.obj_output_channel</code></a> which receives Unicode characters and converts line separators (all of CR, LF, CRLF, NEL, LS, PS) to <code class="code">separator</code>. </div> <pre><span class="keyword">module type</span> <a href="ULine.Type.html">Type</a> = <code class="code">sig</code> <a href="ULine.Type.html">..</a> <code class="code">end</code></pre><pre><span class="keyword">module</span> <a href="ULine.Make.html">Make</a>: <div class="sig_block"><code class="code">functor (</code><code class="code">Text</code><code class="code"> : </code><code class="type"><a href="UnicodeString.Type.html">UnicodeString.Type</a></code><code class="code">) -> </code><code class="type"><a href="ULine.Type.html">Type</a></code><code class="type"> with type text = Text.t</code></div></pre></body></html>