Debian Codegraph @

docs/manual/_index_.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>index</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b>
12 index
13 </b></font></table></table>
14 <p>A function that can be used in <a href="Formulas.html">Formulas</a>.</p>
15 <h2>Syntax and semantics</h2>
16 <dl>
17 <dt><b><code><font size=+1>index</font></code></b> (<i><code><font size=+1>string$</font></code></i>, <i><code><font size=+1>part$</font></code></i>)
18 <dd>return the first location of the substring <i><code><font size=+1>part$</font></code></i> inside <i><code><font size=+1>string$</font></code></i>, or 0 if not found.</dd>
19 <dt><b><code><font size=+1>index</font></code></b> (<i><code><font size=+1>strings$#</font></code></i>, <i><code><font size=+1>s$</font></code></i>)
20 <dd>look up whether and where <i><code><font size=+1>s$</font></code></i> first occurs in <i><code><font size=+1>strings$#</font></code></i>.</dd>
21 </dl>
22 <h2>See also</h2>
23 <dl>
24 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="_rindex_.html"><b><code><font size=+1>rindex</font></code></b></a> for the <i>last</i> occurrence</dd>
25 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="_index_caseInsensitive_.html"><b><code><font size=+1>index_caseInsensitive</font></code></b></a> for <i>case-insensitive</i> matching</dd>
26 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="_index_regex_.html"><b><code><font size=+1>index_regex</font></code></b></a> for <i>regular-expression</i> matching</dd>
27 </dl>
28 <h3>Links to this page</h3>
29 <ul>
30 <li><a href="Functions.html">Functions</a>
31 </ul>
32 <hr>
33 <address>
34 <p>© Paul Boersma 2023</p>
35 </address>
36 </body>
37 </html>