<!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="Up" href="CamomileLibrary.CharEncoding.Interface.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.CharEncoding.Interface.Make</title> </head> <body> <div class="navbar"> <a class="up" href="CamomileLibrary.CharEncoding.Interface.html" title="CamomileLibrary.CharEncoding.Interface">Up</a> </div> <h1>Functor <a href="type_CamomileLibrary.CharEncoding.Interface.Make.html">CamomileLibrary.CharEncoding.Interface.Make</a></h1> <pre><span class="keyword">module</span> Make: <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.CharEncoding.Interface.Type.html">Type</a></code><code class="type"> with type text = Text.t</code></div></pre><table border="0" cellpadding="3" width="100%"> <tr> <td align="left" valign="top" width="1%%"><b>Parameters: </b></td> <td> <table class="paramstable"> <tr> <td align="center" valign="top" width="15%"> <code>Text</code></td> <td align="center" valign="top">:</td> <td><code class="type"><a href="CamomileLibrary.UnicodeString.Type.html">CamomileLibrary.UnicodeString.Type</a></code> </table> </td> </tr> </table> <hr width="100%"> <pre><span id="TYPEtext"><span class="keyword">type</span> <code class="type"></code>text</span> </pre> <pre><span id="VALdecode"><span class="keyword">val</span> decode</span> : <code class="type"><a href="CamomileLibrary.CharEncoding.Interface.html#TYPEt">CamomileLibrary.CharEncoding.Interface.t</a> -><br> string -> <a href="CamomileLibrary.CharEncoding.Interface.Type.html#TYPEtext">text</a></code></pre><div class="info "> <code class="code">decode enc s</code> converts the string <code class="code">s</code> encoded by the encoding <code class="code">enc</code> to the Unicode text.<br> </div> <pre><span id="VALencode"><span class="keyword">val</span> encode</span> : <code class="type"><a href="CamomileLibrary.CharEncoding.Interface.html#TYPEt">CamomileLibrary.CharEncoding.Interface.t</a> -><br> <a href="CamomileLibrary.CharEncoding.Interface.Type.html#TYPEtext">text</a> -> string</code></pre><div class="info "> <code class="code">encode enc t</code> converts the Unicode text <code class="code">t</code> to the string by the encoding <code class="code">enc</code>.<br> </div> </body></html>