Fix tabbing.... Please fix your editors so they do tabbing correctly!!! (Spaces...
[IRC.git] / Robust / src / ClassLibrary / Character.java
index ab3f3b6a9db3e8d5f4871a381dda97002ca894f8..1e45a7266927746dfe32f2e1282b6c9d2a39e935 100644 (file)
@@ -1,5 +1,5 @@
 public class Character {
-  
+
   public static int digit(char ch, int radix) {
     if (ch>='0'&&ch<='9')
       return ch-'0';
@@ -14,13 +14,13 @@ public class Character {
     }
     return -1;
   }
-  
+
   public static boolean isDigit(char ch) {
     // TODO This is a temparory implementation, there are other groups of digits
     // besides '0' ~ '9'
     if (ch>='0'&&ch<='9')
       return true;
-    else 
+    else
       return false;
   }
 
@@ -54,20 +54,20 @@ public class Character {
     }
     return returnValue;
   }
-  
+
   public static final int MIN_RADIX = 2;
   public static final int MAX_RADIX = 36;
-  
+
   public static char forDigit(int digit, int radix) {
     if ((digit >= radix) || (digit < 0)) {
-        return '\0';
+      return '\0';
     }
     if ((radix < Character.MIN_RADIX) || (radix > Character.MAX_RADIX)) {
-        return '\0';
+      return '\0';
     }
     if (digit < 10) {
-        return (char)('0' + digit);
+      return (char)('0' + digit);
     }
     return (char)('a' - 10 + digit);
-}
+  }
 }