gimp:
the best way to make a case insensitive string is to use basic_string with custom char_traits - ie derive from char_traits, make the ''compare'' func case insensitive then typedef a case insensitive string like this:
typedef basic_string string_nocase;
(but use better names!)
but if its just a comparison you''re after (not a full blown case insensitive string class), the stricmp method you used is fine.
The "string" datatype...underrated?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement