llInsertString

From Second Life Wiki
Revision as of 07:07, 5 October 2007 by Huney Jewell (talk | contribs) (Add SplitLine example to 'See Also' section)
Jump to navigation Jump to search

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

Articles

•  CombinedLibrary: str_replace replace all instances of a string with another string in a target string
•  SplitLine Insert 'new line' escape codes at certain positions of a string

Deep Notes

Signature

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