# HG changeset patch # User Frank Benoit # Date 1211200549 -7200 # Node ID 679fb4a215dca5e724095615f79458ad84a27700 # Parent 2d153805c8cdd7f21f61afe626d16a0aeea02f5f Added the compareToIgnoreCase to utils diff -r 2d153805c8cd -r 679fb4a215dc dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Mon May 19 02:36:32 2008 +0200 +++ b/dwt/dwthelper/utils.d Mon May 19 14:35:49 2008 +0200 @@ -599,6 +599,10 @@ return tango.text.Unicode.toFold(src) == tango.text.Unicode.toFold(other); } +public int compareToIgnoreCase( String src, String other ){ + return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other); +} + public bool startsWith( String src, String pattern ){ if( src.length < pattern.length ){ return false;