diff dwt/dwthelper/utils.d @ 35:7d135fe0caf2

Ported dwt.graphics.Cursor and dwt.widgets.MenuItem
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sun, 14 Sep 2008 23:32:29 +0200
parents 5123b17c98ef
children db5a898b2119
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d	Sun Sep 14 01:45:57 2008 +0200
+++ b/dwt/dwthelper/utils.d	Sun Sep 14 23:32:29 2008 +0200
@@ -525,6 +525,10 @@
     static alias CharacterIsWhitespace isWhitespace;
 }
 
+String new_String( String cont, int offset, int len ){
+    return cont[ offset .. offset+len ].dup;
+}
+
 public String toUpperCase( String str ){
     return tango.text.Unicode.toUpper( str );
 }