diff dwt/dwthelper/utils.d @ 254:8bca790583c3

Fix string compare in dwthelper/utils
author Frank Benoit <benoit@tionex.de>
date Sun, 08 Jun 2008 15:11:48 +0200
parents 66441b183ff5
children 5a30aa9820f3
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d	Sun Jun 08 03:19:38 2008 +0200
+++ b/dwt/dwthelper/utils.d	Sun Jun 08 15:11:48 2008 +0200
@@ -591,10 +591,10 @@
 }
 
 public int compareToIgnoreCase( String src, String other ){
-    return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other);
+    return compareTo( tango.text.Unicode.toFold(src), tango.text.Unicode.toFold(other));
 }
 public int compareTo( String src, String other ){
-    return src < other;
+    return typeid(String).compare( cast(void*)&src, cast(void*)&other );
 }
 
 public bool startsWith( String src, String pattern ){