OsStringReplace

From OpenSimulator

Revision as of 18:00, 1 May 2019 by Ubit (Talk | contribs)

Jump to: navigation, search
string osStringReplace(string src, string oldvalue, string newvalue)
Returns a string n which all occurrences of the string oldvalue in string src are replaced by string newvalue
Threat Level No threat level specified
Permissions Use of this function is always allowed by default
Extra Delay No function delay specified
Example(s)
// Example of osStringRemove
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch me to show osStringRemove");
    }
 
    touch_start(integer n)
    {
        string src = "abcdef";
        string val = "DE";
        llOwnerSay((string)osStringIndexOf(src, val, TRUE));
    }
}


Personal tools
General
About This Wiki