Difference between revisions of "LlStringTrim"

From Second Life Wiki
Jump to: navigation, search
m
Line 4: Line 4:
 
|return_type=string
 
|return_type=string
 
|p1_type=string|p1_name=src|p1_desc
 
|p1_type=string|p1_name=src|p1_desc
|p2_type=integer|p2_name=type|p2_desc=STRING_TRIM* mask
+
|p2_type=integer|p2_name=type|p2_desc=STRING_TRIM* flag(s)
 
|func_footnote
 
|func_footnote
 
|func_desc
 
|func_desc

Revision as of 03:58, 17 March 2007

Summary

Function: string llStringTrim( string src, integer type );

Returns a string that is src with leading and/or trailing spaces trimmed from it.

• string src
• integer type STRING_TRIM* flag(s)
Constant Description
STRING_TRIM_HEAD 0x01 Trims spaces off the beginning.
STRING_TRIM_TAIL 0x02 Trims spaces off the end
STRING_TRIM 0x03 Trims spaces off the beginning and end.

Examples

Notes

It is no mistake that (STRING_TRIM_HEAD | STRING_TRIM_TAIL) == STRING_TRIM

Deep Notes

Search JIRA for related Issues

Signature

function string llStringTrim( string src, integer type );