Changeset 262:e10de397beb1

Show
Ignore:
Timestamp:
07/06/08 09:33:12 (3 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

ADD version TANGOSVN

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/ByteArrayOutputStream.d

    r257 r262  
    66public import dwt.dwthelper.OutputStream; 
    77import dwt.dwthelper.utils; 
    8 import tango.io.GrowBuffer; 
     8import tango.io.Buffer; 
     9version(TANGOSVN) 
     10    import tango.io.Buffer; 
     11
     12else{ 
     13    import tango.io.GrowBuffer; 
     14
    915 
    1016public class ByteArrayOutputStream : dwt.dwthelper.OutputStream.OutputStream { 
  • dwt/dwthelper/File.d

    r238 r262  
    66import dwt.dwthelper.utils; 
    77 
    8 static import tango.io.FileConst; 
     8version(TANGOSVN) 
     9    static import tango.io.model.IFile; 
     10
     11else{ 
     12    static import tango.io.FileConst; 
     13
    914static import tango.io.FilePath; 
    1015static import tango.io.FileSystem; 
     
    2025 
    2126    static this(){ 
     27version(TANGOSVN) 
     28        separator = tango.io.model.IFile.FileConst.PathSeparatorString; 
     29        separatorChar = tango.io.model.IFile.FileConst.PathSeparatorChar; 
     30        pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; 
     31        pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; 
     32} 
     33else{ 
    2234        separator = tango.io.FileConst.FileConst.PathSeparatorString; 
    2335        separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; 
    2436        pathSeparator = tango.io.FileConst.FileConst.SystemPathString; 
    2537        pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; 
     38} 
    2639    } 
    2740 
  • dwt/dwthelper/InflaterInputStream.d

    r134 r262  
    88import tango.io.Stdout; 
    99import tango.io.compress.ZlibStream; 
    10  
     10version(TANGOSVN) 
     11    import tango.io.Conduit; 
     12
    1113class InputStreamWrapper : tango.io.model.IConduit.InputStream { 
    1214 
     
    2123        return res; 
    2224    } 
     25version(TANGOSVN) 
     26    void[] load (void[] dst = null) { 
     27            return Conduit.load (this, dst); 
     28    } 
     29} 
     30 
    2331 
    2432    tango.io.model.IConduit.InputStream clear (){ 
  • dwt/dwthelper/utils.d

    r255 r262  
    150150 
    151151    public static String toHexString( int i ){ 
     152version(TANGOSVN) 
     153        return tango.text.convert.Integer.toString(i, "x" ); 
     154} 
     155else{ 
    152156        return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Hex ); 
     157} 
    153158    } 
    154159 
    155160    public static String toOctalString( int i ){ 
     161version(TANGOSVN) 
     162        return tango.text.convert.Integer.toString(i, "o" ); 
     163} 
     164else{ 
    156165        return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Octal ); 
     166} 
    157167    } 
    158168 
    159169    public static String toBinaryString( int i ){ 
     170version(TANGOSVN) 
     171        return tango.text.convert.Integer.toString(i, "b" ); 
     172} 
     173else{ 
    160174        return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Binary ); 
     175} 
    161176    } 
    162177 
     
    636651 
    637652static String toHex(uint value, bool prefix = true, int radix = 8){ 
     653version(TANGOSVN) 
     654    return tango.text.convert.Integer.toString( 
     655            value, 
     656            radix is 10 ? "d" : 
     657            radix is  8 ? "o" : 
     658            radix is 16 ? "x" : 
     659                          "d" ); 
     660} 
     661else{ 
    638662    return tango.text.convert.Integer.toString( 
    639663            value, 
     
    645669            ); 
    646670} 
     671} 
    647672 
    648673class RuntimeException : Exception {