php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19053 why strcasecmp and not stricmp
Submitted: 2002-08-22 12:52 UTC Modified: 2002-08-22 12:54 UTC
From: gdbjohnson at hotmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.0 OS: Win2k
Private report: No CVE-ID: None
 [2002-08-22 12:52 UTC] gdbjohnson at hotmail dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 12:54 UTC] rasmus@php.net
Because strcasecmp is the name of the corresponding C function that most people are familiar with.  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC