Re: sorting std::vector<string> ignoring case
- From: "Cholo Lennon" <chololennon@xxxxxxxxxxx>
- Date: Wed, 9 May 2007 00:18:22 -0300
I'm sorry for my wrong expression, with 'portable' I wanted to say ANSI compatible. Also I didn't say that the original names has
been removed. They exist yet. Still is valid to use them in VC8 but, like you appointed, they are deprecated.
Regards
..
--
Cholo Lennon
Bs.As.
ARG
"Doug Harrison [MVP]" <dsh@xxxxxxxx> escribió en el mensaje news:9rs1431nbov0cdeilcavhl671ci1njg6os@xxxxxxxxxx
On Tue, 8 May 2007 17:11:35 -0300, "Cholo Lennon" <chololennon@xxxxxxxxxxx>
wrote:
Warning: 'stricmp' is not portable and should be used like '_stricmp' through 'string.h' header (name without underscore is for
backward compatibility)
Regards
Neither function is "portable". The underscore-prefaced name for this
function (and many others) was introduced to move them out of the user
namespace and into the reserved namespace, but I'm not aware that any of
the original names has ever been removed. (VC8 has marked them deprecated,
though.) If anything, the underscored ones are *less* portable, at least
when it comes to standard Unix system functions such as open, close, etc.
P.S. The name "stricmp" doesn't even step into the user namespace, because
names beginning with str[a-z] (and mem[a-z] for that matter) are reserved
in the global namespace.
--
Doug Harrison
Visual C++ MVP
.
- Follow-Ups:
- Re: sorting std::vector<string> ignoring case
- From: Doug Harrison [MVP]
- Re: sorting std::vector<string> ignoring case
- 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]
- 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