Difference between revisions of "LlInsertString"

From Second Life Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{LSL_Function/negative_index|false|position}}{{LSL_Function
 
{{LSL_Function/negative_index|false|position}}{{LSL_Function
 
|func_id=96|func_sleep=0.0|func_energy=10.0
 
|func_id=96|func_sleep=0.0|func_energy=10.0
|func=llInsertString|return_type=string|p1_type=string|p1_name=dst|p2_type=integer|p2_name=position|p3_type=string|p3_name=src
+
|func=llInsertString|return_type=string
 +
|p1_type=string|p1_name=dst
 +
|p2_type=integer|p2_name=position
 +
|p3_type=string|p3_name=src
 
|func_footnote
 
|func_footnote
 
|func_desc
 
|func_desc
Line 8: Line 11:
 
|caveats
 
|caveats
 
|constants
 
|constants
|examples
+
|examples=
 +
<pre>llInsertString("input", 2, "put out")// returns "input output"</pre>
 
|helpers
 
|helpers
 
|also_functions={{LSL DefineRow||[[llDeleteSubString]]}}
 
|also_functions={{LSL DefineRow||[[llDeleteSubString]]}}

Revision as of 13:01, 8 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

Deep Notes

Search JIRA for related Issues

Signature

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