Mercurial > projects > dwt-linux
diff dwt/dwthelper/utils.d @ 109:b5304cc16c4e
missing import
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 18 Jan 2008 23:53:59 +0100 |
parents | 0179b2e17eb2 |
children | de2578a843a7 |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Fri Jan 18 21:29:59 2008 +0100 +++ b/dwt/dwthelper/utils.d Fri Jan 18 23:53:59 2008 +0100 @@ -6,6 +6,7 @@ public import dwt.dwthelper.System; import tango.io.Stdout; +import tango.text.Unicode; import tango.stdc.stdlib : exit; void implMissing( char[] file, uint line ){ @@ -31,7 +32,9 @@ alias ArrayWrapperT!(char[]) ArrayWrapperString2; dchar getFirstCodepoint( char[] str ){ - return str[0]; + foreach( dchar d; str ){ + return d; + } } dchar CharacterToLower( dchar c ){ dchar[] r = tango.text.Unicode.toLower( [c] );