Thanks to Hashbox for a patch to:

Implementing llStringTrim and hooking in osRegionNotice
This commit is contained in:
alondria
2008-02-01 14:18:00 +00:00
parent 96f6add4ad
commit 0eb4e85988
3 changed files with 25 additions and 2 deletions

View File

@@ -3062,6 +3062,14 @@ namespace OpenSim.Region.ScriptEngine.Common
return ret;
}
public string llStringTrim(string src, int type)
{
if (type == (int)LSL_BaseClass.STRING_TRIM_HEAD) { return src.TrimStart(); }
if (type == (int)LSL_BaseClass.STRING_TRIM_TAIL) { return src.TrimEnd(); }
if (type == (int)LSL_BaseClass.STRING_TRIM) { return src.Trim(); }
return src;
}
//
// OpenSim functions
//