llInsertString

From Second Life Wiki
Revision as of 00:47, 15 January 2008 by Asuka Neely (talk | contribs)
Jump to navigation Jump to search

Summary

Function: string llInsertString( string dst, integer pos, string src );

Returns a string dst with src inserted starting at pos.

• string dst destination of insertion
• integer pos position index for insert, first is 0
• string src source string to be inserted

position does not support negative indexes.

Caveats

  • If position is out of bounds the script continues to execute without an error message.
All Issues ~ Search JIRA for related Bugs

Examples

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

See Also

Functions

•  llDeleteSubString
•  llGetSubString

Articles

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

Deep Notes

Search JIRA for related Issues

Signature

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