Difference between revisions of "LlStringTrim"
Jump to navigation
Jump to search
Harry Linden (talk | contribs) |
|||
Line 1: | Line 1: | ||
{{#vardefine:type|function}}{{LSL_Generic/preview}} | |||
{{LSL_Function | {{LSL_Function | ||
|func_id=330|func_sleep=0.0|func_energy=10.0 | |func_id=330|func_sleep=0.0|func_energy=10.0 |
Revision as of 12:59, 30 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Note! Preview Documentation
This only exists on the preview grid
Summary
Function: string llStringTrim( string src, integer type );330 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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. |
Caveats
Examples
Notes
This function is available in 1.13.4 onwards...
It is no mistake that (STRING_TRIM_HEAD | STRING_TRIM_TAIL) == STRING_TRIM