http://opensimulator.org/index.php?title=OsStringStartsWith&feed=atom&action=history
OsStringStartsWith - Revision history
2024-03-28T13:52:23Z
Revision history for this page on the wiki
MediaWiki 1.19.9
http://opensimulator.org/index.php?title=OsStringStartsWith&diff=50564&oldid=prev
Chris Weymann: correct return type
2021-02-11T10:51:00Z
<p>correct return type</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 10:51, 11 February 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=None</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=None</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|delay=0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|delay=0</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">string </del>osStringStartsWith(string src, string start, integer ignore_case)</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|function_syntax=<ins class="diffchange diffchange-inline">integer </ins>osStringStartsWith(string src, string start, integer ignore_case)</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 use of osStringStartsWith</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Example use of osStringStartsWith</div></td></tr>
</table>
Chris Weymann
http://opensimulator.org/index.php?title=OsStringStartsWith&diff=47429&oldid=prev
Kcozens: Created
2019-03-19T03:01:53Z
<p>Created</p>
<p><b>New page</b></p><div>{{osslfunc<br />
|permissions=true<br />
|threat_level=None<br />
|delay=0<br />
|function_syntax=string osStringStartsWith(string src, string start, integer ignore_case)<br />
|ossl_example=<source lang = "lsl"><br />
// Example use of osStringStartsWith<br />
<br />
do_test(string s, string start, integer ignore_case)<br />
{<br />
integer found;<br />
string result = "";<br />
<br />
found = osStringStartsWith(s, start, ignore_case);<br />
if (found != 0)<br />
result = "string " + s + " starts with " + start;<br />
else<br />
result = "string " + s + " does not start with " + start;<br />
if (ignore_case)<br />
result += " (ignoring case)";<br />
llOwnerSay(result);<br />
}<br />
<br />
default<br />
{<br />
state_entry()<br />
{<br />
llSay(PUBLIC_CHANNEL, "Touch me to see examples of osStringStartsWith");<br />
}<br />
<br />
touch_start(integer n)<br />
{<br />
string src = "abcdef";<br />
<br />
do_test(src, "ab", 0);<br />
do_test(src, "AB", 0);<br />
do_test(src, "AB", 1);<br />
do_test(src, "cd", 1);<br />
}<br />
}<br />
</source><br />
|description=Returns 1 if the string in src starts with the characters in start. Case is ignored if ignore_case is 1 otherwise the case of the characters matters.<br />
}}</div>
Kcozens