comparison dwtx/ui/internal/forms/widgets/FormTextModel.d @ 197:0ea0c9f9008f

Remove tango deprecation warnings.
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Feb 2009 19:35:22 +0100
parents 04b47443bb01
children
comparison
equal deleted inserted replaced
196:66bceed20048 197:0ea0c9f9008f
27 import dwt.dwthelper.utils; 27 import dwt.dwthelper.utils;
28 import dwt.dwthelper.InputStream; 28 import dwt.dwthelper.InputStream;
29 import dwtx.dwtxhelper.Collection; 29 import dwtx.dwtxhelper.Collection;
30 30
31 static import tango.text.xml.Document; 31 static import tango.text.xml.Document;
32 static import tango.io.Buffer; 32 static import tango.io.device.Array;
33 33
34 public class FormTextModel { 34 public class FormTextModel {
35 // private static const DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory 35 // private static const DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory
36 // .newInstance(); 36 // .newInstance();
37 37
94 } 94 }
95 _parseTaggedText(taggedText, expandURLs); 95 _parseTaggedText(taggedText, expandURLs);
96 } 96 }
97 97
98 public void parseInputStream(InputStream is_, bool expandURLs) { 98 public void parseInputStream(InputStream is_, bool expandURLs) {
99 auto buf = new tango.io.Buffer.Buffer( 1024 ); 99 auto buf = new tango.io.device.Array.Array( 1024 );
100 { 100 {
101 int l; 101 int l;
102 byte[1024] a = void; 102 byte[1024] a = void;
103 while((l = is_.read(a)) > 0 ){ 103 while((l = is_.read(a)) > 0 ){
104 buf.append( a[ 0 .. l ] ); 104 buf.append( a[ 0 .. l ] );