native replace_string(text, maxlength, const search, const replace, bool:caseSensitive = true);
String to perform search and replacements on.
Maximum length of the string buffer.
String to search for.
String to replace the search string with.
If true (default), search is case sensitive.
Given a string, replaces all occurrences of a search string with a
Similar to replace_all() stock, but implemented as native and
with different algorithm. This native doesn't error on bad
buffer size and will smartly cut off the string in a way
that pushes old data out.
Only available in 1.8.3 and above.
This supports multi-byte characters (UTF-8) on case insensitive comparison.
Number of replacements that were performed.