comparing strings

Jacek Wojdel wojdel at chrysler.kbs.twi.tudelft.nl
Mon Feb 14 08:43:05 GMT 2000


On Sun, 13 Feb 2000, you wrote:
> Hi,
> just a simple question: Is there a method in the string class to compare
> strings without regard to upper/lower case?

In standard C - strcasecmp, strncasecmp
In Qt 1.x - stricmp (in fact just an alias to qstricmp)
In Qt 2.x - use combination of QString::lower and QString::compare

-- 
+-------------------------------------+
|from: J.C.Wojdel                     |
|      J.C.Wojdel at cs.tudelft.nl       |
+-------------------------------------+




More information about the KDevelop mailing list