<!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.URe.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.URe.Type</title> </head> <body> <div class="navbar"> <a class="up" href="CamomileLibrary.Type.URe.html" title="CamomileLibrary.Type.URe">Up</a> </div> <h1>Module type <a href="type_CamomileLibrary.Type.URe.Type.html">CamomileLibrary.Type.URe.Type</a></h1> <pre><span class="keyword">module type</span> Type = <code class="code">sig</code> <a href="CamomileLibrary.Type.URe.Type.html">..</a> <code class="code">end</code></pre><hr width="100%"> <pre><span id="TYPEtext"><span class="keyword">type</span> <code class="type"></code>text</span> </pre> <pre><span id="TYPEindex"><span class="keyword">type</span> <code class="type"></code>index</span> </pre> <pre><span id="TYPEcompiled_regexp"><span class="keyword">type</span> <code class="type"></code>compiled_regexp</span> </pre> <pre><span class="keyword">module</span> <a href="CamomileLibrary.Type.URe.Type.SubText.html">SubText</a>: <code class="type"><a href="CamomileLibrary.Type.SubText.Type.html">CamomileLibrary.Type.SubText.Type</a></code><code class="type"> with type ur_text = text and type ur_index = index</code></pre> <pre><span id="VALcompile"><span class="keyword">val</span> compile</span> : <code class="type"><a href="CamomileLibrary.Type.URe.html#TYPEregexp">CamomileLibrary.Type.URe.regexp</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEcompiled_regexp">compiled_regexp</a></code></pre><div class="info "> Compile regular expressions.<br> </div> <pre><span id="VALregexp_match"><span class="keyword">val</span> regexp_match</span> : <code class="type">?sem:<a href="CamomileLibrary.Type.URe.html#TYPEmatch_semantics">CamomileLibrary.Type.URe.match_semantics</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEcompiled_regexp">compiled_regexp</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEtext">text</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEindex">index</a> -><br> SubText.t option array option</code></pre><div class="info "> <code class="code">regexp_match ?sem r t i</code> tries matching <code class="code">r</code> and substrings of <code class="code">t</code> beginning from <code class="code">i</code>. If match successes, <code class="code">Some g</code> is returned where <code class="code">g</code> is the array containing the matched string of <code class="code">n</code>-th group in the <code class="code">n</code>-element. The matched string of the whole <code class="code">r</code> is stored in the <code class="code">0</code>-th element. If matching fails, <code class="code">None</code> is returned.<br> </div> <pre><span id="VALstring_match"><span class="keyword">val</span> string_match</span> : <code class="type"><a href="CamomileLibrary.Type.URe.Type.html#TYPEcompiled_regexp">compiled_regexp</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEtext">text</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEindex">index</a> -> bool</code></pre><div class="info "> <code class="code">string_match r t i</code> tests whether <code class="code">r</code> can match a substring of <code class="code">t</code> beginning from <code class="code">i</code>.<br> </div> <pre><span id="VALsearch_forward"><span class="keyword">val</span> search_forward</span> : <code class="type">?sem:<a href="CamomileLibrary.Type.URe.html#TYPEmatch_semantics">CamomileLibrary.Type.URe.match_semantics</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEcompiled_regexp">compiled_regexp</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEtext">text</a> -><br> <a href="CamomileLibrary.Type.URe.Type.html#TYPEindex">index</a> -><br> SubText.t option array option</code></pre><div class="info "> <code class="code">search_forward ?sem r t i</code> searches a substring of <code class="code">t</code> matching <code class="code">r</code> from <code class="code">i</code>. The returned value is similar to <a href="CamomileLibrary.Type.URe.Type.html#VALregexp_match"><code class="code">CamomileLibrary.Type.URe.Type.regexp_match</code></a>.<br> </div> </body></html>