diff dwtx/jface/text/rules/NumberRule.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents eb21d3dfc767
children eb98a5cbfd78
line wrap: on
line diff
--- a/dwtx/jface/text/rules/NumberRule.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/rules/NumberRule.d	Mon Sep 08 00:51:37 2008 +0200
@@ -50,7 +50,7 @@
 public class NumberRule : IRule {
 
     /** Internal setting for the un-initialized column constraint */
-    protected static final int UNDEFINED= -1;
+    protected static const int UNDEFINED= -1;
     /** The token to be returned when this rule is successful */
     protected IToken fToken;
     /** The column constraint */
@@ -63,7 +63,7 @@
      * @param token the token to be returned
      */
     public this(IToken token) {
-        Assert.isNotNull(token);
+        Assert.isNotNull(cast(Object)token);
         fToken= token;
     }
 
@@ -86,11 +86,11 @@
      */
     public IToken evaluate(ICharacterScanner scanner) {
         int c= scanner.read();
-        if (Character.isDigit(cast(wchar)c)) {
+        if (Character.isDigit(cast(char)c)) {
             if (fColumn is UNDEFINED || (fColumn is scanner.getColumn() - 1)) {
                 do {
                     c= scanner.read();
-                } while (Character.isDigit(cast(wchar) c));
+                } while (Character.isDigit(cast(char) c));
                 scanner.unread();
                 return fToken;
             }