diff qt/d1/qt/qtd/Str.d @ 254:34a37904ff77

(none)
author maxter
date Sun, 30 Aug 2009 10:59:56 +0000
parents 37eed70de029
children
line wrap: on
line diff
--- a/qt/d1/qt/qtd/Str.d	Sun Aug 30 09:59:12 2009 +0000
+++ b/qt/d1/qt/qtd/Str.d	Sun Aug 30 10:59:56 2009 +0000
@@ -11,11 +11,11 @@
 
 module qt.qtd.Str;
 
-import tango.text.convert.Utf : toString;
+    import tango.text.convert.Utf : toString;
 public import tango.stdc.stringz : fromStringz;
 
-alias char[] string;
-alias wchar[] wstring;
+    alias char[] string;
+    alias wchar[] wstring;
 
 alias char* stringz;
 alias char* cstringz;
@@ -36,20 +36,8 @@
 
 	return argv;
 }
-
-version(Windows)
-{
-    export extern(C) void _d_toUtf8(wchar* arr, uint size, string* str)
-    {
-        *str = toString(arr[0..size]);
-    }
-}
-else
-{
-    extern(C) void _d_toUtf8(wchar* arr, uint size, string* str)
-    {
-        *str = toString(arr[0..size]);
-    }
+extern(C) void qtd_toUtf8(wchar* arr, uint size, string* str){
+    *str = toString(arr[0..size]);
 }