Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 44b9afc8aaab599f401022b40b477089 > files > 28

ocaml-zed-devel-1.2-8.mga4.x86_64.rpm

<!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="Zed_lines.html">
<link rel="next" href="Zed_input.html">
<link rel="Up" href="index.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 modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Zed_utf8" rel="Chapter" href="Zed_utf8.html">
<link title="Zed_rope" rel="Chapter" href="Zed_rope.html">
<link title="Zed_edit" rel="Chapter" href="Zed_edit.html">
<link title="Zed_cursor" rel="Chapter" href="Zed_cursor.html">
<link title="Zed_lines" rel="Chapter" href="Zed_lines.html">
<link title="Zed_re" rel="Chapter" href="Zed_re.html">
<link title="Zed_input" rel="Chapter" href="Zed_input.html">
<link title="Zed_macro" rel="Chapter" href="Zed_macro.html"><title>Zed_re</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Zed_lines.html" title="Zed_lines">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Zed_input.html" title="Zed_input">Next</a>
</div>
<h1>Module <a href="type_Zed_re.html">Zed_re</a></h1>

<pre><span class="keyword">module</span> Zed_re: <code class="code">sig</code> <a href="Zed_re.html">..</a> <code class="code">end</code></pre><div class="info module top">
Regular expressions on ropes<br>
</div>
<hr width="100%">

<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<div class="info ">
Type of compiled regular expressions.<br>
</div>


<pre><span id="TYPEmatch_result"><span class="keyword">type</span> <code class="type"></code>match_result</span> = <code class="type">(<a href="Zed_rope.Zip.html#TYPEt">Zed_rope.Zip.t</a> * <a href="Zed_rope.Zip.html#TYPEt">Zed_rope.Zip.t</a>) option array option</code> </pre>
<div class="info ">
Type of a match result. If the match fail, <code class="code">None</code> is
        returned. Otherwise an array of matched sub-strings is
        returned, the index <code class="code">0</code> corresponding to the full match, and
        other indexes to matched groups.<br>
</div>


<pre><span id="VALcompile"><span class="keyword">val</span> compile</span> : <code class="type">CamomileLibrary.URe.regexp -> <a href="Zed_re.html#TYPEt">t</a></code></pre><div class="info ">
<code class="code">compile regexp</code> compiles the given regular expression.<br>
</div>

<pre><span id="VALregexp_match"><span class="keyword">val</span> regexp_match</span> : <code class="type">?sem:CamomileLibrary.URe.match_semantics -><br>       <a href="Zed_re.html#TYPEt">t</a> -> <a href="Zed_rope.html#TYPEt">Zed_rope.t</a> -> int -> <a href="Zed_re.html#TYPEmatch_result">match_result</a></code></pre><div class="info ">
<code class="code">regexp_match ?sem regexp rope pos</code> tries to match <code class="code">regexp</code> on
      given rope, starting at <code class="code">pos</code>.<br>
</div>

<pre><span id="VALsearch_forward"><span class="keyword">val</span> search_forward</span> : <code class="type">?sem:CamomileLibrary.URe.match_semantics -><br>       <a href="Zed_re.html#TYPEt">t</a> -> <a href="Zed_rope.html#TYPEt">Zed_rope.t</a> -> int -> <a href="Zed_re.html#TYPEmatch_result">match_result</a></code></pre><div class="info ">
<code class="code">search_forward ?sem regexp rope pos</code> searches the given regular
      expression in <code class="code">rope</code> starting at <code class="code">pos</code>.<br>
</div>

<pre><span id="VALsearch_backward"><span class="keyword">val</span> search_backward</span> : <code class="type">?sem:CamomileLibrary.URe.match_semantics -><br>       <a href="Zed_re.html#TYPEt">t</a> -> <a href="Zed_rope.html#TYPEt">Zed_rope.t</a> -> int -> <a href="Zed_re.html#TYPEmatch_result">match_result</a></code></pre><div class="info ">
<code class="code">search_backward ?sem regexp rope pos</code> searches the given
      regular expression in <code class="code">rope</code> starting at <code class="code">pos</code>, in reverse
      order.<br>
</div>
</body></html>