|
@@ -91,6 +91,7 @@ import java.internal.Exceptions;
|
|
case \'-\':
|
|
case \'-\':
|
|
isNeg = true;
|
|
isNeg = true;
|
|
continue;
|
|
continue;
|
|
|
|
+ case \'+\':
|
|
case \'\\n\':
|
|
case \'\\n\':
|
|
case \'\\t\':
|
|
case \'\\t\':
|
|
case \'\\r\':
|
|
case \'\\r\':
|
|
@@ -155,6 +156,7 @@ import java.internal.Exceptions;
|
|
case \'-\':
|
|
case \'-\':
|
|
isNeg = true;
|
|
isNeg = true;
|
|
continue;
|
|
continue;
|
|
|
|
+ case \'+\':
|
|
case \'\\n\':
|
|
case \'\\n\':
|
|
case \'\\t\':
|
|
case \'\\t\':
|
|
case \'\\r\':
|
|
case \'\\r\':
|
|
@@ -237,11 +239,11 @@ import java.internal.Exceptions;
|
|
public static function parseFloat( x : String ) : Float {
|
|
public static function parseFloat( x : String ) : Float {
|
|
return 0.0;
|
|
return 0.0;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static function instance<T>( v : { }, c : Class<T> ) : T {
|
|
public static function instance<T>( v : { }, c : Class<T> ) : T {
|
|
return Std.is(v, c) ? cast v : null;
|
|
return Std.is(v, c) ? cast v : null;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static function random( x : Int ) : Int {
|
|
public static function random( x : Int ) : Int {
|
|
if (x <= 0) return 0;
|
|
if (x <= 0) return 0;
|
|
return Std.int(Math.random() * x);
|
|
return Std.int(Math.random() * x);
|