mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
add a few string functions to OSSL
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user