http://opensimulator.org/index.php?title=OsStringReplace&feed=atom&action=history
OsStringReplace - Revision history
2024-03-29T06:34:09Z
Revision history for this page on the wiki
MediaWiki 1.19.9
http://opensimulator.org/index.php?title=OsStringReplace&diff=47666&oldid=prev
Ubit at 01:02, 2 May 2019
2019-05-02T01:02:58Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:02, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 17:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>         string src = "abcdefdedhdekef";</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>         string src = "abcdefdedhdekef";</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>         string val = "de";</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>         string val = "de";</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         <del class="diffchange diffchange-inline">strinf </del>nval = "";</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         <ins class="diffchange diffchange-inline">string </ins>nval = "";</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>         llOwnerSay((string)osStringReplace(src, val, nval));</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>         llOwnerSay((string)osStringReplace(src, val, nval));</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td></tr>
</table>
Ubit
http://opensimulator.org/index.php?title=OsStringReplace&diff=47665&oldid=prev
Ubit at 01:02, 2 May 2019
2019-05-02T01:02:22Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:02, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 10:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     state_entry()</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     state_entry()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         llSay(PUBLIC_CHANNEL, "Touch me to show <del class="diffchange diffchange-inline">osStringRemove</del>");</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         llSay(PUBLIC_CHANNEL, "Touch me to show <ins class="diffchange diffchange-inline">osStringReplace</ins>");</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     touch_start(integer n)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     touch_start(integer n)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         string src = "<del class="diffchange diffchange-inline">abcdef</del>";</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         string src = "<ins class="diffchange diffchange-inline">abcdefdedhdekef</ins>";</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         string val = "<del class="diffchange diffchange-inline">DE</del>";</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         string val = "<ins class="diffchange diffchange-inline">de";</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         llOwnerSay((string)<del class="diffchange diffchange-inline">osStringIndexOf</del>(src, val, <del class="diffchange diffchange-inline">TRUE</del>));</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        strinf nval = "</ins>";</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         llOwnerSay((string)<ins class="diffchange diffchange-inline">osStringReplace</ins>(src, val, <ins class="diffchange diffchange-inline">nval</ins>));</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|description= Returns a string <del class="diffchange diffchange-inline">n </del>which all occurrences of the string oldvalue in string src are replaced by string newvalue</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|description= Returns a string <ins class="diffchange diffchange-inline">in </ins>which all occurrences of the string oldvalue in string src are replaced by string newvalue</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
</table>
Ubit
http://opensimulator.org/index.php?title=OsStringReplace&diff=47664&oldid=prev
Ubit at 01:00, 2 May 2019
2019-05-02T01:00:26Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:00, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|permissions=true</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|permissions=true</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|function_syntax=<del class="diffchange diffchange-inline">integer osStringIndexOf</del>(string src, string <del class="diffchange diffchange-inline">value</del>, <del class="diffchange diffchange-inline">integer ignoreCase</del>)</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|function_syntax=<ins class="diffchange diffchange-inline">string osStringReplace</ins>(string src, string <ins class="diffchange diffchange-inline">oldvalue</ins>, <ins class="diffchange diffchange-inline">string newvalue</ins>)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Example of osStringRemove</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Example of osStringRemove</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|description= <del class="diffchange diffchange-inline">Reports the zero-based index </del>of the <del class="diffchange diffchange-inline">first occurrence of </del>string <del class="diffchange diffchange-inline">value withing </del>string <del class="diffchange diffchange-inline">scr. returns -1 if not found. It can compare ignoring case with ignoreCase TRUE(1) or considering case if FALSE(0);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|description= <ins class="diffchange diffchange-inline">Returns a string n which all occurrences </ins>of the string <ins class="diffchange diffchange-inline">oldvalue in string src are replaced by </ins>string <ins class="diffchange diffchange-inline">newvalue</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
</table>
Ubit
http://opensimulator.org/index.php?title=OsStringReplace&diff=47659&oldid=prev
Ubit: Created page with "{{osslfunc |permissions=true |threat_level= |function_syntax=integer osStringIndexOf(string src, string value, integer ignoreCase) |ossl_example=<source lang = "lsl"> // Examp..."
2019-05-02T00:53:04Z
<p>Created page with "{{osslfunc |permissions=true |threat_level= |function_syntax=integer osStringIndexOf(string src, string value, integer ignoreCase) |ossl_example=<source lang = "lsl"> // Examp..."</p>
<p><b>New page</b></p><div>{{osslfunc<br />
|permissions=true<br />
|threat_level=<br />
|function_syntax=integer osStringIndexOf(string src, string value, integer ignoreCase)<br />
|ossl_example=<source lang = "lsl"><br />
// Example of osStringRemove<br />
<br />
default<br />
{<br />
state_entry()<br />
{<br />
llSay(PUBLIC_CHANNEL, "Touch me to show osStringRemove");<br />
}<br />
<br />
touch_start(integer n)<br />
{<br />
string src = "abcdef";<br />
string val = "DE";<br />
llOwnerSay((string)osStringIndexOf(src, val, TRUE));<br />
}<br />
}<br />
</source><br />
|description= Reports the zero-based index of the first occurrence of string value withing string scr. returns -1 if not found. It can compare ignoring case with ignoreCase TRUE(1) or considering case if FALSE(0);<br />
|<br />
}}</div>
Ubit