mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
2 lines
No EOL
2.9 KiB
HTML
2 lines
No EOL
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Find (containers.CCString.Find)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="generator" content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><nav id="top"><a href="../index.html">Up</a> — <span class="package">package <a href="../../index.html">containers</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">CCString.Find</span></h1></header><div class="spec type" id="type-pattern"><a href="#type-pattern" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>_ pattern</code><code></code><code></code></div><div class="doc"></div></div><div class="spec val" id="val-compile"><a href="#val-compile" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compile : string <span class="keyword">‑></span> [ `Direct ] <a href="index.html#type-pattern">pattern</a></code></div><div class="doc"></div></div><div class="spec val" id="val-rcompile"><a href="#val-rcompile" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>rcompile : string <span class="keyword">‑></span> [ `Reverse ] <a href="index.html#type-pattern">pattern</a></code></div><div class="doc"></div></div><div class="spec val" id="val-find"><a href="#val-find" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>find : ?⁠start:int <span class="keyword">‑></span> pattern:[ `Direct ] <a href="index.html#type-pattern">pattern</a> <span class="keyword">‑></span> string <span class="keyword">‑></span> int</code></div><div class="doc"><p>Search for <code class="code">pattern</code> in the string, left-to-right.</p><ul class="at-tag"><li><span class="at-tag return">Returns</span> the offset of the first match, -1 otherwise.</li><li><span class="at-tag parameter">Parameter</span> <span class="module-path">start</span>: offset in string at which we start.</li></ul></div></div><div class="spec val" id="val-rfind"><a href="#val-rfind" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>rfind : ?⁠start:int <span class="keyword">‑></span> pattern:[ `Reverse ] <a href="index.html#type-pattern">pattern</a> <span class="keyword">‑></span> string <span class="keyword">‑></span> int</code></div><div class="doc"><p>Search for <code class="code">pattern</code> in the string, right-to-left.</p><ul class="at-tag"><li><span class="at-tag return">Returns</span> the offset of the start of the first match from the right, -1 otherwise.</li><li><span class="at-tag parameter">Parameter</span> <span class="module-path">start</span>: right-offset in string at which we start.</li></ul></div></div></body></html> |