~mandel/ubuntuone-windows-installer/fix_null_pointer_start

« back to all changes in this revision

Viewing changes to tools/Nant/doc/help/functions/string.index-of(System.String,System.String).html

  • Committer: Manuel de la Pena
  • Date: 2010-07-08 13:22:59 UTC
  • Revision ID: mandel@themacaque.com-20100708132259-y1jgyuyqfe9stt8u
Updated build script to run tests and added all the required tools so far.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
  <!-- Documenting IndexOf-->
 
4
  <head>
 
5
    <meta http-equiv="Content-Language" content="en-ca" />
 
6
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
7
    <link rel="stylesheet" type="text/css" href="../style.css" />
 
8
    <title>string::index-of Function</title>
 
9
  </head>
 
10
  <body>
 
11
    <table width="100%" border="0" cellspacing="0" cellpadding="2" class="NavBar">
 
12
      <tr>
 
13
        <td class="NavBar-Cell">
 
14
          <a href="http://nant.sourceforge.net">
 
15
            <b>NAnt</b>
 
16
          </a>
 
17
          <img alt="-&gt;" src="../images/arrow.gif" />
 
18
          <a href="../index.html">Help</a>
 
19
          <img alt="-&gt;" src="../images/arrow.gif" />
 
20
          <a href="index.html">Function Reference</a>
 
21
          <img alt="-&gt;" src="../images/arrow.gif" /> string::index-of</td>
 
22
        <td class="NavBar-Cell" align="right">
 
23
                        v0.90</td>
 
24
      </tr>
 
25
    </table>
 
26
    <h1>string::index-of</h1>
 
27
    <p> Returns the position of the first occurrence in the specified string of the given search string. </p>
 
28
    <h3>Usage</h3>
 
29
    <code>int string::index-of(<span class="parameter">source</span>, <span class="parameter">value</span>)
 
30
            </code>
 
31
    <p />
 
32
    <h3>Parameters</h3>
 
33
    <div class="table">
 
34
      <table>
 
35
        <tr>
 
36
          <th>Name</th>
 
37
          <th>Type</th>
 
38
          <th>Description</th>
 
39
        </tr>
 
40
        <tr>
 
41
          <td>source</td>
 
42
          <td>string</td>
 
43
          <td>The string to search.</td>
 
44
        </tr>
 
45
        <tr>
 
46
          <td>value</td>
 
47
          <td>string</td>
 
48
          <td>The string to locate within <i>source</i>.</td>
 
49
        </tr>
 
50
      </table>
 
51
    </div>
 
52
    <h3>Return Value</h3>
 
53
    <p> The lowest-index position of <i>value</i> in <i>source</i> if it is found, or -1 if <i>source</i> does not contain <i>value</i>. </p>
 
54
    <p> If <i>value</i> is an empty string, the return value will always be <code>0</code>. </p>
 
55
    <h3>Remarks</h3> This function performs a case-sensitive word search using the invariant culture. <h3>Examples</h3><ul class="examples"><li><pre class="code">string::index-of('testing string', 'test') ==&gt; 0</pre></li><li><pre class="code">string::index-of('testing string', '') ==&gt; 0</pre></li><li><pre class="code">string::index-of('testing string', 'Test') ==&gt; -1</pre></li><li><pre class="code">string::index-of('testing string', 'ing') ==&gt; 4</pre></li></ul><h3>Requirements</h3><div style="margin-left: 20px;"><b>Assembly:</b> NAnt.Core (0.90.3780.0)
 
56
            </div></body>
 
57
</html>
 
 
b'\\ No newline at end of file'