<!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.Type.UTF8.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.Type.UTF8.Buf</title> </head> <body> <div class="navbar"> <a class="up" href="CamomileLibrary.Type.UTF8.html" title="CamomileLibrary.Type.UTF8">Up</a> </div> <h1>Module <a href="type_CamomileLibrary.Type.UTF8.Buf.html">CamomileLibrary.Type.UTF8.Buf</a></h1> <pre><span class="keyword">module</span> Buf: <code class="code">sig</code> <a href="CamomileLibrary.Type.UTF8.Buf.html">..</a> <code class="code">end</code><code class="type"> with type buf = Buffer.t</code></pre><div class="info module top"> Buffer module for UTF-8 strings<br> </div> <hr width="100%"> <pre><span id="TYPEbuf"><span class="keyword">type</span> <code class="type"></code>buf</span> = <code class="type">Buffer.t</code> </pre> <div class="info "> Buffers for UTF-8 strings.<br> </div> <pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">int -> <a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a></code></pre><div class="info "> <code class="code">create n</code> creates the buffer with the initial size <code class="code">n</code>-bytes.<br> </div> <pre><span id="VALcontents"><span class="keyword">val</span> contents</span> : <code class="type"><a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -> <a href="CamomileLibrary.Type.UTF8.html#TYPEt">CamomileLibrary.Type.UTF8.t</a></code></pre><div class="info "> <code class="code">contents buf</code> returns the contents of the buffer.<br> </div> <pre><span id="VALclear"><span class="keyword">val</span> clear</span> : <code class="type"><a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -> unit</code></pre><div class="info "> Empty the buffer, but retains the internal storage which was holding the contents<br> </div> <pre><span id="VALreset"><span class="keyword">val</span> reset</span> : <code class="type"><a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -> unit</code></pre><div class="info "> Empty the buffer and de-allocate the internal storage.<br> </div> <pre><span id="VALadd_char"><span class="keyword">val</span> add_char</span> : <code class="type"><a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -> <a href="CamomileLibrary.Type.UChar.html#TYPEt">CamomileLibrary.Type.UChar.t</a> -> unit</code></pre><div class="info "> Add one Unicode character to the buffer.<br> </div> <pre><span id="VALadd_string"><span class="keyword">val</span> add_string</span> : <code class="type"><a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -> <a href="CamomileLibrary.Type.UTF8.html#TYPEt">CamomileLibrary.Type.UTF8.t</a> -> unit</code></pre><div class="info "> Add the UTF-8 string to the buffer.<br> </div> <pre><span id="VALadd_buffer"><span class="keyword">val</span> add_buffer</span> : <code class="type"><a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -><br> <a href="CamomileLibrary.Type.UTF8.Buf.html#TYPEbuf">buf</a> -> unit</code></pre><div class="info "> <code class="code">add_buffer b1 b2</code> adds the contents of <code class="code">b2</code> to <code class="code">b1</code>. The contents of <code class="code">b2</code> is not changed.<br> </div> </body></html>