1.1 --- a/plugins/include/string.inc Sun Mar 01 16:39:25 2009 -0500
1.2 +++ b/plugins/include/string.inc Sun Mar 01 16:41:44 2009 -0500
1.3 @@ -284,9 +284,10 @@
1.4 * @param maxlength Maximum length of the string buffer.
1.5 * @param search String to search for.
1.6 * @param replace String to replace the search string with.
1.7 + * @param caseSensitive If true (default), search is case sensitive.
1.8 * @return Number of replacements that were performed.
1.9 */
1.10 -native ReplaceString(String:text[], maxlength, const String:search[], const String:replace[]);
1.11 +native ReplaceString(String:text[], maxlength, const String:search[], const String:replace[], bool:caseSensitive=true);
1.12
1.13 /**
1.14 * Given a string, replaces the first occurrence of a search string with a
1.15 @@ -300,11 +301,12 @@
1.16 * a strlen() call on the search parameter.
1.17 * @param replaceLen If higher than -1, its value will be used instead of
1.18 * a strlen() call on the replace parameter.
1.19 + * @param caseSensitive If true (default), search is case sensitive.
1.20 * @return Index into the buffer (relative to the start) from where
1.21 * the last replacement ended, or -1 if no replacements were
1.22 * made.
1.23 */
1.24 -native ReplaceStringEx(String:text[], maxlength, const String:search[], const String:replace[], searchLen=-1, replaceLen=-1);
1.25 +native ReplaceStringEx(String:text[], maxlength, const String:search[], const String:replace[], searchLen=-1, replaceLen=-1, bool:caseSensitive=true);
1.26
1.27 /**
1.28 * Returns the number of bytes a character is using. This is