Given a string, replaces all occurrences of a search string with a replacement string.
int ReplaceString(char text, int maxlength, const char search, const char replace, bool caseSensitive)
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.
Number of replacements that were performed.