Difference between revisions of "LlInsertString"

From Second Life Wiki
Jump to navigation Jump to search
Line 16: Line 16:
|also_functions={{LSL DefineRow||[[llDeleteSubString]]}}
|also_functions={{LSL DefineRow||[[llDeleteSubString]]}}
{{LSL DefineRow||[[llGetSubString]]}}
{{LSL DefineRow||[[llGetSubString]]}}
{{LSL DefineRow||[[User:Anylyn_Hax#str_replace()|str_replace()]]}}
|also_events
|also_events
|also_tests
|also_tests

Revision as of 04:13, 9 August 2007

Summary

Function: string llInsertString( string dst, integer position, string src );
0.0 Forced Delay
10.0 Energy

Returns a string dst with src inserted starting at position.

• string dst
• integer position
• string src

position does not support negative indexes.

Caveats

  • If position is out of bounds the script continues to execute without an error message.

Examples

llInsertString("input", 2, "put out")// returns "input output"

See Also

Functions

•  llDeleteSubString
•  llGetSubString
•  str_replace()

Deep Notes

Signature

function string llInsertString( string dst, integer position, string src );