ocaml-containers/2.8/containers/CCStringLabels/Find/index.html
2019-12-14 17:27:18 -06:00

2 lines
No EOL
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Find (containers.CCStringLabels.Find)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">containers</a> &#x00BB; <a href="../index.html">CCStringLabels</a> &#x00BB; Find</nav><h1>Module <code>CCStringLabels.Find</code></h1></header><dl><dt class="spec type" id="type-pattern"><a href="#type-pattern" class="anchor"></a><code><span class="keyword">type</span> _ pattern</code></dt></dl><dl><dt class="spec value" id="val-compile"><a href="#val-compile" class="anchor"></a><code><span class="keyword">val</span> compile : string <span>&#45;&gt;</span> [ `Direct ] <a href="index.html#type-pattern">pattern</a></code></dt><dt class="spec value" id="val-rcompile"><a href="#val-rcompile" class="anchor"></a><code><span class="keyword">val</span> rcompile : string <span>&#45;&gt;</span> [ `Reverse ] <a href="index.html#type-pattern">pattern</a></code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val</span> find : ?&#8288;start:int <span>&#45;&gt;</span> pattern:[ `Direct ] <a href="index.html#type-pattern">pattern</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> int</code></dt><dd><p>Search for <code>pattern</code> in the string, left-to-right.</p><dl><dt>returns</dt><dd><p>the offset of the first match, -1 otherwise.</p></dd></dl><dl><dt>parameter start</dt><dd><p>offset in string at which we start.</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-rfind"><a href="#val-rfind" class="anchor"></a><code><span class="keyword">val</span> rfind : ?&#8288;start:int <span>&#45;&gt;</span> pattern:[ `Reverse ] <a href="index.html#type-pattern">pattern</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> int</code></dt><dd><p>Search for <code>pattern</code> in the string, right-to-left.</p><dl><dt>returns</dt><dd><p>the offset of the start of the first match from the right, -1 otherwise.</p></dd></dl><dl><dt>parameter start</dt><dd><p>right-offset in string at which we start.</p></dd></dl></dd></dl></div></body></html>