Mercurial > projects > qtd
diff qt/d2/qt/qtd/Str.d @ 218:438877e90dbe
D2 windows fixes
author | eldar |
---|---|
date | Tue, 14 Jul 2009 17:07:32 +0000 |
parents | 7dd099050621 |
children | 27497bbe62a1 |
line wrap: on
line diff
--- a/qt/d2/qt/qtd/Str.d Tue Jul 14 15:56:04 2009 +0000 +++ b/qt/d2/qt/qtd/Str.d Tue Jul 14 17:07:32 2009 +0000 @@ -11,18 +11,10 @@ module qt.qtd.Str; -version (Tango) -{ - public import tango.text.convert.Utf : toUTF8 = toString; - alias char[] string; -} -else -{ - import std.utf : toUTF8; -} +import std.utf : toUTF8; version(D_Version2) { - private import core.sys.posix.stdio; +// private import core.sys.posix.stdio; private import core.stdc.string; version = druntime; @@ -45,11 +37,6 @@ return argv; } -version(Tango) { - import tango.stdc.stringz : toStringz, fromStringz; -} - - public string fromStringz(const (char) *s) { return s ? s[0 .. strlen(s)].idup : cast(string)null;