diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs index b3ff76555a..490de74463 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs @@ -777,76 +777,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine } } - /** - * @brief Sane substring functions. - */ - public string xmrSubstring(string s, int offset) - { - if(offset >= s.Length) - return ""; - return s.Substring(offset); - } - - // C# style - public string xmrSubstring(string s, int offset, int length) - { - if(length <= 0) - return ""; - if(offset >= s.Length) - return ""; - if(length > s.Length - offset) - length = s.Length - offset; - return s.Substring(offset, length); - } - - // java style - public string xmrJSubstring(string s, int beg, int end) - { - if(end <= beg) - return ""; - if(beg >= s.Length) - return ""; - if(end > s.Length) - end = s.Length; - return s.Substring(beg, end - beg); - } - - /** - * @brief String begins and ends with test. - */ - public bool xmrStringStartsWith(string s, string t) - { - return s.StartsWith(t); - } - - public bool xmrStringEndsWith(string s, string t) - { - return s.EndsWith(t); - } - - /** - * @brief [Last]IndexOf with starting position (just like C#) - */ - public int xmrStringIndexOf(string haystack, string needle) - { - return haystack.IndexOf(needle); - } - - public int xmrStringIndexOf(string haystack, string needle, int startat) - { - return haystack.IndexOf(needle, startat); - } - - public int xmrStringLastIndexOf(string haystack, string needle) - { - return haystack.LastIndexOf(needle); - } - - public int xmrStringLastIndexOf(string haystack, string needle, int startat) - { - return haystack.LastIndexOf(needle, startat); - } - /** * @brief These conversions throw exceptions if there is anything stinky... */