Mercurial > projects > dwt-win
diff dwt/dwthelper/utils.d @ 235:ec7da638647f
Fix string compare in dwthelper/utils.d
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 08 Jun 2008 15:12:08 +0200 |
parents | 5ff96efb6f4b |
children | fd9c62a2998e d10ff1f47f84 |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Mon Jun 02 21:55:56 2008 +0200 +++ b/dwt/dwthelper/utils.d Sun Jun 08 15:12:08 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 ){