Mercurial > projects > dwt2
comparison base/src/java/lang/Character.d @ 88:9e0ab372d5d8
Revert from TypeInfo/ClassInfo to java.lang.Class
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 19 Apr 2009 11:10:09 +0200 |
parents | fcf926c91ca4 |
children | 5d5bd660917f |
comparison
equal
deleted
inserted
replaced
87:8594250b1d1c | 88:9e0ab372d5d8 |
---|---|
1 module java.lang.Character; | 1 module java.lang.Character; |
2 | 2 |
3 import java.lang.exceptions; | 3 import java.lang.exceptions; |
4 import java.lang.util; | 4 import java.lang.util; |
5 import java.lang.Class; | |
5 | 6 |
6 version(Tango){ | 7 version(Tango){ |
7 static import tango.text.Unicode; | 8 static import tango.text.Unicode; |
8 } else { // Phobos | 9 } else { // Phobos |
9 static import std.utf; | 10 static import std.utf; |
123 this( char c ){ | 124 this( char c ){ |
124 // must be correct for container storage | 125 // must be correct for container storage |
125 implMissing( __FILE__, __LINE__); | 126 implMissing( __FILE__, __LINE__); |
126 } | 127 } |
127 | 128 |
128 private static TypeInfo TYPE_; | 129 private static Class TYPE_; |
129 public static TypeInfo TYPE(){ | 130 public static Class TYPE(){ |
130 if( TYPE_ is null ){ | 131 if( TYPE_ is null ){ |
131 TYPE_ = typeid(char); | 132 TYPE_ = Class.fromType!(char); |
132 } | 133 } |
133 return TYPE_; | 134 return TYPE_; |
134 } | 135 } |
135 | 136 |
136 public dchar charValue(){ | 137 public dchar charValue(){ |