Thread: CharToLower()
View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-19-2019 , 14:18   Re: CharToLower()
Reply With Quote #4

CharToLower only works on single characters. As Wyon said, StrEqual has an optional argument that you can set to false to do a case-insensitive comparison (i.e. it will consider "HELP", "help", "hElP", etc... to be equal).

Actually, that reminds me, I wonder if the doc creator will ever be updated to show the default values of optional arguments. The actual signature for StrEqual is

PHP Code:
stock bool StrEqual(const char[] str1, const char[] str2bool caseSensitive=true
but the "=true" is missing from the documentation page for it.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline