Difference between revisions of "LlStringTrim"

From Second Life Wiki
Jump to navigation Jump to search
Line 34: Line 34:
|also_events
|also_events
|also_articles
|also_articles
|notes=This function is available in 1.13.4
|notes=This function is available in 1.13.4 onwards...


It is no mistake that <code>(STRING_TRIM_HEAD {{!}} STRING_TRIM_TAIL) == STRING_TRIM</code>
It is no mistake that <code>(STRING_TRIM_HEAD {{!}} STRING_TRIM_TAIL) == STRING_TRIM</code>

Revision as of 05:33, 23 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

This function is available in 1.13.4 onwards...

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 );