Difference between revisions of "LlStringTrim"
Jump to navigation
Jump to search
m |
|||
Line 16: | Line 16: | ||
{{!}}Description | {{!}}Description | ||
{{!}}- | {{!}}- | ||
{{!}}STRING_TRIM_HEAD | {{!}}[[STRING_TRIM_HEAD]] | ||
{{!}}0x01 | {{!}}0x01 | ||
{{!}}Trims spaces off the beginning. | {{!}}Trims spaces off the beginning. | ||
{{!}}- | {{!}}- | ||
{{!}}STRING_TRIM_TAIL | {{!}}[[STRING_TRIM_TAIL]] | ||
{{!}}0x02 | {{!}}0x02 | ||
{{!}}Trims spaces off the end | {{!}}Trims spaces off the end | ||
{{!}}- | {{!}}- | ||
{{!}}STRING_TRIM | {{!}}[[STRING_TRIM]] | ||
{{!}}0x03 | {{!}}0x03 | ||
{{!}}Trims spaces off the beginning and end. | {{!}}Trims spaces off the beginning and end. |
Revision as of 03:57, 17 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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* mask |
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
It is no mistake that (STRING_TRIM_HEAD | STRING_TRIM_TAIL) == STRING_TRIM