From 9dfb906666e5d5d1a17fdfd170fbd58254a0cce0 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 18 Nov 2018 22:40:59 +0000 Subject: add a few string functions to OSSL --- .../ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs index bc5aa5c..1c003a0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs @@ -1287,5 +1287,55 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase { return m_OSSL_Functions.osGetAgentCountry(agentId); } + + public LSL_String osStringSubString(LSL_String src, LSL_Integer offset) + { + return m_OSSL_Functions.osStringSubString(src, offset); + } + + public LSL_String osStringSubString(LSL_String src, LSL_Integer offset, LSL_Integer length) + { + return m_OSSL_Functions.osStringSubString(src, offset, length); + } + + public LSL_Integer osStringStartsWith(LSL_String src, LSL_String value, LSL_Integer ignorecase) + { + return m_OSSL_Functions.osStringStartsWith(src, value, ignorecase); + } + + public LSL_Integer osStringEndsWith(LSL_String src, LSL_String value, LSL_Integer ignorecase) + { + return m_OSSL_Functions.osStringEndsWith(src, value, ignorecase); + } + + public LSL_Integer osStringIndexOf(LSL_String src, LSL_String value, LSL_Integer ignorecase) + { + return m_OSSL_Functions.osStringIndexOf(src, value, ignorecase); + } + + public LSL_Integer osStringIndexOf(LSL_String src, LSL_String value, LSL_Integer offset, LSL_Integer count, LSL_Integer ignorecase) + { + return m_OSSL_Functions.osStringIndexOf(src, value, offset, count, ignorecase); + } + + public LSL_Integer osStringLastIndexOf(LSL_String src, LSL_String value, LSL_Integer ignorecase) + { + return m_OSSL_Functions.osStringLastIndexOf(src, value, ignorecase); + } + + public LSL_Integer osStringLastIndexOf(LSL_String src, LSL_String value, LSL_Integer offset, LSL_Integer count, LSL_Integer ignorecase) + { + return m_OSSL_Functions.osStringLastIndexOf(src, value, offset, count, ignorecase); + } + + public LSL_String osStringRemove(LSL_String src, LSL_Integer offset, LSL_Integer count) + { + return m_OSSL_Functions.osStringRemove(src, offset, count); + } + + public LSL_String osStringReplace(LSL_String src, LSL_String oldvalue, LSL_String newvalue) + { + return m_OSSL_Functions.osStringReplace(src, oldvalue, newvalue); + } } } -- cgit v1.1