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:
Mic Bowman
2012-03-01 14:49:49 -08:00
parent 7a88d21e59
commit 8a375f3c30
3 changed files with 32 additions and 0 deletions

View File

@@ -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()
{