ll.ReplaceSubString (InitialString: string, SubString: string, NewSubString: string, Count: number) -> stringSearches InitialString and replaces instances of SubString with NewSubString. Zero Count means "replace all". Positive Count moves left to right. Negative moves right to left.
ll.ReplaceSubString(
'test',
'test',
'test',
3.14
)
{
"def": "func",
"desc": "Searches InitialString and replaces instances of SubString with NewSubString. Zero Count means \"replace all\". Positive Count moves left to right. Negative moves right to left.",
"energy": 10,
"sleep": 0,
"must_use": true,
"link": "https://wiki.secondlife.com/wiki/LlReplaceSubString",
"private": false,
"takesSelf": false,
"name": "ReplaceSubString",
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "string"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "InitialString",
"desc": "The original string in which to hunt for substring matches.",
"type": [
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "SubString",
"desc": "The original substring to find.",
"type": [
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "NewSubString",
"desc": "The new substring used to replace.",
"type": [
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Count",
"desc": "The max number of replacements to make. Zero Count means \"replace all\". Positive Count moves left to right. Negative moves right to left.",
"type": [
{
"def": "simple",
"value": "number"
}
],
"variadic": false,
"optional": false
}
]
}
]
}