add a few string functions to OSSL

This commit is contained in:
UbitUmarov
2018-11-18 22:40:59 +00:00
parent 01b84ef46b
commit 9dfb906666
3 changed files with 237 additions and 1 deletions

View File

@@ -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);
}
}
}