llStringTrim

From Second Life Wiki
Revision as of 03:57, 17 March 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

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* 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.

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