comparison base/src/java/lang/Character.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 5d01af878529
children fb3aa8075988
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
153 } 153 }
154 } 154 }
155 155
156 bool CharacterIsDefined( dchar ch ){ 156 bool CharacterIsDefined( dchar ch ){
157 version(Tango){ 157 version(Tango){
158 return tango.text.UnicodeData.getUnicodeData(ch) !is null; 158 return (ch in tango.text.UnicodeData.unicodeData) !is null;
159 } else { // Phobos 159 } else { // Phobos
160 implMissing( __FILE__, __LINE__); 160 implMissing( __FILE__, __LINE__);
161 return false; 161 return false;
162 } 162 }
163 } 163 }