ocaml-containers/3.0/containers/CCString/Find/index.html
Simon Cruanes 2fa8e5f507 fix doc
2020-08-04 09:49:29 -04:00

2 lines
No EOL
2.5 KiB
HTML
Raw Permalink 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.CCString.Find)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><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">CCString</a> &#x00BB; Find</nav><h1>Module <code>CCString.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> <span>_ pattern</span></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> <span><span>[ `Direct ]</span> <a href="index.html#type-pattern">pattern</a></span></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> <span><span>[ `Reverse ]</span> <a href="index.html#type-pattern">pattern</a></span></code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val</span> find : <span>?&#8288;start:int</span> <span>&#45;&gt;</span> <span>pattern:<span><span>[ `Direct ]</span> <a href="index.html#type-pattern">pattern</a></span></span> <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 : <span>?&#8288;start:int</span> <span>&#45;&gt;</span> <span>pattern:<span><span>[ `Reverse ]</span> <a href="index.html#type-pattern">pattern</a></span></span> <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>