Mercurial > projects > dwt-mac
diff dwt/dwthelper/utils.d @ 62:10eaa644646f
Ported dwt.widgets.Combo
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 23 Dec 2008 22:21:02 +0100 |
parents | c74ba20de292 |
children | 990305995bc6 |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Tue Dec 23 00:35:24 2008 +0100 +++ b/dwt/dwthelper/utils.d Tue Dec 23 22:21:02 2008 +0100 @@ -7,6 +7,7 @@ public import Math = tango.math.Math; public import tango.core.Exception : IllegalArgumentException, IOException, PlatformException; +public import tango.text.convert.Utf; import tango.io.Stdout; @@ -537,6 +538,14 @@ return cont[ offset .. offset+len ].dup; } +String new_String(String cont){ + return cont.dup; +} + +String new_String(wchar[] cont){ + return cont.toString16(); +} + public String toUpperCase( String str ){ return tango.text.Unicode.toUpper( str ); }