<!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.UnicodeString.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.UnicodeString.Type</title> </head> <body> <div class="navbar"> <a class="up" href="CamomileLibrary.Type.UnicodeString.html" title="CamomileLibrary.Type.UnicodeString">Up</a> </div> <h1>Module type <a href="type_CamomileLibrary.Type.UnicodeString.Type.html">CamomileLibrary.Type.UnicodeString.Type</a></h1> <pre><span class="keyword">module type</span> Type = <code class="code">sig</code> <a href="CamomileLibrary.Type.UnicodeString.Type.html">..</a> <code class="code">end</code></pre><hr width="100%"> <pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre> <div class="info "> The type of string.<br> </div> <pre><span id="VALget"><span class="keyword">val</span> get</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> int -> <a href="CamomileLibrary.Type.UChar.html#TYPEt">CamomileLibrary.Type.UChar.t</a></code></pre><div class="info "> <code class="code">get t i</code> : <code class="code">i</code>-th character of the storage.<br> </div> <pre><span id="VALinit"><span class="keyword">val</span> init</span> : <code class="type">int -><br> (int -> <a href="CamomileLibrary.Type.UChar.html#TYPEt">CamomileLibrary.Type.UChar.t</a>) -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a></code></pre><div class="info "> <code class="code">init len f</code> creates a new storage. the returned storage has length <code class="code">len</code>, its nth-element is <code class="code">f n</code>. <code class="code">f</code> is called with integers <code class="code">0 ... len - 1</code>, only once for each integer. The call is in the increasing order f 0, f 1, f 2, ...<br> </div> <pre><span id="VALlength"><span class="keyword">val</span> length</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -> int</code></pre><div class="info "> The number of Unicode characters in the storage<br> </div> <pre><span id="TYPEindex"><span class="keyword">type</span> <code class="type"></code>index</span> </pre> <div class="info "> locations in storages.<br> </div> <pre><span id="VALlook"><span class="keyword">val</span> look</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -> <a href="CamomileLibrary.Type.UChar.html#TYPEt">CamomileLibrary.Type.UChar.t</a></code></pre><div class="info "> <code class="code">look t i</code> : The character in the location <code class="code">i</code> of <code class="code">t</code>.<br> </div> <pre><span id="VALnth"><span class="keyword">val</span> nth</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> int -> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a></code></pre><div class="info "> <code class="code">nth t n</code> : the location of the <code class="code">n</code>-th character in <code class="code">t</code>.<br> </div> <br> <code class="code">next x i, prev x i</code> : The operation is valid if <code class="code">i</code> points the valid element, i.e. the returned value may point the location beyond valid elements by one. If <code class="code">i</code> does not point a valid element, the results are unspecified.<br> <pre><span id="VALnext"><span class="keyword">val</span> next</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a></code></pre> <pre><span id="VALprev"><span class="keyword">val</span> prev</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a></code></pre> <pre><span id="VALout_of_range"><span class="keyword">val</span> out_of_range</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -> bool</code></pre> <pre><span id="VALiter"><span class="keyword">val</span> iter</span> : <code class="type">(<a href="CamomileLibrary.Type.UChar.html#TYPEt">CamomileLibrary.Type.UChar.t</a> -> unit) -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -> unit</code></pre> <pre><span id="VALcompare"><span class="keyword">val</span> compare</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -> int</code></pre> <pre><span id="VALfirst"><span class="keyword">val</span> first</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a></code></pre><div class="info "> The location of the first character in the storage.<br> </div> <pre><span id="VALlast"><span class="keyword">val</span> last</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a></code></pre><div class="info "> The location of the last character in the storage.<br> </div> <pre><span id="VALmove"><span class="keyword">val</span> move</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -><br> int -> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a></code></pre><div class="info "> <code class="code">move t i n</code> : if <code class="code">n</code> >= 0, then returns <code class="code">n</code>-th character after <code class="code">i</code> and otherwise returns -<code class="code">n</code>-th character before <code class="code">i</code>. If there is no such character, or <code class="code">i</code> does not point a valid character, the result is unspecified.<br> </div> <pre><span id="VALcompare_index"><span class="keyword">val</span> compare_index</span> : <code class="type"><a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEt">t</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -><br> <a href="CamomileLibrary.Type.UnicodeString.Type.html#TYPEindex">index</a> -> int</code></pre><div class="info "> <code class="code">compare_index t i j</code> returns a positive integer if <code class="code">i</code> is the location placed after <code class="code">j</code> in <code class="code">t</code>, 0 if <code class="code">i</code> and <code class="code">j</code> point the same location, and a negative integer if <code class="code">i</code> is the location placed before <code class="code">j</code> in <code class="code">t</code>.<br> </div> <pre><span class="keyword">module</span> <a href="CamomileLibrary.Type.UnicodeString.Type.Buf.html">Buf</a>: <code class="code">sig</code> <a href="CamomileLibrary.Type.UnicodeString.Type.Buf.html">..</a> <code class="code">end</code></pre><div class="info"> Character buffers. </div> </body></html>