comparison base/src/java/lang/Integer.d @ 114:46539f5c5993

Added implementation of ResourceBundle.
author kntroh
date Fri, 08 Apr 2011 20:12:20 +0900
parents 9f4c18c268b2
children 536e43f63c81
comparison
equal deleted inserted replaced
113:fb3aa8075988 114:46539f5c5993
93 } 93 }
94 catch( IllegalArgumentException e ){ 94 catch( IllegalArgumentException e ){
95 throw new NumberFormatException( e ); 95 throw new NumberFormatException( e );
96 } 96 }
97 } else { // Phobos 97 } else { // Phobos
98 implMissing( __FILE__, __LINE__ ); 98 try{
99 return 0; 99 return std.conv.parse!(int)( s, radix );
100 }
101 catch( std.conv.ConvException e ){
102 throw new NumberFormatException( e );
103 }
100 } 104 }
101 } 105 }
102 106
103 public static int parseInt( String s ){ 107 public static int parseInt( String s ){
104 return parseInt( s, 10 ); 108 return parseInt( s, 10 );