<!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="CamomileLibrary.SubText.html"> <link rel="next" href="CamomileLibrary.Locale.html"> <link rel="Up" href="CamomileLibrary.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="CamomileLibrary" rel="Chapter" href="CamomileLibrary.html"> <link title="CamomileLibraryDefault" rel="Chapter" href="CamomileLibraryDefault.html"> <link title="CamomileLibraryDyn" rel="Chapter" href="CamomileLibraryDyn.html"><title>CamomileLibrary.ULine</title> </head> <body> <div class="navbar"><a class="pre" href="CamomileLibrary.SubText.html" title="CamomileLibrary.SubText">Previous</a> <a class="up" href="CamomileLibrary.html" title="CamomileLibrary">Up</a> <a class="post" href="CamomileLibrary.Locale.html" title="CamomileLibrary.Locale">Next</a> </div> <h1>Module <a href="type_CamomileLibrary.ULine.html">CamomileLibrary.ULine</a></h1> <pre><span class="keyword">module</span> ULine: <code class="code">sig</code> <a href="CamomileLibrary.ULine.html">..</a> <code class="code">end</code></pre><hr width="100%"> <br> Line IO<br> <br> Line I/O, conversion of line separators.<br> <pre><span id="TYPEseparator"><span class="keyword">type</span> <code class="type"></code>separator</span> = <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 name="TYPEinput"><span class="keyword">class</span> <a href="CamomileLibrary.ULine.input-c.html">input</a></span> : <code class="type"><a href="CamomileLibrary.ULine.html#TYPEseparator">separator</a> -> <a href="CamomileLibrary.UChar.html#TYPEt">CamomileLibrary.UChar.t</a> #<a href="CamomileLibrary.OOChannel.obj_input_channel-c.html">CamomileLibrary.OOChannel.obj_input_channel</a> -> </code><code class="type">[<a href="CamomileLibrary.UChar.html#TYPEt">CamomileLibrary.UChar.t</a>]</code> <code class="type"><a href="CamomileLibrary.OOChannel.obj_input_channel-c.html">CamomileLibrary.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="CamomileLibrary.OOChannel.obj_input_channel-c.html"><code class="code">CamomileLibrary.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 name="TYPEoutput"><span class="keyword">class</span> <a href="CamomileLibrary.ULine.output-c.html">output</a></span> : <code class="type"><a href="CamomileLibrary.ULine.html#TYPEseparator">separator</a> -> <a href="CamomileLibrary.UChar.html#TYPEt">CamomileLibrary.UChar.t</a> #<a href="CamomileLibrary.OOChannel.obj_output_channel-c.html">CamomileLibrary.OOChannel.obj_output_channel</a> -> </code><code class="type">[<a href="CamomileLibrary.UChar.html#TYPEt">CamomileLibrary.UChar.t</a>]</code> <code class="type"><a href="CamomileLibrary.OOChannel.obj_output_channel-c.html">CamomileLibrary.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="CamomileLibrary.OOChannel.obj_output_channel-c.html"><code class="code">CamomileLibrary.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="CamomileLibrary.ULine.Type.html">Type</a> = <code class="code">sig</code> <a href="CamomileLibrary.ULine.Type.html">..</a> <code class="code">end</code></pre> <pre><span class="keyword">module</span> <a href="CamomileLibrary.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="CamomileLibrary.UnicodeString.Type.html">CamomileLibrary.UnicodeString.Type</a></code><code class="code">) -> </code><code class="type"><a href="CamomileLibrary.ULine.Type.html">Type</a></code><code class="type"> with type text = Text.t</code></div></pre></body></html>