diff dwt/dwthelper/utils.d @ 77:990305995bc6

Ported dwt.widgets.Spinner
author Jacob Carlborg <doob@me.com>
date Wed, 24 Dec 2008 13:06:45 +0100
parents 10eaa644646f
children 0dc55b17c290
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d	Wed Dec 24 12:32:20 2008 +0100
+++ b/dwt/dwthelper/utils.d	Wed Dec 24 13:06:45 2008 +0100
@@ -7,7 +7,6 @@
 public import Math = tango.math.Math;
 
 public import tango.core.Exception : IllegalArgumentException, IOException, PlatformException;
-public import tango.text.convert.Utf;
 
 import tango.io.Stdout;
 
@@ -414,8 +413,8 @@
     return res.length;
 }
 
-alias tango.text.convert.Utf.toString16 toString16;
-alias tango.text.convert.Utf.toString toString;
+public alias tango.text.convert.Utf.toString16 toString16;
+public alias tango.text.convert.Utf.toString toString;
 
 int getRelativeCodePointOffset( String str, int startIndex, int searchRelCp ){
     int ignore;
@@ -697,6 +696,19 @@
            "d" );
 }
 
+public alias tango.stdc.stringz.toStringz toStringz;
+public alias tango.stdc.stringz.toString16z toString16z;
+public alias tango.stdc.stringz.fromStringz fromStringz;
+public alias tango.stdc.stringz.fromString16z fromString16z;
+
+struct String_
+{
+    static String valueOf (int v)
+    {
+        return tango.text.convert.Integer.toString(v, 10);
+    }
+}
+
 class RuntimeException : Exception {
     this( String e = null){
         super(e);