Simple trim() Function
Note: There is now a native LSL function for trimming strings called llStringTrim(), you should use it instead. This is being kept for archival purposes only.
This is a simple function for trimming leading and trailing spaces from a string, useful when parsing configuration from a notecard (at least that’s where I use it).
LSL
-
-
-
{
-
-
-
}
-
-
-
{
-
-
-
}
-
-
return source;
-
-
}