Mercurial > projects > dwt-win
changeset 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 | 116b04c0d8c9 |
children | 9c1bb90eba13 |
files | dwt/dwthelper/utils.d |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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 ){