Re: sorting std::vector<string> ignoring case



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). Adding the leading underscore accomplished
nothing in this case.

--
Later,
Jerry.

The universe is a figment of its own imagination.
.



Relevant Pages

  • Re: sorting std::vector ignoring case
    ... This is extremely nitpicking, but I believe stricmp and _stricmp are ... I thought you were saying to avoid stricmp because it isn't "ANSI ... However, like I said, "neither are Standard C functions". ...
    (microsoft.public.vc.stl)
  • Re: sorting std::vector ignoring case
    ... I suggested the use of _stricmp because its ... name it's conformant with standard. ... I thought you were saying to avoid stricmp because it isn't "ANSI ... way, so is stricmp, for the reasons I gave in the "P.S." part of my earlier ...
    (microsoft.public.vc.stl)
  • Re: sorting std::vector ignoring case
    ... I suggested the use of _stricmp because its ... name it's conformant with standard. ... so I don't think leaving it alone would have hurt ... Doug Harrison ...
    (microsoft.public.vc.stl)
  • Re: Compare without regard to case
    ... >> comparing two strings without regard to case. ... stricmp is not standard C or C++. ...
    (comp.lang.cpp)
  • Re: C++ and input, it cant be platform specific
    ... there's certainly nothing in the standard that tries to say how ... the run-time has to interact with the OS or anything like that -- it ... The universe is a figment of its own imagination. ...
    (alt.comp.lang.learn.c-cpp)

Loading