OsStringReplace: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>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..." |
imported>Ubit No edit summary |
||
| Line 2: | Line 2: | ||
|permissions=true | |permissions=true | ||
|threat_level= | |threat_level= | ||
|function_syntax= | |function_syntax=string osStringReplace(string src, string oldvalue, string newvalue) | ||
|ossl_example=<source lang = "lsl"> | |ossl_example=<source lang = "lsl"> | ||
// Example of osStringRemove | // Example of osStringRemove | ||
| Line 21: | Line 21: | ||
} | } | ||
</source> | </source> | ||
|description= | |description= Returns a string n which all occurrences of the string oldvalue in string src are replaced by string newvalue | ||
| | | | ||
}} | }} | ||
Revision as of 01:00, 2 May 2019
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));
}
}
| |