Difference between revisions of "LlInsertString"

From Second Life Wiki
Jump to: navigation, search
(should go under articles or in helpers; code needs to run flawlessly and when not flawless it needs to have the caveats clearly stated.)
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
|also_articles
+
|also_articles={{LSL DefineRow||[[Library_Combined_Library#str_replace|CombinedLibrary: str_replace]]}}
 
|notes
 
|notes
|sort=InsertString
+
|helpers
 
|cat1=String
 
|cat1=String
 
|cat2
 
|cat2

Revision as of 05:13, 9 August 2007

Summary

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

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.
All Issues ~ Search JIRA for related Bugs

Examples

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

See Also

Functions

•  llDeleteSubString
•  llGetSubString

Articles

•  CombinedLibrary: str_replace

Deep Notes

Search JIRA for related Issues

Signature

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