OsStringSubString

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{osslfunc |permissions=true |threat_level=... |function_syntax=string osStringSubString(string src, integer offset)<br /> string osStringSubString(string src, integer offset,...")
 
m (Added threat level and delay value)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|permissions=true
 
|permissions=true
|threat_level=...
+
|threat_level=None
 +
|delay=0
 
|function_syntax=string osStringSubString(string src, integer offset)<br />
 
|function_syntax=string osStringSubString(string src, integer offset)<br />
 
string osStringSubString(string src, integer offset, integer length)<br />
 
string osStringSubString(string src, integer offset, integer length)<br />
 
 
 
|ossl_example=<source lang = "lsl">
 
|ossl_example=<source lang = "lsl">
 
// Example of osStringSubString
 
// Example of osStringSubString

Latest revision as of 17:45, 18 March 2019

string osStringSubString(string src, integer offset)

string osStringSubString(string src, integer offset, integer length)

...
Threat Level None
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
// Example of osStringSubString
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch me to show osStringSubString");
    }
 
    touch_start(integer n)
    {
        string src = "abcdef";
        string sub = osStringSubString(src, 1);
        llOwnerSay( "osStringSubString(src, 1) of \"" + src + "\" is \"" + sub + "\"");
        sub = osStringSubString(src, 1, 2);
        llOwnerSay( "osStringSubString(src, 1, 2) of \"" + src + "\" is \"" + sub + "\"");
    }
}
Personal tools
General
About This Wiki