comparison dwt/program/Program.d @ 361:4bffbf81e2d6

redirect direct prints to DwtLogger
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 21:00:06 +0100
parents 8ebacc5c07dc
children
comparison
equal deleted inserted replaced
360:ee1dd551f5b1 361:4bffbf81e2d6
30 version (TANGOSVN) { 30 version (TANGOSVN) {
31 import tango.io.device.File; 31 import tango.io.device.File;
32 } else { 32 } else {
33 import tango.io.FileConduit; 33 import tango.io.FileConduit;
34 } 34 }
35 import tango.text.stream.LineIterator; 35 import tango.io.stream.Lines;
36 36
37 version( build ){ 37 version( build ){
38 pragma(link, "gnomeui-2" ); 38 pragma(link, "gnomeui-2" );
39 } 39 }
40 40
600 static String[][ String ] gnome24_getMimeInfo() { 600 static String[][ String ] gnome24_getMimeInfo() {
601 version(TANGOSVN) 601 version(TANGOSVN)
602 scope file = new tango.io.device.File.File ("/usr/share/mime/globs"); 602 scope file = new tango.io.device.File.File ("/usr/share/mime/globs");
603 else 603 else
604 scope file = new FileConduit ("/usr/share/mime/globs"); 604 scope file = new FileConduit ("/usr/share/mime/globs");
605 scope it = new LineIterator!(char)(file); 605 scope it = new Lines!(char)(file);
606 // process file one line at a time 606 // process file one line at a time
607 String[][ String ] mimeInfo; 607 String[][ String ] mimeInfo;
608 foreach (line; it ){ 608 foreach (line; it ){
609 int colon = line.indexOf(':'); 609 int colon = line.indexOf(':');
610 if( colon is line.length ){ 610 if( colon is line.length ){