Difference between revisions of "LlInsertString"

From Second Life Wiki
Jump to: navigation, search
(Add SplitLine function to 'See Also' section)
(Links to Examples corrected)
Line 18: Line 18:
 
|also_events
 
|also_events
 
|also_tests
 
|also_tests
|also_articles={{LSL DefineRow||[[Library_Combined_Library#str_replace|str_replace]]|replace all instances of a string with another string in a target string}}
+
|also_articles={{LSL DefineRow||[[:Category:LSL Examples|Examples:]] [[Library_Combined_Library#str_replace|str_replace]]|Replace all instances of a string with another string in a target string}}
{{LSL DefineRow||[[Examples|SplitLine]]|Insert 'new line' escape codes at certain positions of a string}}
+
{{LSL DefineRow||[[:Category:LSL Examples|Examples:]] [[SplitLine]]|Insert 'new line' escape codes at certain positions of a string}}
 
|notes
 
|notes
 
|helpers
 
|helpers

Revision as of 02:06, 8 October 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

•  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 position, string src );