diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 9167632..91cddf1 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -3062,6 +3062,14 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3062 | return ret; | 3062 | return ret; |
3063 | } | 3063 | } |
3064 | 3064 | ||
3065 | public string llStringTrim(string src, int type) | ||
3066 | { | ||
3067 | if (type == (int)LSL_BaseClass.STRING_TRIM_HEAD) { return src.TrimStart(); } | ||
3068 | if (type == (int)LSL_BaseClass.STRING_TRIM_TAIL) { return src.TrimEnd(); } | ||
3069 | if (type == (int)LSL_BaseClass.STRING_TRIM) { return src.Trim(); } | ||
3070 | return src; | ||
3071 | } | ||
3072 | |||
3065 | // | 3073 | // |
3066 | // OpenSim functions | 3074 | // OpenSim functions |
3067 | // | 3075 | // |