#19053 [Opn->Bgs]: why strcasecmp and not stricmp
| From: | rasmus@php.net | Date: | Thu, 22 Aug 2002 16:54:39 +0000 |
| Subject: | #19053 [Opn->Bgs]: why strcasecmp and not stricmp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17575@lists.php.net to get a copy of this message | ||
ID: 19053
Updated by: rasmus@php.net
Reported By: gdbjohnson@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Win2k
PHP Version: 4.2.0
New Comment:
Because strcasecmp is the name of the corresponding C function that
most people are familiar with.
Previous Comments:
------------------------------------------------------------------------
[2002-08-22 12:52:47] gdbjohnson@hotmail.com
Probably not worth much of your time, but I was wondering why you
didn't choose to name strcasecmp as stricmp, since it is more intuitive
with your function naming scheme:
ie:
strstr : stristr
strpos : strrpos
etc.
It's just that I didn't find strcasecmp until later. And "strcasecmp"
almost implies a case-sensitive search, from the name itself.
Just a thought.
cheers,
Greg
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19053&edit=1