mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Adds an OSSL command for regular expression-based string replacement. Parameters
are osReplaceString(string source, string patter, string replace, integer count, integer start) The count parameter specifies the total number of replacements to make, -1 makes all replacements.
This commit is contained in:
@@ -472,6 +472,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_OSSL_Functions.osMatchString(src, pattern, start);
|
||||
}
|
||||
|
||||
public LSL_String osReplaceString(string src, string pattern, string replace, int count, int start)
|
||||
{
|
||||
return m_OSSL_Functions.osReplaceString(src,pattern,replace,count,start);
|
||||
}
|
||||
|
||||
|
||||
// Information about data loaded into the region
|
||||
public string osLoadedCreationDate()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user