comparing strings

Roberto Alsina ralsina at unl.edu.ar
Mon Feb 14 09:42:12 GMT 2000


On Sun, 13 Feb 2000, Martin Wiebusch wrote:

> Hi,
> just a simple question: Is there a method in the string class to compare
> strings without regard to upper/lower case?

QString s1="one string";
QString s2="One String";

if (s1.lower()==s2.lower())
	printf ("The strings are equal regardless of case");

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
The stone age didn't end for a lack of stone" Firoz Rasul





More information about the KDevelop mailing list