Update compiler and includes to version 1.7.0.
This commit is contained in:
Vendored
+6
-17
@@ -433,30 +433,19 @@ stock CharToLower(chr)
|
||||
* @return The index of the first occurrence of the character
|
||||
* in the string, or -1 if the character was not found.
|
||||
*/
|
||||
stock FindCharInString(const String:str[], c, bool:reverse = false)
|
||||
stock int FindCharInString(const char[] str, char c, bool reverse = false)
|
||||
{
|
||||
new i, len
|
||||
|
||||
len = strlen(str);
|
||||
int len = strlen(str);
|
||||
|
||||
if (!reverse)
|
||||
{
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
if (!reverse) {
|
||||
for (int i = 0; i < len; i++) {
|
||||
if (str[i] == c)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = len - 1; i >= 0; i--)
|
||||
{
|
||||
} else {
|
||||
for (int i = len - 1; i >= 0; i--) {
|
||||
if (str[i] == c)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user