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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gdbjohnson at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 18:01:29 2024 UTC