comparison base/src/java/util/ResourceBundle.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents bbe49769ec18
children 46539f5c5993
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
11 version(Tango){ 11 version(Tango){
12 //import tango.text.Util; 12 //import tango.text.Util;
13 import tango.io.device.File; 13 import tango.io.device.File;
14 import tango.text.locale.Core; 14 import tango.text.locale.Core;
15 } else { // Phobos 15 } else { // Phobos
16 import std.file;
16 } 17 }
17 18
18 19
19 class ResourceBundle { 20 class ResourceBundle {
20 21
180 public static ResourceBundle getBundle( CString name ){ 181 public static ResourceBundle getBundle( CString name ){
181 try{ 182 try{
182 version(Tango){ 183 version(Tango){
183 return new ResourceBundle( cast(String) File.get(name) ); 184 return new ResourceBundle( cast(String) File.get(name) );
184 } else { // Phobos 185 } else { // Phobos
185 implMissing(__FILE__,__LINE__); 186 return new ResourceBundle( cast(String) std.file.read(name) );
186 } 187 }
187 } 188 }
188 catch( IOException e){ 189 catch( IOException e){
189 e.msg ~= " file:" ~ name; 190 e.msg ~= " file:" ~ name;
190 throw e; 191 throw e;