Mercurial > projects > dwt-win
changeset 224:679fb4a215dc
Added the compareToIgnoreCase to utils
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 19 May 2008 14:35:49 +0200 |
parents | 2d153805c8cd |
children | cba62ee36290 |
files | dwt/dwthelper/utils.d |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;