Re: sorting std::vector<string> ignoring case
- From: "Doug Harrison [MVP]" <dsh@xxxxxxxx>
- Date: Sat, 12 May 2007 11:00:19 -0500
On Fri, 11 May 2007 22:03:40 -0600, Jerry Coffin <jcoffin@xxxxxxxxx> wrote:
In article <e7kCsV#kHHA.4876@xxxxxxxxxxxxxxxxxxxx>,
chololennon@xxxxxxxxxxx says...
Ok, I understand your "P.S." point. You're right. Only one thing: I didn't
say that _stricmp is ANSI compatible (I'm sorry again if I wasn't very clear
or very specfic). I suggested the use of _stricmp because (like you said) its
name it's conformant with standard (because it's declared inside string.h).
The name stricmp conformed just as well (all names starting with 'str'
are reserved, per section 7.26.11 of the C99 standard, or 7.13.8 of the
original C89/90 standard).
Which was my "P.S." point. :)
Adding the leading underscore accomplished
nothing in this case.
Well, it did achieve consistency for the non-standard functions MS provides
as part of the CRT, but that's about it. If stricmp were ever to be
standardized, there would be a lot of pressure to be compatible with
existing practice, so I don't think leaving it alone would have hurt
anything.
--
Doug Harrison
Visual C++ MVP
.
- References:
- sorting std::vector<string> ignoring case
- From: Ed
- Re: sorting std::vector<string> ignoring case
- From: Darko Miletic
- Re: sorting std::vector<string> ignoring case
- From: Cholo Lennon
- Re: sorting std::vector<string> ignoring case
- From: Doug Harrison [MVP]
- Re: sorting std::vector<string> ignoring case
- From: Cholo Lennon
- Re: sorting std::vector<string> ignoring case
- From: Doug Harrison [MVP]
- Re: sorting std::vector<string> ignoring case
- From: Cholo Lennon
- Re: sorting std::vector<string> ignoring case
- From: Doug Harrison [MVP]
- Re: sorting std::vector<string> ignoring case
- From: Cholo Lennon
- Re: sorting std::vector<string> ignoring case
- From: Jerry Coffin
- sorting std::vector<string> ignoring case
- Prev by Date: Re: sorting std::vector<string> ignoring case
- Next by Date: Re: sorting std::vector<string> ignoring case
- Previous by thread: Re: sorting std::vector<string> ignoring case
- Next by thread: Re: sorting std::vector<string> ignoring case
- Index(es):
Relevant Pages
|
Loading