Mercurial > projects > dwt-linux
changeset 254:8bca790583c3
Fix string compare in dwthelper/utils
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 08 Jun 2008 15:11:48 +0200 |
parents | cf113c9ff968 |
children | 5a30aa9820f3 |
files | dwt/dwthelper/utils.d dwt/widgets/Display.d |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
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 ){