aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
authoralondria2008-02-01 14:18:00 +0000
committeralondria2008-02-01 14:18:00 +0000
commit0eb4e85988627a76e5538fce617a1c53b1bc97b7 (patch)
tree6d49477dbfdfeac8658a0c660bc26361bbbe1189 /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
parent* ODE:Fix copy and paste bug in space calculation limits (diff)
downloadopensim-SC-0eb4e85988627a76e5538fce617a1c53b1bc97b7.zip
opensim-SC-0eb4e85988627a76e5538fce617a1c53b1bc97b7.tar.gz
opensim-SC-0eb4e85988627a76e5538fce617a1c53b1bc97b7.tar.bz2
opensim-SC-0eb4e85988627a76e5538fce617a1c53b1bc97b7.tar.xz
Thanks to Hashbox for a patch to:
Implementing llStringTrim and hooking in osRegionNotice
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs8
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 //