diff -r 284c2fc6c1cd -r 393359908179 str.cxx --- a/str.cxx Sat Jul 14 16:31:21 2012 +0300 +++ b/str.cxx Sat Jul 14 17:24:21 2012 +0300 @@ -340,6 +340,18 @@ return compare (c.chars()); } +int str::icompare (const char* c) { + return icompare (str ((char*)c)); +} + +int str::icompare (str c) { + str a = text; + a.tolower(); + str b = c; + b.tolower(); + return strcmp (a.chars(), b.chars()); +} + // ============================================================================ str str::tolower () { str n = text;