Given a string, replaces the first occurrence of a search string with a replacement string.
int ReplaceStringEx(char text, int maxlength, const char search, const char replace, int searchLen, int replaceLen, 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 higher than -1, its value will be used instead of a strlen() call on the search parameter.
If higher than -1, its value will be used instead of a strlen() call on the replace parameter.
If true (default), search is case sensitive.
Index into the buffer (relative to the start) from where the last replacement ended, or -1 if no replacements were made.