瀏覽代碼

@:core_api is now @:coreApi

Nicolas Cannasse 13 年之前
父節點
當前提交
3bdeafa995
共有 100 個文件被更改,包括 501 次插入491 次删除
  1. 1 1
      std/cpp/_std/Date.hx
  2. 1 1
      std/cpp/_std/EReg.hx
  3. 1 1
      std/cpp/_std/Hash.hx
  4. 1 1
      std/cpp/_std/IntHash.hx
  5. 1 1
      std/cpp/_std/Reflect.hx
  6. 1 1
      std/cpp/_std/Std.hx
  7. 1 1
      std/cpp/_std/StringBuf.hx
  8. 1 1
      std/cpp/_std/Sys.hx
  9. 1 1
      std/cpp/_std/Type.hx
  10. 1 1
      std/cpp/_std/Xml.hx
  11. 1 1
      std/cpp/_std/haxe/Resource.hx
  12. 1 1
      std/cpp/_std/haxe/Utf8.hx
  13. 1 1
      std/cpp/_std/sys/FileSystem.hx
  14. 1 1
      std/cpp/_std/sys/io/File.hx
  15. 1 1
      std/cpp/_std/sys/io/FileInput.hx
  16. 1 1
      std/cpp/_std/sys/io/FileOutput.hx
  17. 1 1
      std/cpp/_std/sys/io/Process.hx
  18. 1 1
      std/cpp/_std/sys/net/Host.hx
  19. 1 1
      std/cpp/_std/sys/net/Socket.hx
  20. 0 0
      std/cs/_std/Array.hx
  21. 5 5
      std/cs/_std/Date.hx
  22. 3 3
      std/cs/_std/EReg.hx
  23. 64 64
      std/cs/_std/Hash.hx
  24. 1 1
      std/cs/_std/IntHash.hx
  25. 21 21
      std/cs/_std/Math.hx
  26. 11 11
      std/cs/_std/Reflect.hx
  27. 27 28
      std/cs/_std/Std.hx
  28. 1 1
      std/cs/_std/StringBuf.hx
  29. 1 1
      std/cs/_std/Sys.hx
  30. 32 32
      std/cs/_std/Type.hx
  31. 1 1
      std/cs/_std/Xml.hx
  32. 1 0
      std/cs/_std/haxe/Int64.hx
  33. 4 3
      std/cs/_std/sys/FileSystem.hx
  34. 8 7
      std/cs/_std/sys/io/File.hx
  35. 11 10
      std/cs/_std/sys/io/Process.hx
  36. 1 1
      std/flash/_std/EReg.hx
  37. 1 1
      std/flash/_std/Hash.hx
  38. 1 1
      std/flash/_std/IntHash.hx
  39. 1 1
      std/flash/_std/Reflect.hx
  40. 1 1
      std/flash/_std/Std.hx
  41. 1 1
      std/flash/_std/Type.hx
  42. 7 7
      std/flash/_std/Xml.hx
  43. 5 3
      std/flash/_std/haxe/Resource.hx
  44. 1 1
      std/flash8/_std/Hash.hx
  45. 1 1
      std/flash8/_std/IntHash.hx
  46. 3 3
      std/flash8/_std/Reflect.hx
  47. 1 1
      std/flash8/_std/Std.hx
  48. 1 1
      std/flash8/_std/Type.hx
  49. 3 3
      std/flash8/_std/Xml.hx
  50. 0 0
      std/java/_std/Array.hx
  51. 3 3
      std/java/_std/Date.hx
  52. 9 8
      std/java/_std/EReg.hx
  53. 64 64
      std/java/_std/Hash.hx
  54. 1 1
      std/java/_std/IntHash.hx
  55. 1 0
      std/java/_std/Math.hx
  56. 14 14
      std/java/_std/Reflect.hx
  57. 36 37
      std/java/_std/Std.hx
  58. 1 1
      std/java/_std/StringBuf.hx
  59. 6 6
      std/java/_std/Sys.hx
  60. 49 49
      std/java/_std/Type.hx
  61. 1 1
      std/java/_std/Xml.hx
  62. 6 5
      std/java/_std/haxe/Int64.hx
  63. 2 1
      std/java/_std/sys/FileSystem.hx
  64. 11 10
      std/java/_std/sys/io/File.hx
  65. 21 20
      std/java/_std/sys/io/Process.hx
  66. 1 1
      std/js/_std/Array.hx
  67. 1 1
      std/js/_std/Date.hx
  68. 1 1
      std/js/_std/EReg.hx
  69. 1 1
      std/js/_std/Hash.hx
  70. 1 1
      std/js/_std/IntHash.hx
  71. 1 1
      std/js/_std/Reflect.hx
  72. 1 1
      std/js/_std/Std.hx
  73. 1 1
      std/js/_std/String.hx
  74. 1 1
      std/js/_std/Type.hx
  75. 1 1
      std/js/_std/Xml.hx
  76. 1 1
      std/neko/_std/Array.hx
  77. 1 1
      std/neko/_std/Date.hx
  78. 1 1
      std/neko/_std/EReg.hx
  79. 1 1
      std/neko/_std/Hash.hx
  80. 1 1
      std/neko/_std/IntHash.hx
  81. 1 1
      std/neko/_std/Math.hx
  82. 1 1
      std/neko/_std/Reflect.hx
  83. 1 1
      std/neko/_std/Std.hx
  84. 4 4
      std/neko/_std/String.hx
  85. 1 1
      std/neko/_std/StringBuf.hx
  86. 1 1
      std/neko/_std/Sys.hx
  87. 1 1
      std/neko/_std/Type.hx
  88. 1 1
      std/neko/_std/Xml.hx
  89. 1 1
      std/neko/_std/haxe/Int32.hx
  90. 1 1
      std/neko/_std/haxe/Utf8.hx
  91. 1 1
      std/neko/_std/sys/FileSystem.hx
  92. 1 1
      std/neko/_std/sys/db/Mysql.hx
  93. 1 1
      std/neko/_std/sys/db/Sqlite.hx
  94. 1 1
      std/neko/_std/sys/io/File.hx
  95. 1 1
      std/neko/_std/sys/io/FileInput.hx
  96. 1 1
      std/neko/_std/sys/io/FileOutput.hx
  97. 1 1
      std/neko/_std/sys/io/Process.hx
  98. 1 1
      std/neko/_std/sys/net/Host.hx
  99. 1 1
      std/neko/_std/sys/net/Socket.hx
  100. 1 1
      std/php/_std/Date.hx

+ 1 - 1
std/cpp/_std/Date.hx

@@ -24,7 +24,7 @@
  */
 
 
-@:core_api  class Date {
+@:coreApi  class Date {
 
 	private var mSeconds:Float;
 

+ 1 - 1
std/cpp/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 	var r : Dynamic;
 	var last : String;

+ 1 - 1
std/cpp/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Hash<T>  {
+@:coreApi class Hash<T>  {
 	private var __Internal : Dynamic;
 
 	public function new() : Void {

+ 1 - 1
std/cpp/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 	private var h : Dynamic;
 

+ 1 - 1
std/cpp/_std/Reflect.hx

@@ -24,7 +24,7 @@
  */
 
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 	public  static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return o!=null && o.__HasField(field);

+ 1 - 1
std/cpp/_std/Std.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Std {
+@:coreApi class Std {
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 		return untyped __global__.__instanceof(v,t);
 	}

+ 1 - 1
std/cpp/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api
+@:coreApi
 class StringBuf {
 
 	private var b : Array<Dynamic>;

+ 1 - 1
std/cpp/_std/Sys.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Sys {
+@:coreApi class Sys {
 
 	public static function print( v : Dynamic ) : Void {
 		untyped __global__.__hxcpp_print(v);

+ 1 - 1
std/cpp/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 }
 
-@:core_api class Type {
+@:coreApi class Type {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 			if (o==null || !Reflect.isObject(o))  return null;
 			var c = o.__GetClass();

+ 1 - 1
std/cpp/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var CData(default,null) : XmlType;

+ 1 - 1
std/cpp/_std/haxe/Resource.hx

@@ -24,7 +24,7 @@
  */
 package haxe;
 
-@:core_api
+@:coreApi
 class Resource {
 
 	public static function listNames() : Array<String> {

+ 1 - 1
std/cpp/_std/haxe/Utf8.hx

@@ -1,6 +1,6 @@
 package haxe;
 
-@:core_api
+@:coreApi
 class Utf8
 {
    var __s:Array<Int>;

+ 1 - 1
std/cpp/_std/sys/FileSystem.hx

@@ -30,7 +30,7 @@ private enum FileKind {
 	kother( k : String );
 }
 
-@:core_api
+@:coreApi
 class FileSystem {
 
 	public static function exists( path : String ) : Bool {

+ 1 - 1
std/cpp/_std/sys/io/File.hx

@@ -24,7 +24,7 @@
  */
 package sys.io;
 
-@:core_api
+@:coreApi
 class File {
 
 	public static function getContent( path : String ) : String {

+ 1 - 1
std/cpp/_std/sys/io/FileInput.hx

@@ -25,7 +25,7 @@
 package sys.io;
 import sys.io.FileSeek;
 
-@:core_api
+@:coreApi
 class FileInput extends haxe.io.Input {
 
 	private var __f : Dynamic;

+ 1 - 1
std/cpp/_std/sys/io/FileOutput.hx

@@ -25,7 +25,7 @@
 package sys.io;
 import sys.io.FileSeek;
 
-@:core_api
+@:coreApi
 class FileOutput extends haxe.io.Output {
 
 	private var __f : Dynamic;

+ 1 - 1
std/cpp/_std/sys/io/Process.hx

@@ -92,7 +92,7 @@ private class Stdout extends haxe.io.Input {
 
 }
 
-@:core_api
+@:coreApi
 class Process {
 
 	var p : Dynamic;

+ 1 - 1
std/cpp/_std/sys/net/Host.hx

@@ -25,7 +25,7 @@
  */
 package sys.net;
 
-@:core_api
+@:coreApi
 class Host {
 
 	public var ip(default,null) : Int;

+ 1 - 1
std/cpp/_std/sys/net/Socket.hx

@@ -121,7 +121,7 @@ private class SocketOutput extends haxe.io.Output {
 }
 
 
-@:core_api
+@:coreApi
 class Socket {
 
 	private var __s : Dynamic;

File diff suppressed because it is too large
+ 0 - 0
std/cs/_std/Array.hx


+ 5 - 5
std/cs/_std/Date.hx

@@ -2,10 +2,10 @@ package;
 import cs.system.DateTime;
 import haxe.Int64;
 
-@:core_api class Date 
+@:coreApi class Date
 {
 	private var date:DateTime;
-	
+
 	/**
 		Creates a new date object.
 	**/
@@ -125,7 +125,7 @@ import haxe.Int64;
 		d.date = new DateTime(cast(t, Int64));
 		return d;
 	}
-	
+
 
 	/**
 		Returns a Date from a formated string of one of the following formats :
@@ -134,7 +134,7 @@ import haxe.Int64;
 	**/
 	static public function fromString( s : String ) : Date
 	{
-		switch( s.length ) 
+		switch( s.length )
 		{
 			case 8: // hh:mm:ss
 				var k = s.split(":");
@@ -152,7 +152,7 @@ import haxe.Int64;
 				throw "Invalid date format : " + s;
 		}
 	}
-	
+
 	private static function fromNative( d : cs.system.DateTime ) : Date
 	{
 		var date = new Date(0, 0, 0, 0, 0, 0);

+ 3 - 3
std/cs/_std/EReg.hx

@@ -25,13 +25,13 @@
 
 import cs.system.text.regularExpressions.Regex;
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 	private var regex : Regex;
 	private var m : Match;
 	private var isGlobal : Bool;
 	private var cur : String;
-	
+
 	public function new( r : String, opt : String ) : Void {
 		var opts:Int = cast CultureInvariant;
 		for (i in 0...opt.length) untyped {
@@ -47,7 +47,7 @@ import cs.system.text.regularExpressions.Regex;
 					opts |= cast(Compiled, Int);
 			}
 		}
-		
+
 		this.regex = new Regex(r, cast(opts, RegexOptions));
 	}
 

+ 64 - 64
std/cs/_std/Hash.hx

@@ -24,45 +24,45 @@ import cs.NativeArray;
  * DAMAGE.
  */
 
-@:core_api class Hash<T>  
+@:coreApi class Hash<T>
 {
 	@:extern private static inline var HASH_UPPER = 0.77;
 	@:extern private static inline var FLAG_EMPTY = 0;
 	@:extern private static inline var FLAG_DEL = 1;
-	
+
 	/**
 	 * This is the most important structure here and the reason why it's so fast.
 	 * It's an array of all the hashes contained in the table. These hashes cannot be 0 nor 1,
 	 * which stand for "empty" and "deleted" states.
-	 * 
+	 *
 	 * The lookup algorithm will keep looking until a 0 or the key wanted is found;
 	 * The insertion algorithm will do the same but will also break when FLAG_DEL is found;
 	 */
 	private var hashes:NativeArray<HashType>;
 	private var _keys:NativeArray<String>;
 	private var vals:NativeArray<T>;
-	
+
 	private var nBuckets:Int;
 	private var size:Int;
 	private var nOccupied:Int;
 	private var upperBound:Int;
-	
+
 	private var cachedKey:String;
 	private var cachedIndex:Int;
-	
+
 #if DEBUG_HASHTBL
 	private var totalProbes:Int;
 	private var probeTimes:Int;
 	private var sameHash:Int;
 	private var maxProbe:Int;
 #end
-	
-	public function new() : Void 
+
+	public function new() : Void
 	{
 		cachedIndex = -1;
 	}
 
-	public function set( key : String, value : T ) : Void 
+	public function set( key : String, value : T ) : Void
 	{
 		var x:Int, k:Int;
 		if (nOccupied >= upperBound)
@@ -72,14 +72,14 @@ import cs.NativeArray;
 			else
 				resize(nBuckets + 2);
 		}
-		
+
 		var hashes = hashes, keys = _keys, hashes = hashes;
 		{
 			var mask = (nBuckets == 0) ? 0 : nBuckets - 1;
 			var site = x = nBuckets;
 			k = hash(key);
 			var i = k & mask, nProbes = 0;
-			
+
 			//for speed up
 			if (isEither(hashes[i])) {
 				x = i;
@@ -97,16 +97,16 @@ import cs.NativeArray;
 				}
 				x = i;
 			}
-			
+
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
 			totalProbes++;
 #end
 		}
-		
+
 		var flag = hashes[x];
-		if (isEmpty(flag)) 
+		if (isEmpty(flag))
 		{
 			keys[x] = key;
 			vals[x] = value;
@@ -122,17 +122,17 @@ import cs.NativeArray;
 			assert(_keys[x] == key);
 			vals[x] = value;
 		}
-		
+
 		cachedIndex = x;
 		cachedKey = key;
 	}
-	
+
 	@:final private function lookup( key : String ) : Int
 	{
 		if (nBuckets != 0)
 		{
 			var hashes = hashes, keys = _keys;
-			
+
 			var mask = nBuckets - 1, hash = hash(key), k = hash, nProbes = 0;
 			var i = k & mask;
 			var last = i, flag;
@@ -146,7 +146,7 @@ import cs.NativeArray;
 					throw "assert";
 #end
 			}
-			
+
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
@@ -154,10 +154,10 @@ import cs.NativeArray;
 #end
 			return isEither(flag) ? -1 : i;
 		}
-		
+
 		return -1;
 	}
-	
+
 	@:final @:private function resize(newNBuckets:Int) : Void
 	{
 		//This function uses 0.25*n_bucktes bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets.
@@ -178,7 +178,7 @@ import cs.NativeArray;
 					if (_keys != null)
 						arrayCopy(_keys, 0, k, 0, nBuckets);
 					_keys = k;
-					
+
 					var v = new NativeArray(newNBuckets);
 					if (vals != null)
 						arrayCopy(vals, 0, v, 0, nBuckets);
@@ -186,16 +186,16 @@ import cs.NativeArray;
 				} //otherwise shrink
 			}
 		}
-		
-		if (j != 0) 
+
+		if (j != 0)
 		{ //rehashing is required
 			//resetting cache
 			cachedKey = null;
 			cachedIndex = -1;
-			
+
 			j = -1;
 			var nBuckets = nBuckets, _keys = _keys, vals = vals, hashes = hashes;
-			
+
 			var newMask = newNBuckets - 1;
 			while (++j < nBuckets)
 			{
@@ -204,19 +204,19 @@ import cs.NativeArray;
 				{
 					var key = _keys[j];
 					var val = vals[j];
-					
+
 					hashes[j] = FLAG_DEL;
 					while (true) /* kick-out process; sort of like in Cuckoo hashing */
 					{
 						var nProbes = 0;
 						//var inc = getInc(k, newMask);
 						var i = k & newMask;
-						
+
 						while (!isEmpty(newHash[i]))
 							i = (i + ++nProbes) & newMask;
-						
+
 						newHash[i] = k;
-						
+
 						if (i < nBuckets && !isEither(k = hashes[i])) /* kick out the existing element */
 						{
 							{
@@ -229,7 +229,7 @@ import cs.NativeArray;
 								vals[i] = val;
 								val = tmp;
 							}
-							
+
 							hashes[i] = FLAG_DEL; /* mark it as deleted in the old hash table */
 						} else { /* write the element and jump out of the loop */
 							_keys[i] = key;
@@ -239,7 +239,7 @@ import cs.NativeArray;
 					}
 				}
 			}
-			
+
 			if (nBuckets > newNBuckets) /* shrink the hash table */
 			{
 				{
@@ -253,7 +253,7 @@ import cs.NativeArray;
 					this.vals = v;
 				}
 			}
-			
+
 			this.hashes = newHash;
 			this.nBuckets = newNBuckets;
 			this.nOccupied = size;
@@ -261,86 +261,86 @@ import cs.NativeArray;
 		}
 	}
 
-	public function get( key : String ) : Null<T> 
+	public function get( key : String ) : Null<T>
 	{
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 			return vals[idx];
 		}
-		
+
 		idx = lookup(key);
 		if (idx != -1)
 		{
 			cachedKey = key;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 		}
-		
+
 		return null;
 	}
-	
-	private function getDefault( key : String, def : T ) : T 
+
+	private function getDefault( key : String, def : T ) : T
 	{
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 			return vals[idx];
 		}
-		
+
 		idx = lookup(key);
 		if (idx != -1)
 		{
 			cachedKey = key;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 		}
-		
+
 		return def;
 	}
 
-	public function exists( key : String ) : Bool 
+	public function exists( key : String ) : Bool
 	{
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 			return true;
 		}
-		
+
 		idx = lookup(key);
 		if (idx != -1)
 		{
 			cachedKey = key;
 			cachedIndex = idx;
-			
+
 			return true;
 		}
-		
+
 		return false;
 	}
 
-	public function remove( key : String ) : Bool 
+	public function remove( key : String ) : Bool
 	{
 		var idx = -1;
 		if (! (cachedKey == key && ( (idx = cachedIndex) != -1 )))
 		{
 			idx = lookup(key);
 		}
-		
+
 		if (idx == -1)
 		{
 			return false;
 		} else {
 			if (cachedKey == key)
 				cachedIndex = -1;
-			
+
 			hashes[idx] = FLAG_EMPTY;
 			_keys[idx] = null;
 			vals[idx] = null;
 			--size;
-			
+
 			return true;
 		}
 	}
@@ -349,7 +349,7 @@ import cs.NativeArray;
 		Returns an iterator of all keys in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
-	public function keys() : Iterator<String> 
+	public function keys() : Iterator<String>
 	{
 		var i = 0;
 		var len = nBuckets;
@@ -369,7 +369,7 @@ import cs.NativeArray;
 				var ret = _keys[i];
 				cachedIndex = i;
 				cachedKey = ret;
-				
+
 				i = i + 1;
 				return ret;
 			}
@@ -380,7 +380,7 @@ import cs.NativeArray;
 		Returns an iterator of all values in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
-	public function iterator() : Iterator<T> 
+	public function iterator() : Iterator<T>
 	{
 		var i = 0;
 		var len = nBuckets;
@@ -422,7 +422,7 @@ import cs.NativeArray;
 		s.add("}");
 		return s.toString();
 	}
-	
+
 	@:extern private static inline function roundUp(x:Int):Int
 	{
 		--x;
@@ -433,21 +433,21 @@ import cs.NativeArray;
 		x |= (x) >>> 16;
 		return ++x;
 	}
-	
+
 	@:extern private static inline function getInc(k:Int, mask:Int):Int //return 1 for linear probing
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)
-	
+
 	@:extern private static inline function isEither(v:HashType):Bool
 		return (v & 0xFFFFFFFE) == 0
-	
+
 	@:extern private static inline function isEmpty(v:HashType):Bool
 		return v == FLAG_EMPTY
-		
+
 	@:extern private static inline function isDel(v:HashType):Bool
 		return v == FLAG_DEL
-	
+
 	//guarantee: Whatever this function is, it will never return 0 nor 1
-	@:extern private static inline function hash(s:String):HashType 
+	@:extern private static inline function hash(s:String):HashType
 	{
 		var k:Int = untyped s.GetHashCode();
 		//k *= 357913941;
@@ -455,14 +455,14 @@ import cs.NativeArray;
 		//k += ~357913941;
 		//k ^= k >> 31;
 		//k ^= k << 31;
-		
+
 		k = (k+0x7ed55d16) + (k<<12);
 		k = (k^0xc761c23c) ^ (k>>19);
 		k = (k+0x165667b1) + (k<<5);
 		k = (k+0xd3a2646c) ^ (k<<9);
 		k = (k+0xfd7046c5) + (k<<3);
 		k = (k^0xb55a4f09) ^ (k>>16);
-		
+
 		var ret = k;
 		if (isEither(ret))
 		{
@@ -471,13 +471,13 @@ import cs.NativeArray;
 			else
 				ret = 0xFFFFFFFF;
 		}
-		
+
 		return ret;
 	}
-	
+
 	@:extern private static inline function arrayCopy(sourceArray:cs.system.Array, sourceIndex:Int, destinationArray:cs.system.Array, destinationIndex:Int, length:Int):Void
 		cs.system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
-	
+
 	@:extern private static inline function assert(x:Bool):Void
 	{
 #if DEBUG_HASHTBL

+ 1 - 1
std/cs/_std/IntHash.hx

@@ -32,7 +32,7 @@ import cs.NativeArray;
  * Thanks also to Jonas Malaco Filho for his Haxe-written IntHash code inspired by Python tables.
  * (https://jonasmalaco.com/fossil/test/jonas-haxe/artifact/887b53126e237d6c68951111d594033403889304)
  */
-@:core_api class IntHash<T>
+@:coreApi class IntHash<T>
 {
 	private static inline var HASH_UPPER = 0.7;
 

+ 21 - 21
std/cs/_std/Math.hx

@@ -1,7 +1,7 @@
 package;
 import cs.system.Random;
 
-@:core_api @:nativegen class Math
+@:coreApi @:nativegen class Math
 {
 	public static inline function __init__():Void
 	{
@@ -10,9 +10,9 @@ import cs.system.Random;
 		NEGATIVE_INFINITY = untyped __cs__("double.NegativeInfinity");
 		POSITIVE_INFINITY = untyped __cs__("double.PositiveInfinity");
 		rand = new Random();
-		
+
 	}
-	
+
 	private static var rand:Random;
 	public static var PI(default, null) : Float;
 	public static var NaN(default,null) : Float;
@@ -23,52 +23,52 @@ import cs.system.Random;
 	{
 		return cs.system.Math.Abs(v);
 	}
-	
+
 	public static inline function min(a:Float, b:Float):Float
 	{
 		return (a < b) ? a : b;
 	}
-	
+
 	public static inline function max(a:Float, b:Float):Float
 	{
 		return (a > b) ? a : b;
 	}
-	
+
 	public static inline function sin(v:Float):Float
 	{
 		return cs.system.Math.Sin(v);
 	}
-	
+
 	public static inline function cos(v:Float):Float
 	{
 		return cs.system.Math.Cos(v);
 	}
-	
+
 	public static inline function atan2(y:Float, x:Float):Float
 	{
 		return cs.system.Math.Atan2(y, x);
 	}
-	
+
 	public static inline function tan(v:Float):Float
 	{
 		return cs.system.Math.Tan(v);
 	}
-	
+
 	public static inline function exp(v:Float):Float
 	{
 		return cs.system.Math.Exp(v);
 	}
-	
+
 	public static inline function log(v:Float):Float
 	{
 		return cs.system.Math.Log(v);
 	}
-	
+
 	public static inline function sqrt(v:Float):Float
 	{
 		return cs.system.Math.Sqrt(v);
 	}
-	
+
 	public static function round(v:Float):Int
 	{
 		var vint = Std.int(v);
@@ -81,37 +81,37 @@ import cs.system.Random;
 			return vint - 1;
 		return vint;
 	}
-	
+
 	public static inline function floor(v:Float):Int
 	{
 		return Std.int(cs.system.Math.Floor(v));
 	}
-	
+
 	public static inline function ceil(v:Float):Int
 	{
 		return Std.int(cs.system.Math.Ceiling(v));
 	}
-	
+
 	public static inline function atan(v:Float):Float
 	{
 		return cs.system.Math.Atan(v);
 	}
-	
+
 	public static inline function asin(v:Float):Float
 	{
 		return cs.system.Math.Asin(v);
 	}
-	
+
 	public static inline function acos(v:Float):Float
 	{
 		return cs.system.Math.Acos(v);
 	}
-	
+
 	public static inline function pow(v:Float, exp:Float):Float
 	{
 		return cs.system.Math.Pow(v, exp);
 	}
-	
+
 	public static inline function random() : Float
 	{
 		return rand.NextDouble();
@@ -121,7 +121,7 @@ import cs.system.Random;
 	{
 		return untyped __cs__("!double.IsInfinity(f)");
 	}
-	
+
 	public static function isNaN( f : Float ) : Bool
 	{
 		return untyped __cs__("double.IsNaN(f)");

+ 11 - 11
std/cs/_std/Reflect.hx

@@ -28,7 +28,7 @@ import cs.internal.Function;
 	The Reflect API is a way to manipulate values dynamicly through an
 	abstract interface in an untyped manner. Use with care.
 **/
-@:keep @:core_api class Reflect {
+@:keep @:coreApi class Reflect {
 
 	/**
 		Tells if an object has a field set. This doesn't take into account the object prototype (class methods).
@@ -36,7 +36,7 @@ import cs.internal.Function;
 	@:functionBody('
 		if (o is haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, true, false) != haxe.lang.Runtime.undefined;
-		
+
 		return haxe.lang.Runtime.slowHasField(o, field);
 	')
 	public static function hasField( o : Dynamic, field : String ) : Bool
@@ -50,7 +50,7 @@ import cs.internal.Function;
 	@:functionBody('
 		if (o is haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, false, false);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	public static function field( o : Dynamic, field : String ) : Dynamic
@@ -70,16 +70,16 @@ import cs.internal.Function;
 	')
 	public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
-		
+
 	}
-	
+
 	/**
 		Similar to field but also supports property (might be slower).
 	**/
 	@:functionBody('
 		if (o is haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, false, true);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
@@ -98,7 +98,7 @@ import cs.internal.Function;
 	')
 	public static function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
-		
+
 	}
 
 	/**
@@ -158,17 +158,17 @@ import cs.internal.Function;
 		Compare two methods closures. Returns true if it's the same method of the same instance.
 	**/
 	@:functionBody('
-		if (f1 == f2) 
+		if (f1 == f2)
 			return true;
-		
+
 		if (f1 is haxe.lang.Closure && f2 is haxe.lang.Closure)
 		{
 			haxe.lang.Closure f1c = (haxe.lang.Closure) f1;
 			haxe.lang.Closure f2c = (haxe.lang.Closure) f2;
-			
+
 			return haxe.lang.Runtime.refEq(f1c.obj, f2c.obj) && f1c.field.Equals(f2c.field);
 		}
-		
+
 		return false;
 	')
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool

+ 27 - 28
std/cs/_std/Std.hx

@@ -25,9 +25,9 @@
 import cs.Boot;
 import cs.Lib;
 import cs.internal.Exceptions;
- 
-@:core_api @:nativegen class Std {
-	public static function is( v : Dynamic, t : Dynamic ) : Bool 
+
+@:coreApi @:nativegen class Std {
+	public static function is( v : Dynamic, t : Dynamic ) : Bool
 	{
 		if (v == null)
 			return t == Dynamic;
@@ -37,7 +37,7 @@ import cs.internal.Exceptions;
 		if (clt == null)
 			return false;
 		var name:String = cast clt;
-		
+
 		switch(name)
 		{
 			case "System.Double":
@@ -49,9 +49,9 @@ import cs.internal.Exceptions;
 			case "System.Object":
 				return true;
 		}
-		
+
 		var clv:Class<Dynamic> = untyped __cs__('v.GetType()');
-		
+
 		return untyped clt.IsAssignableFrom(clv);
 	}
 
@@ -60,22 +60,22 @@ import cs.internal.Exceptions;
 			return "null";
 		if (Std.is(s, Bool))
 			return cast(s, Bool) ? "true" : "false";
-		
+
 		return s.ToString();
 	}
 
 	public static inline function int( x : Float ) : Int {
 		return cast x;
 	}
-	
+
 	public static function parseInt( x : String ) : Null<Int> {
 		if (x == null) return null;
-		
+
 		var ret = 0;
 		var base = 10;
 		var i = -1;
 		var len = x.length;
-		
+
 		if (StringTools.startsWith(x, "0") && len > 2)
 		{
 			var c:Int = cast untyped x[1];
@@ -85,13 +85,13 @@ import cs.internal.Exceptions;
 				base = 16;
 			}
 		}
-		
+
 		var foundAny = false;
 		var isNeg = false;
 		while (++i < len)
 		{
 			var c = cast(untyped x[i], Int); //fastCodeAt
-			if (!foundAny) 
+			if (!foundAny)
 			{
 				switch(c)
 				{
@@ -104,7 +104,7 @@ import cs.internal.Exceptions;
 						continue;
 				}
 			}
-			
+
 			if (c >= '0'.code && c <= '9'.code)
 			{
 				if (!foundAny && c == '0'.code)
@@ -113,7 +113,7 @@ import cs.internal.Exceptions;
 					continue;
 				}
 				ret *= base; foundAny = true;
-				
+
 				ret += c - '0'.code;
 			} else if (base == 16) {
 				if (c >= 'a'.code && c <= 'f'.code) {
@@ -129,7 +129,7 @@ import cs.internal.Exceptions;
 				break;
 			}
 		}
-		
+
 		if (foundAny)
 			return isNeg ? -ret : ret;
 		else
@@ -139,11 +139,11 @@ import cs.internal.Exceptions;
 	public static function parseFloat( x : String ) : Float {
 		if (x == null) return Math.NaN;
 		x = StringTools.ltrim(x);
-		
+
 		var ret = 0.0;
 		var div = 0.0;
 		var e = 0.0;
-		
+
 		var len = x.length;
 		var foundAny = false;
 		var isNeg = false;
@@ -151,7 +151,7 @@ import cs.internal.Exceptions;
 		while (++i < len)
 		{
 			var c = cast(untyped x[i], Int); //fastCodeAt
-			if (!foundAny) 
+			if (!foundAny)
 			{
 				switch(c)
 				{
@@ -164,16 +164,16 @@ import cs.internal.Exceptions;
 						continue;
 				}
 			}
-			
+
 			if (c == '.'.code)
 			{
 				if (div != 0.0)
 					break;
 				div = 1.0;
-				
+
 				continue;
 			}
-			
+
 			if (c >= '0'.code && c <= '9'.code)
 			{
 				if (!foundAny && c == '0'.code)
@@ -181,9 +181,9 @@ import cs.internal.Exceptions;
 					foundAny = true;
 					continue;
 				}
-				
+
 				ret *= 10; foundAny = true; div *= 10;
-				
+
 				ret += c - '0'.code;
 			} else if (foundAny && (c == 'e'.code || c == 'E'.code)) {
 				var eNeg = false;
@@ -199,7 +199,7 @@ import cs.internal.Exceptions;
 						i++;
 					}
 				}
-				
+
 				while (++i < len)
 				{
 					c = untyped cast(x[i], Int);
@@ -214,15 +214,15 @@ import cs.internal.Exceptions;
 						break;
 					}
 				}
-				
+
 				if (eNeg) e = -e;
 			} else {
 				break;
 			}
 		}
-		
+
 		if (div == 0.0) div = 1.0;
-		
+
 		if (foundAny)
 		{
 			ret = isNeg ? -(ret / div) : (ret / div);
@@ -247,4 +247,3 @@ import cs.internal.Exceptions;
 	}
 
 }
-	

+ 1 - 1
std/cs/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api
+@:coreApi
 class StringBuf {
 
 	private var b : cs.StringBuilder;

+ 1 - 1
std/cs/_std/Sys.hx

@@ -29,7 +29,7 @@ import cs.system.threading.Thread;
 /**
 	This class gives you access to many base functionalities of system platforms. Looks in [sys] sub packages for more system APIs.
 **/
-@:core_api
+@:coreApi
 class Sys {
 	private static var _env:Hash<String>;
 	private static var _args:Array<String>;

+ 32 - 32
std/cs/_std/Type.hx

@@ -38,30 +38,30 @@ import cs.internal.Runtime;
 	TUnknown;
 }
 
-@:keep @:core_api class Type {
-	
+@:keep @:coreApi class Type {
+
 	@:functionBody('
 		if (o is haxe.lang.DynamicObject || o is System.Type)
 			return null;
-		
+
 		return o.GetType();
 	')
-	public static function getClass<T>( o : T ) : Class<T> untyped 
+	public static function getClass<T>( o : T ) : Class<T> untyped
 	{
 		return null;
 	}
-	
+
 	@:functionBody('
 		if (o is System.Enum || o is haxe.lang.Enum)
 			return o.GetType();
 		return null;
 	')
-	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped 
+	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped
 	{
 		return null;
 	}
 
-	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> 
+	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic>
 	{
 		var t:cs.system.Type = Lib.toNativeType(c);
 		var base = t.BaseType;
@@ -69,7 +69,7 @@ import cs.internal.Runtime;
 		{
 			return null;
 		}
-		
+
 		return Lib.fromNativeType(base);
 	}
 
@@ -79,7 +79,7 @@ import cs.internal.Runtime;
 		if (ret.length > 10 && StringTools.startsWith(ret, "haxe.root."))
 			ret = ret.substr(10);
 #end
-		
+
 		return switch(ret)
 		{
 			case "System.Int32": "Int";
@@ -91,19 +91,19 @@ import cs.internal.Runtime;
 		}
 	}
 
-	public static function getEnumName( e : Enum<Dynamic> ) : String 
+	public static function getEnumName( e : Enum<Dynamic> ) : String
 	{
 		var ret:String = cast Lib.toNativeType(untyped e);
 #if no-root
 		if (ret.length > 10 && StringTools.startsWith(ret, "haxe.root."))
 			ret = ret.substr(10);
 #end
-		if (ret.length == 14 && ret == "System.Boolean") 
+		if (ret.length == 14 && ret == "System.Boolean")
 			return "Bool";
 		return ret;
 	}
-	
-	public static function resolveClass( name : String ) : Class<Dynamic> 
+
+	public static function resolveClass( name : String ) : Class<Dynamic>
 	{
 #if no-root
 		if (name.indexOf(".") == -1)
@@ -121,7 +121,7 @@ import cs.internal.Runtime;
 				case #if no-root "haxe.root.Dynamic" #else "Dynamic" #end: return Dynamic;
 				default: return null;
 			}
-		} else if (t.IsInterface && cast(untyped __typeof__(IGenericObject), cs.system.Type).IsAssignableFrom(t)) { 
+		} else if (t.IsInterface && cast(untyped __typeof__(IGenericObject), cs.system.Type).IsAssignableFrom(t)) {
 			t = null;
 			var i = 0;
 			var ts = "";
@@ -131,7 +131,7 @@ import cs.internal.Runtime;
 				ts += (i == 1 ? "" : ",") + "System.Object";
 				t = cs.system.Type.GetType(name + "`" + i + "[" + ts + "]");
 			}
-			
+
 			return Lib.fromNativeType(t);
 		} else {
 			return Lib.fromNativeType(t);
@@ -152,15 +152,15 @@ import cs.internal.Runtime;
 		return Runtime.callMethod(null, cast ctors, ctors.Length, args);
 	}
 
-	public static function createEmptyInstance<T>( cl : Class<T> ) : T 
+	public static function createEmptyInstance<T>( cl : Class<T> ) : T
 	{
 		if (Reflect.hasField(cl, "__hx_createEmpty"))
 			return untyped cl.__hx_createEmpty();
 		return createInstance(cl, []);
 	}
-	
+
 	@:functionBody('
-		if (@params == null) 
+		if (@params == null)
 		{
 			object ret = haxe.lang.Runtime.slowGetField(e, constr, false);
 			if (ret is haxe.lang.Function)
@@ -170,7 +170,7 @@ import cs.internal.Runtime;
 			return (T) haxe.lang.Runtime.slowCallField(e, constr, @params);
 		}
 	')
-	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T 
+	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T
 	{
 		return null;
 	}
@@ -179,13 +179,13 @@ import cs.internal.Runtime;
 		var constr = getEnumConstructs(e);
 		return createEnum(e, constr[index], params);
 	}
-	
+
 	@:functionBody('
 		if (c == typeof(string))
 		{
 			return haxe.lang.StringRefl.fields;
 		}
-		
+
 		Array<object> ret = new Array<object>();
 
         System.Reflection.MemberInfo[] mis = c.GetMembers(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.DeclaredOnly | System.Reflection.BindingFlags.Instance);
@@ -203,10 +203,10 @@ import cs.internal.Runtime;
 	public static function getInstanceFields( c : Class<Dynamic> ) : Array<String> {
 		return null;
 	}
-	
+
 	@:functionBody('
 		Array<object> ret = new Array<object>();
-		
+
 		if (c == typeof(string))
 		{
 			ret.push("fromCharCode");
@@ -232,7 +232,7 @@ import cs.internal.Runtime;
 			return untyped e.constructs;
 		return untyped __cs__("new Array<object>(System.Enum.GetNames(e))");
 	}
-	
+
 	@:functionBody('
 		if (v == null) return ValueType.TNull;
 
@@ -244,7 +244,7 @@ import cs.internal.Runtime;
         }
 
         t = v.GetType();
-        if (t.IsEnum) 
+        if (t.IsEnum)
             return ValueType.TEnum(t);
         if (t.IsValueType)
         {
@@ -283,22 +283,22 @@ import cs.internal.Runtime;
             return ValueType.TClass(t);
         }
 	')
-	public static function typeof( v : Dynamic ) : ValueType 
+	public static function typeof( v : Dynamic ) : ValueType
 	{
 		return null;
 	}
-	
+
 	@:functionBody('
 			if (a is haxe.lang.Enum)
 				return a.Equals(b);
 			else
 				return haxe.lang.Runtime.eq(a, b);
 	')
-	public static function enumEq<T>( a : T, b : T ) : Bool 
+	public static function enumEq<T>( a : T, b : T ) : Bool
 	{
 		return untyped a.Equals(b);
 	}
-	
+
 	@:functionBody('
 		if (e is System.Enum)
 			return e + "";
@@ -309,7 +309,7 @@ import cs.internal.Runtime;
 	{
 		return e.tag;
 	}
-	
+
 	@:functionBody('
 		return ( e is System.Enum ) ? new Array<object>() : ((haxe.lang.Enum) e).@params;
 	')
@@ -317,7 +317,7 @@ import cs.internal.Runtime;
 	{
 		return null;
 	}
-	
+
 	@:functionBody('
 		if (e is System.Enum)
 			return ((System.IConvertible) e).ToInt32(null);
@@ -329,7 +329,7 @@ import cs.internal.Runtime;
 		return e.index;
 	}
 
-	public static function allEnums<T>( e : Enum<T> ) : Array<T> 
+	public static function allEnums<T>( e : Enum<T> ) : Array<T>
 	{
 		var ctors = getEnumConstructs(e);
 		var ret = [];

+ 1 - 1
std/cs/_std/Xml.hx

@@ -37,7 +37,7 @@ private enum RealXmlType {
         Document;
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 1 - 0
std/cs/_std/haxe/Int64.hx

@@ -27,6 +27,7 @@ using haxe.Int64;
 private typedef NativeInt64 = Int;
 private typedef NativeUInt64 = Int;
 
+@:coreApi
 @:nativegen class Int64
 {
 	@:extern private static inline function asNative(i:haxe.Int64):NativeInt64 return untyped i

+ 4 - 3
std/cs/_std/sys/FileSystem.hx

@@ -31,6 +31,7 @@ import cs.system.io.FileInfo;
 /**
 	This class allows you to get informations about the files and directories.
 **/
+@:coreApi
 class FileSystem {
 
 	/**
@@ -88,7 +89,7 @@ class FileSystem {
 		} else {
 			throw "Path '" + path + "' doesn't exist";
 		}
-		
+
 	}
 
 	/**
@@ -125,7 +126,7 @@ class FileSystem {
 	{
 		File.Delete(path);
 	}
-	
+
 	/**
 		Delete a given directory.
 	**/
@@ -152,7 +153,7 @@ class FileSystem {
 				ret[i] = path.substr(path.lastIndexOf(sep) + 1);
 			}
 		}
-		
+
 		return cs.Lib.array( ret );
 	}
 

+ 8 - 7
std/cs/_std/sys/io/File.hx

@@ -27,6 +27,7 @@ package sys.io;
 /**
 	API for reading and writing to files.
 **/
+@:coreApi
 class File {
 
 	public static function getContent( path : String ) : String
@@ -36,14 +37,14 @@ class File {
 		f.close();
 		return ret;
 	}
-	
+
 	public static function saveContent( path : String, content : String ) : Void
 	{
 		var f = write(path, false);
 		f.writeString(content);
 		f.close();
 	}
-	
+
 	public static function getBytes( path : String ) : haxe.io.Bytes
 	{
 		var f = read(path, true);
@@ -51,14 +52,14 @@ class File {
 		f.close();
 		return ret;
 	}
-	
+
 	public static function saveBytes( path : String, bytes : haxe.io.Bytes ) : Void
 	{
 		var f = write(path, true);
 		f.writeBytes(bytes, 0, bytes.length);
 		f.close();
 	}
-	
+
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	{
 		#if std-buffer //standardize 4kb buffers
@@ -68,7 +69,7 @@ class File {
 		#end
 		return new FileInput(stream);
 	}
-	
+
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	{
 		#if std-buffer //standardize 4kb buffers
@@ -78,7 +79,7 @@ class File {
 		#end
 		return new FileOutput(stream);
 	}
-	
+
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	{
 		#if std-buffer //standardize 4kb buffers
@@ -88,7 +89,7 @@ class File {
 		#end
 		return new FileOutput(stream);
 	}
-	
+
 	public static function copy( src : String, dst : String ) : Void
 	{
 		cs.system.io.File.Copy(src, dst);

+ 11 - 10
std/cs/_std/sys/io/Process.hx

@@ -27,14 +27,15 @@ import haxe.io.BytesInput;
 import cs.system.io.StreamReader;
 import cs.system.io.StreamWriter;
 
+@:coreApi
 class Process {
 
 	public var stdout(default,null) : haxe.io.Input;
 	public var stderr(default,null) : haxe.io.Input;
 	public var stdin(default, null) : haxe.io.Output;
-	
+
 	private var native:NativeProcess;
-	
+
 
 	public function new( cmd : String, args : Array<String> ) : Void
 	{
@@ -50,30 +51,30 @@ class Process {
 		native.StartInfo.Arguments = buf.toString();
 		native.StartInfo.RedirectStandardError = native.StartInfo.RedirectStandardInput = native.StartInfo.RedirectStandardOutput = true;
 		native.StartInfo.UseShellExecute = false;
-		
+
 		native.Start();
-		
+
 		this.stdout = new cs.io.NativeInput(native.StandardOutput.BaseStream);
 		this.stderr = new cs.io.NativeInput(native.StandardError.BaseStream);
 		this.stdin = new cs.io.NativeOutput(native.StandardInput.BaseStream);
 	}
-	
+
 	public function getPid() : Int
 	{
 		return native.Id;
 	}
-	
+
 	public function exitCode() : Int
 	{
 		native.WaitForExit();
 		return native.ExitCode;
 	}
-	
+
 	public function close() : Void
 	{
 		native.Close();
 	}
-	
+
 	public function kill() : Void
 	{
 		native.Kill();
@@ -92,7 +93,7 @@ FIXME: The actual process class is much more complex than this, so here it is in
 	var StandardError(default, null):StreamReader;
 	var StandardInput(default, null):StreamWriter;
 	var StandardOutput(default, null):StreamReader;
-	
+
 	function new():Void;
 	function Close():Void;
 	function Kill():Void;
@@ -109,5 +110,5 @@ FIXME: The actual process class is much more complex than this, so here it is in
 	var RedirectStandardOutput:Bool;
 	var UseShellExecute:Bool;
 	function new(filename:String, args:String):Void;
-	
+
 }

+ 1 - 1
std/flash/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 	var r : flash.utils.RegExp;
 	var result : {> Array<String>, index : Int, input : String };

+ 1 - 1
std/flash/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 	private var h :flash.utils.Dictionary;
 

+ 1 - 1
std/flash/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 	private var h : flash.utils.Dictionary;
 

+ 1 - 1
std/flash/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 	public static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return o.hasOwnProperty( field );

+ 1 - 1
std/flash/_std/Std.hx

@@ -24,7 +24,7 @@
  */
 import flash.Boot;
 
-@:core_api class Std {
+@:coreApi class Std {
 
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 		return untyped flash.Boot.__instanceof(v,t);

+ 1 - 1
std/flash/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 }
 
-@:core_api class Type {
+@:coreApi class Type {
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		var cname = __global__["flash.utils.getQualifiedClassName"](o);

+ 7 - 7
std/flash/_std/Xml.hx

@@ -29,7 +29,7 @@ import flash.xml.XMLList;
 enum XmlType {
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
@@ -67,7 +67,7 @@ enum XmlType {
 		}
 		return wrap( root, Xml.Document );
 	}
-	
+
 	@:keep #if as3 @:hack public #end static function compare( a : Xml, b : Xml ) : Bool {
 		return a == null ? b == null : (b == null ? false : a._node == b._node);
 	}
@@ -285,7 +285,7 @@ enum XmlType {
 
 	public function iterator() : Iterator<Xml> {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var children:XMLList = _node.children();
 		var wrappers :Array<Xml> = wraps(children);
 		var cur = 0;
@@ -301,7 +301,7 @@ enum XmlType {
 
 	public function elements() : Iterator<Xml> {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var elements:XMLList = _node.elements();
 		var wrappers :Array<Xml> = wraps(elements);
 		var cur = 0;
@@ -317,7 +317,7 @@ enum XmlType {
 
 	public function elementsNamed( name : String ) : Iterator<Xml> {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";	
+			throw "bad nodeType";
 		var ns = name.split(":");
 		var elements:XMLList;
 		if( ns.length == 1 )
@@ -360,14 +360,14 @@ enum XmlType {
 
 	public function addChild( x : Xml ) : Void {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var children:XMLList = _node.children();
 		_node.appendChild(x._node);
 	}
 
 	public function removeChild( x : Xml ) : Bool {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var children:XMLList = _node.children();
 		if( _node != x._node.parent() )
 			return false;

+ 5 - 3
std/flash/_std/haxe/Resource.hx

@@ -25,6 +25,7 @@
 package haxe;
 
 #if as3
+@:coreApi
 class Resource {
 	public static function listNames() : Array<String> untyped {
 		return __keys__(__resources__.list);
@@ -39,18 +40,19 @@ class Resource {
 		var b = resolve(name);
 		return b == null ? null : haxe.io.Bytes.ofData(b);
 	}
-	
+
 	static function resolve( name : String) :flash.utils.ByteArray untyped {
 		var n = __resources__.list[name];
 		if (n == null) return null;
 		return untyped __new__(n);
 	}
-	
+
 	static function __init__() {
 		untyped __resources__.__init__();
-	}	
+	}
 }
 #else
+@:coreApi
 class Resource {
 
 	static var content : Array<{ name : String }>;

+ 1 - 1
std/flash8/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 	private var h : Dynamic;
 

+ 1 - 1
std/flash8/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 	private var h : Dynamic;
 

+ 3 - 3
std/flash8/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 	public inline static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return __this__["hasOwnProperty"]["call"](o,field);
@@ -46,7 +46,7 @@
 		} while (c != null);
 		return null;
 	}
-	
+
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic untyped {
 		var getter = findAccessor( Std.is(o,Class) ? o : o.__class__, "get_" +field);
 		return if (getter != null)
@@ -60,7 +60,7 @@
 		return if (setter != null)
 			o[setter]["apply"](o, [value]);
 		else
-			Reflect.setField(o, field, value);	
+			Reflect.setField(o, field, value);
 	}
 
 	public inline static function callMethod( o : Dynamic, func : Dynamic, args : Array<Dynamic> ) : Dynamic untyped {

+ 1 - 1
std/flash8/_std/Std.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Std {
+@:coreApi class Std {
 
 	@:feature("typed_cast")
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {

+ 1 - 1
std/flash8/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 }
 
-@:core_api class Type {
+@:coreApi class Type {
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		if( o.__enum__ != null )

+ 3 - 3
std/flash8/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
@@ -124,13 +124,13 @@ enum XmlType {
 
 	public function firstChild() : Xml {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		return convert(this.__x[untyped "firstChild"]);
 	}
 
 	public function firstElement() : Xml {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var e : Dynamic = __x[untyped "firstChild"];
 		while( e != null && e[untyped "nodeType"] != 1 )
 			e = e[untyped "nextSibling"];

File diff suppressed because it is too large
+ 0 - 0
std/java/_std/Array.hx


+ 3 - 3
std/java/_std/Date.hx

@@ -2,10 +2,10 @@ package;
 import haxe.Int64;
 
 @:SuppressWarnings("deprecation")
-@:core_api class Date 
+@:coreApi class Date
 {
 	private var date:java.util.Date;
-	
+
 	/**
 		Creates a new date object.
 	**/
@@ -128,7 +128,7 @@ import haxe.Int64;
 	**/
 	static public function fromString( s : String ) : Date
 	{
-		switch( s.length ) 
+		switch( s.length )
 		{
 			case 8: // hh:mm:ss
 				var k = s.split(":");

+ 9 - 8
std/java/_std/EReg.hx

@@ -29,13 +29,14 @@ import java.util.regex.Regex;
 	Strings. Have a look at the tutorial on haXe website to learn
 	how to use them.
 **/
+@:coreApi
 class EReg {
 
 	private var pattern:String;
 	private var matcher:Matcher;
 	private var cur:String;
 	private var isGlobal:Bool;
-	
+
 	/**
 		Creates a new regular expression with pattern [r] and
 		options [opt].
@@ -56,11 +57,11 @@ class EReg {
 					isGlobal = true;
 			}
 		}
-		
+
 		matcher = Pattern.compile(convert(r), flags).matcher("");
 		pattern = r;
 	}
-	
+
 	private static function convert(r:String):String
 	{
 		//some references of the implementation:
@@ -82,7 +83,7 @@ class EReg {
 			switch(c)
 			{
 				case '\\'.code: //escape-sequence
-					
+
 			}
 		}
 		*/
@@ -104,7 +105,7 @@ class EReg {
 		is no such group. If [n = 0], the whole matched substring
 		is returned.
 	**/
-	public function matched( n : Int ) : String 
+	public function matched( n : Int ) : String
 	{
 		if (n == 0)
 			return matcher.group();
@@ -116,7 +117,7 @@ class EReg {
 		Returns the part of the string that was as the left of
 		of the matched substring.
 	**/
-	public function matchedLeft() : String 
+	public function matchedLeft() : String
 	{
 		return untyped cur.substring(0, matcher.start());
 	}
@@ -125,7 +126,7 @@ class EReg {
 		Returns the part of the string that was at the right of
 		of the matched substring.
 	**/
-	public function matchedRight() : String 
+	public function matchedRight() : String
 	{
 		return untyped cur.substring(matcher.end(), cur.length);
 	}
@@ -143,7 +144,7 @@ class EReg {
 		Split a string by using the regular expression to match
 		the separators.
 	**/
-	public function split( s : String ) : Array<String> 
+	public function split( s : String ) : Array<String>
 	{
 		if (isGlobal)
 		{

+ 64 - 64
std/java/_std/Hash.hx

@@ -24,45 +24,45 @@ import java.NativeArray;
  * DAMAGE.
  */
 
-@:core_api class Hash<T>  
+@:coreApi class Hash<T>
 {
 	@:extern private static inline var HASH_UPPER = 0.77;
 	@:extern private static inline var FLAG_EMPTY = 0;
 	@:extern private static inline var FLAG_DEL = 1;
-	
+
 	/**
 	 * This is the most important structure here and the reason why it's so fast.
 	 * It's an array of all the hashes contained in the table. These hashes cannot be 0 nor 1,
 	 * which stand for "empty" and "deleted" states.
-	 * 
+	 *
 	 * The lookup algorithm will keep looking until a 0 or the key wanted is found;
 	 * The insertion algorithm will do the same but will also break when FLAG_DEL is found;
 	 */
 	private var hashes:NativeArray<HashType>;
 	private var _keys:NativeArray<String>;
 	private var vals:NativeArray<T>;
-	
+
 	private var nBuckets:Int;
 	private var size:Int;
 	private var nOccupied:Int;
 	private var upperBound:Int;
-	
+
 	private var cachedKey:String;
 	private var cachedIndex:Int;
-	
+
 #if DEBUG_HASHTBL
 	private var totalProbes:Int;
 	private var probeTimes:Int;
 	private var sameHash:Int;
 	private var maxProbe:Int;
 #end
-	
-	public function new() : Void 
+
+	public function new() : Void
 	{
 		cachedIndex = -1;
 	}
 
-	public function set( key : String, value : T ) : Void 
+	public function set( key : String, value : T ) : Void
 	{
 		var x:Int, k:Int;
 		if (nOccupied >= upperBound)
@@ -72,14 +72,14 @@ import java.NativeArray;
 			else
 				resize(nBuckets + 2);
 		}
-		
+
 		var hashes = hashes, keys = _keys, hashes = hashes;
 		{
 			var mask = (nBuckets == 0) ? 0 : nBuckets - 1;
 			var site = x = nBuckets;
 			k = hash(key);
 			var i = k & mask, nProbes = 0;
-			
+
 			//for speed up
 			if (isEither(hashes[i])) {
 				x = i;
@@ -97,16 +97,16 @@ import java.NativeArray;
 				}
 				x = i;
 			}
-			
+
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
 			totalProbes++;
 #end
 		}
-		
+
 		var flag = hashes[x];
-		if (isEmpty(flag)) 
+		if (isEmpty(flag))
 		{
 			keys[x] = key;
 			vals[x] = value;
@@ -122,17 +122,17 @@ import java.NativeArray;
 			assert(_keys[x] == key);
 			vals[x] = value;
 		}
-		
+
 		cachedIndex = x;
 		cachedKey = key;
 	}
-	
+
 	@:final private function lookup( key : String ) : Int
 	{
 		if (nBuckets != 0)
 		{
 			var hashes = hashes, keys = _keys;
-			
+
 			var mask = nBuckets - 1, hash = hash(key), k = hash, nProbes = 0;
 			var i = k & mask;
 			var last = i, flag;
@@ -146,7 +146,7 @@ import java.NativeArray;
 					throw "assert";
 #end
 			}
-			
+
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
@@ -154,10 +154,10 @@ import java.NativeArray;
 #end
 			return isEither(flag) ? -1 : i;
 		}
-		
+
 		return -1;
 	}
-	
+
 	@:final @:private function resize(newNBuckets:Int) : Void
 	{
 		//This function uses 0.25*n_bucktes bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets.
@@ -178,7 +178,7 @@ import java.NativeArray;
 					if (_keys != null)
 						arrayCopy(_keys, 0, k, 0, nBuckets);
 					_keys = k;
-					
+
 					var v = new NativeArray(newNBuckets);
 					if (vals != null)
 						arrayCopy(vals, 0, v, 0, nBuckets);
@@ -186,16 +186,16 @@ import java.NativeArray;
 				} //otherwise shrink
 			}
 		}
-		
-		if (j != 0) 
+
+		if (j != 0)
 		{ //rehashing is required
 			//resetting cache
 			cachedKey = null;
 			cachedIndex = -1;
-			
+
 			j = -1;
 			var nBuckets = nBuckets, _keys = _keys, vals = vals, hashes = hashes;
-			
+
 			var newMask = newNBuckets - 1;
 			while (++j < nBuckets)
 			{
@@ -204,19 +204,19 @@ import java.NativeArray;
 				{
 					var key = _keys[j];
 					var val = vals[j];
-					
+
 					hashes[j] = FLAG_DEL;
 					while (true) /* kick-out process; sort of like in Cuckoo hashing */
 					{
 						var nProbes = 0;
 						//var inc = getInc(k, newMask);
 						var i = k & newMask;
-						
+
 						while (!isEmpty(newHash[i]))
 							i = (i + ++nProbes) & newMask;
-						
+
 						newHash[i] = k;
-						
+
 						if (i < nBuckets && !isEither(k = hashes[i])) /* kick out the existing element */
 						{
 							{
@@ -229,7 +229,7 @@ import java.NativeArray;
 								vals[i] = val;
 								val = tmp;
 							}
-							
+
 							hashes[i] = FLAG_DEL; /* mark it as deleted in the old hash table */
 						} else { /* write the element and jump out of the loop */
 							_keys[i] = key;
@@ -239,7 +239,7 @@ import java.NativeArray;
 					}
 				}
 			}
-			
+
 			if (nBuckets > newNBuckets) /* shrink the hash table */
 			{
 				{
@@ -253,7 +253,7 @@ import java.NativeArray;
 					this.vals = v;
 				}
 			}
-			
+
 			this.hashes = newHash;
 			this.nBuckets = newNBuckets;
 			this.nOccupied = size;
@@ -261,86 +261,86 @@ import java.NativeArray;
 		}
 	}
 
-	public function get( key : String ) : Null<T> 
+	public function get( key : String ) : Null<T>
 	{
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 			return vals[idx];
 		}
-		
+
 		idx = lookup(key);
 		if (idx != -1)
 		{
 			cachedKey = key;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 		}
-		
+
 		return null;
 	}
-	
-	private function getDefault( key : String, def : T ) : T 
+
+	private function getDefault( key : String, def : T ) : T
 	{
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 			return vals[idx];
 		}
-		
+
 		idx = lookup(key);
 		if (idx != -1)
 		{
 			cachedKey = key;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 		}
-		
+
 		return def;
 	}
 
-	public function exists( key : String ) : Bool 
+	public function exists( key : String ) : Bool
 	{
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 			return true;
 		}
-		
+
 		idx = lookup(key);
 		if (idx != -1)
 		{
 			cachedKey = key;
 			cachedIndex = idx;
-			
+
 			return true;
 		}
-		
+
 		return false;
 	}
 
-	public function remove( key : String ) : Bool 
+	public function remove( key : String ) : Bool
 	{
 		var idx = -1;
 		if (! (cachedKey == key && ( (idx = cachedIndex) != -1 )))
 		{
 			idx = lookup(key);
 		}
-		
+
 		if (idx == -1)
 		{
 			return false;
 		} else {
 			if (cachedKey == key)
 				cachedIndex = -1;
-			
+
 			hashes[idx] = FLAG_EMPTY;
 			_keys[idx] = null;
 			vals[idx] = null;
 			--size;
-			
+
 			return true;
 		}
 	}
@@ -349,7 +349,7 @@ import java.NativeArray;
 		Returns an iterator of all keys in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
-	public function keys() : Iterator<String> 
+	public function keys() : Iterator<String>
 	{
 		var i = 0;
 		var len = nBuckets;
@@ -369,7 +369,7 @@ import java.NativeArray;
 				var ret = _keys[i];
 				cachedIndex = i;
 				cachedKey = ret;
-				
+
 				i = i + 1;
 				return ret;
 			}
@@ -380,7 +380,7 @@ import java.NativeArray;
 		Returns an iterator of all values in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
-	public function iterator() : Iterator<T> 
+	public function iterator() : Iterator<T>
 	{
 		var i = 0;
 		var len = nBuckets;
@@ -422,7 +422,7 @@ import java.NativeArray;
 		s.add("}");
 		return s.toString();
 	}
-	
+
 	@:extern private static inline function roundUp(x:Int):Int
 	{
 		--x;
@@ -433,21 +433,21 @@ import java.NativeArray;
 		x |= (x) >>> 16;
 		return ++x;
 	}
-	
+
 	@:extern private static inline function getInc(k:Int, mask:Int):Int //return 1 for linear probing
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)
-	
+
 	@:extern private static inline function isEither(v:HashType):Bool
 		return (v & 0xFFFFFFFE) == 0
-	
+
 	@:extern private static inline function isEmpty(v:HashType):Bool
 		return v == FLAG_EMPTY
-		
+
 	@:extern private static inline function isDel(v:HashType):Bool
 		return v == FLAG_DEL
-	
+
 	//guarantee: Whatever this function is, it will never return 0 nor 1
-	@:extern private static inline function hash(s:String):HashType 
+	@:extern private static inline function hash(s:String):HashType
 	{
 		var k:Int = untyped s.hashCode();
 		//k *= 357913941;
@@ -455,14 +455,14 @@ import java.NativeArray;
 		//k += ~357913941;
 		//k ^= k >> 31;
 		//k ^= k << 31;
-		
+
 		k = (k+0x7ed55d16) + (k<<12);
 		k = (k^0xc761c23c) ^ (k>>19);
 		k = (k+0x165667b1) + (k<<5);
 		k = (k+0xd3a2646c) ^ (k<<9);
 		k = (k+0xfd7046c5) + (k<<3);
 		k = (k^0xb55a4f09) ^ (k>>16);
-		
+
 		var ret = k;
 		if (isEither(ret))
 		{
@@ -471,13 +471,13 @@ import java.NativeArray;
 			else
 				ret = 0xFFFFFFFF;
 		}
-		
+
 		return ret;
 	}
-	
+
 	@:extern private static inline function arrayCopy(sourceArray:Dynamic, sourceIndex:Int, destinationArray:Dynamic, destinationIndex:Int, length:Int):Void
 		java.lang.System.arraycopy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
-	
+
 	@:extern private static inline function assert(x:Bool):Void
 	{
 #if DEBUG_HASHTBL

+ 1 - 1
std/java/_std/IntHash.hx

@@ -32,7 +32,7 @@ import java.NativeArray;
  * (https://jonasmalaco.com/fossil/test/jonas-haxe/artifact/887b53126e237d6c68951111d594033403889304)
  */
 
-@:core_api class IntHash<T>
+@:coreApi class IntHash<T>
 {
 	private static inline var HASH_UPPER = 0.7;
 

+ 1 - 0
std/java/_std/Math.hx

@@ -26,6 +26,7 @@
 /**
 	This class defines mathematical functions and constants.
 **/
+@:coreApi
 @:native("java.lang.Math") extern class Math
 {
 	static var PI(default,null) : Float;

+ 14 - 14
std/java/_std/Reflect.hx

@@ -29,7 +29,7 @@ import java.Boot;
 	The Reflect API is a way to manipulate values dynamicly through an
 	abstract interface in an untyped manner. Use with care.
 **/
-@:keep @:core_api class Reflect {
+@:keep @:coreApi class Reflect {
 
 	/**
 		Tells if an object has a field set. This doesn't take into account the object prototype (class methods).
@@ -37,7 +37,7 @@ import java.Boot;
 	@:functionBody('
 		if (o instanceof haxe.lang.IHxObject)
 		return ((haxe.lang.IHxObject) o).__hx_getField(field, false, true, false) != haxe.lang.Runtime.undefined;
-		
+
 		return haxe.lang.Runtime.slowHasField(o, field);
 	')
 	public static function hasField( o : Dynamic, field : String ) : Bool
@@ -51,7 +51,7 @@ import java.Boot;
 	@:functionBody('
 		if (o instanceof haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, false, false, false);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	public static function field( o : Dynamic, field : String ) : Dynamic
@@ -71,16 +71,16 @@ import java.Boot;
 	')
 	public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
-		
+
 	}
-	
+
 	/**
 		Similar to field but also supports property (might be slower).
 	**/
 	@:functionBody('
 		if (o instanceof haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, false, false, true);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
@@ -99,7 +99,7 @@ import java.Boot;
 	')
 	public static function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
-		
+
 	}
 
 	/**
@@ -159,18 +159,18 @@ import java.Boot;
 		Compare two methods closures. Returns true if it's the same method of the same instance.
 	**/
 	@:functionBody('
-		if (f1 == f2) 
+		if (f1 == f2)
 			return true;
-		
+
 		if (f1 instanceof haxe.lang.Closure && f2 instanceof haxe.lang.Closure)
 		{
 			haxe.lang.Closure f1c = (haxe.lang.Closure) f1;
 			haxe.lang.Closure f2c = (haxe.lang.Closure) f2;
-			
+
 			return haxe.lang.Runtime.refEq(f1c.obj, f2c.obj) && f1c.field.equals(f2c.field);
 		}
-		
-		
+
+
 		return false;
 	')
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool
@@ -220,6 +220,6 @@ import java.Boot;
 	{
 		return new VarArgsFunction(f);
 	}
-	
-	
+
+
 }

+ 36 - 37
std/java/_std/Std.hx

@@ -25,9 +25,9 @@
 import java.Boot;
 import java.Lib;
 import java.internal.Exceptions;
- 
-@:core_api @:nativegen class Std {
-	public static function is( v : Dynamic, t : Dynamic ) : Bool 
+
+@:coreApi @:nativegen class Std {
+	public static function is( v : Dynamic, t : Dynamic ) : Bool
 	{
 		if (v == null)
 			return t == Dynamic;
@@ -37,7 +37,7 @@ import java.internal.Exceptions;
 		if (clt == null)
 			return false;
 		var name:String = untyped __java__("clt.getName()");
-		
+
 		switch(name)
 		{
 			case "double", "java.lang.Double":
@@ -49,9 +49,9 @@ import java.internal.Exceptions;
 			case "java.lang.Object":
 				return true;
 		}
-		
+
 		var clv:Class<Dynamic> = untyped __java__('v.getClass()');
-		
+
 		return untyped clt.isAssignableFrom(clv);
 	}
 
@@ -62,15 +62,15 @@ import java.internal.Exceptions;
 	public static inline function int( x : Float ) : Int {
 		return cast x;
 	}
-	
+
 	@:functionBody('
 		if (x == null) return null;
-		
+
 		int ret = 0;
 		int base = 10;
 		int i = 0;
 		int len = x.length();
-		
+
 		if (x.startsWith("0") && len > 2)
 		{
 			char c = x.charAt(1);
@@ -80,28 +80,28 @@ import java.internal.Exceptions;
 				base = 16;
 			}
 		}
-		
+
 		boolean foundAny = false;
 		boolean isNeg = false;
 		for (; i < len; i++)
 		{
 			char c = x.charAt(i);
-			if (!foundAny) 
+			if (!foundAny)
 			{
 				switch(c)
 				{
 					case \'-\':
 						isNeg = true;
 						continue;
-					case \'\\n\': 
-					case \'\\t\': 
-					case \'\\r\': 
-					case \' \': 
+					case \'\\n\':
+					case \'\\t\':
+					case \'\\r\':
+					case \' \':
 						if (isNeg) return null;
 						continue;
 				}
 			}
-			
+
 			if (c >= \'0\' && c <= \'9\')
 			{
 				if (!foundAny && c == \'0\')
@@ -110,7 +110,7 @@ import java.internal.Exceptions;
 					continue;
 				}
 				ret *= base; foundAny = true;
-				
+
 				ret += ((int) (c - \'0\'));
 			} else if (base == 16) {
 				if (c >= \'a\' && c <= \'f\') {
@@ -126,7 +126,7 @@ import java.internal.Exceptions;
 				break;
 			}
 		}
-		
+
 		if (foundAny)
 			return isNeg ? -ret : ret;
 		else
@@ -135,45 +135,45 @@ import java.internal.Exceptions;
 	public static function parseInt( x : String ) : Null<Int> {
 		return null;
 	}
-	
+
 	@:functionBody('
 		if (x == null) return java.lang.Double.NaN;
-		
+
 		x = x.trim();
 		double ret = 0.0;
 		double div = 0.0;
 		double e = 0.0;
-		
+
 		int len = x.length();
 		boolean foundAny = false;
 		boolean isNeg = false;
 		for (int i = 0; i < len; i++)
 		{
 			char c = x.charAt(i);
-			if (!foundAny) 
+			if (!foundAny)
 			{
 				switch(c)
 				{
 					case \'-\':
 						isNeg = true;
 						continue;
-					case \'\\n\': 
-					case \'\\t\': 
-					case \'\\r\': 
-					case \' \': 
+					case \'\\n\':
+					case \'\\t\':
+					case \'\\r\':
+					case \' \':
 					if (isNeg) return java.lang.Double.NaN;
 						continue;
 				}
 			}
-			
+
 			if (c == \'.\') {
-				if (div != 0.0) 
+				if (div != 0.0)
 					break;
 				div = 1.0;
-				
+
 				continue;
 			}
-			
+
 			if (c >= \'0\' && c <= \'9\')
 			{
 				if (!foundAny && c == \'0\')
@@ -182,12 +182,12 @@ import java.internal.Exceptions;
 					continue;
 				}
 				ret *= 10.0; foundAny = true; div *= 10.0;
-				
+
 				ret += ((int) (c - \'0\'));
 			} else if (foundAny && c == \'E\' || c == \'e\') {
 				boolean eNeg = false;
 				boolean eFoundAny = false;
-				
+
 				char next = x.charAt(i + 1);
 				if (i + 1 < len)
 				{
@@ -199,7 +199,7 @@ import java.internal.Exceptions;
 						i++;
 					}
 				}
-				
+
 				while (++i < len)
 				{
 					c = x.charAt(i);
@@ -214,15 +214,15 @@ import java.internal.Exceptions;
 						break;
 					}
 				}
-				
+
 				if (eNeg) e = -e;
 			} else {
 				break;
 			}
 		}
-		
+
 		if (div == 0.0) div = 1.0;
-		
+
 		if (foundAny)
 		{
 			ret = isNeg ? -(ret / div) : (ret / div);
@@ -250,4 +250,3 @@ import java.internal.Exceptions;
 	}
 
 }
-	

+ 1 - 1
std/java/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api
+@:coreApi
 class StringBuf {
 
 	private var b : java.lang.StringBuilder;

+ 6 - 6
std/java/_std/Sys.hx

@@ -28,11 +28,11 @@ import sys.io.Process;
 /**
 	This class gives you access to many base functionalities of system platforms. Looks in [sys] sub packages for more system APIs.
 **/
-@:core_api class Sys {
+@:coreApi class Sys {
 	private static var _args:java.NativeArray<String>;
 	private static var _env:Hash<String>;
 	private static var _sysName:String;
-	
+
 	/**
 		Print any value on the standard output.
 	**/
@@ -89,7 +89,7 @@ import sys.io.Process;
 		{
 			_env.set(mv.getKey(), mv.getValue());
 		}
-		
+
 		return _env;
 	}
 
@@ -100,7 +100,7 @@ import sys.io.Process;
 	{
 		try
 			java.lang.Thread.sleep(cast seconds * 1000)
-		catch (e:Dynamic) 
+		catch (e:Dynamic)
 			throw e;
 	}
 
@@ -146,7 +146,7 @@ import sys.io.Process;
 			return _sysName = "Linux";
 		if (sname.indexOf("nix") >= 0)
 			return _sysName = "BSD";
-		
+
 		return _sysName = System.getProperty("os.name");
 	}
 
@@ -160,7 +160,7 @@ import sys.io.Process;
 		var proc:Process = new Process(cmd, args == null ? [] : args);
 		var ret = proc.exitCode();
 		proc.close();
-		
+
 		return ret;
 	}
 

+ 49 - 49
std/java/_std/Type.hx

@@ -35,47 +35,47 @@
 	TUnknown;
 }
 
-@:keep @:core_api class Type {
-	
+@:keep @:coreApi class Type {
+
 	@:functionBody('
 		if (o instanceof haxe.lang.DynamicObject || o instanceof java.lang.Class)
 			return null;
-			
+
 		return (java.lang.Class<T>) o.getClass();
 	')
-	public static function getClass<T>( o : T ) : Class<T> untyped 
+	public static function getClass<T>( o : T ) : Class<T> untyped
 	{
 		return null;
 	}
-	
+
 	@:functionBody('
 		if (o instanceof java.lang.Enum || o instanceof haxe.lang.Enum)
 			return o.getClass();
 		return null;
 	')
-	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped 
+	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped
 	{
 		return null;
 	}
-	
+
 	@:functionBody('
 		java.lang.Class cl = (c == null) ? null : c.getSuperclass();
 		if (cl != null && !cl.getName().equals("haxe.lang.HxObject") && !cl.getName().equals("java.lang.Object") )
 			return cl;
 		return null;
 	')
-	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> untyped 
+	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> untyped
 	{
 		return null;
 	}
-	
+
 	public static function getClassName( c : Class<Dynamic> ) : String untyped {
 		var name:String = c.getName();
 		if (name.startsWith("haxe.root."))
 			return name.substr(10);
 		if (name.startsWith("java.lang"))
 			name = name.substr(10);
-			
+
 		return switch(name)
 		{
 			case "int", "Integer": "Int";
@@ -91,7 +91,7 @@
 			return ret.substr(10);
 		else if (ret == "boolean" || ret == "java.lang.Boolean")
 			return "Bool";
-		
+
 		return ret;
 	}
 
@@ -112,13 +112,13 @@
 			return null;
 		}
 	')
-	public static function resolveClass( name : String ) : Class<Dynamic> untyped 
+	public static function resolveClass( name : String ) : Class<Dynamic> untyped
 	{
 		return null;
 	}
 
 
-	public static function resolveEnum( name : String ) : Enum<Dynamic> untyped 
+	public static function resolveEnum( name : String ) : Enum<Dynamic> untyped
 	{
 		if (name.equals("Bool")) return Bool;
 		return resolveClass(name);
@@ -128,7 +128,7 @@
 			int len = args.length;
 			java.lang.Class[] cls = new java.lang.Class[len];
 			java.lang.Object[] objs = new java.lang.Object[len];
-			
+
 			java.lang.reflect.Constructor[] ms = cl.getConstructors();
 			int msl = ms.length;
 			int realMsl = 0;
@@ -144,25 +144,25 @@
 					realMsl++;
 				}
 			}
-			
+
 			boolean hasNumber = false;
-			
+
 			for (int i = 0; i < len; i++)
 			{
 				Object o = args.__get(i);
 				objs[i]= o;
 				cls[i] = o.getClass();
 				boolean isNum = false;
-				
+
 				if (o instanceof java.lang.Number)
 				{
 					cls[i] = java.lang.Number.class;
 					isNum = hasNumber = true;
 				}
-				
+
 				msl = realMsl;
 				realMsl = 0;
-				
+
 				for (int j = 0; j < msl; j++)
 				{
 					java.lang.Class[] allcls = ms[j].getParameterTypes();
@@ -179,15 +179,15 @@
 						}
 					}
 				}
-				
+
 			}
-			
+
 			java.lang.reflect.Constructor found = ms[0];
-			
+
 			if (hasNumber)
 			{
 				java.lang.Class[] allcls = found.getParameterTypes();
-				
+
 				for (int i = 0; i < len; i++)
 				{
 					java.lang.Object o = objs[i];
@@ -221,35 +221,35 @@
 					}
 				}
 			}
-			
+
 		try {
 			found.setAccessible(true);
 			return (T) found.newInstance(objs);
 		}
-		catch (java.lang.reflect.InvocationTargetException e) 
+		catch (java.lang.reflect.InvocationTargetException e)
 		{
 			throw haxe.lang.HaxeException.wrap(e.getCause());
 		}
-		
-		catch (Throwable t) 
+
+		catch (Throwable t)
 		{
 			throw haxe.lang.HaxeException.wrap(t);
 		}
 	')
-	public static function createInstance<T>( cl : Class<T>, args : Array<Dynamic> ) : T untyped 
+	public static function createInstance<T>( cl : Class<T>, args : Array<Dynamic> ) : T untyped
 	{
 		return null;
 	}
-	
-	public static function createEmptyInstance<T>( cl : Class<T> ) : T untyped 
+
+	public static function createEmptyInstance<T>( cl : Class<T> ) : T untyped
 	{
 		if (Reflect.hasField(cl, "__hx_createEmpty"))
 			return cl.__hx_createEmpty();
 		return createInstance(cl, []);
 	}
-	
+
 	@:functionBody('
-		if (params == null) 
+		if (params == null)
 		{
 			java.lang.Object ret = haxe.lang.Runtime.slowGetField(e, constr, false);
 			if (ret instanceof haxe.lang.Function)
@@ -259,22 +259,22 @@
 			return (T) haxe.lang.Runtime.slowCallField(e, constr, params);
 		}
 	')
-	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T 
+	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T
 	{
 		return null;
 	}
-	
+
 	public static function createEnumIndex<T>( e : Enum<T>, index : Int, ?params : Array<Dynamic> ) : T {
 		var constr = getEnumConstructs(e);
 		return createEnum(e, constr[index], params);
 	}
-	
+
 	@:functionBody('
 		if (c == java.lang.String.class)
 		{
 			return haxe.lang.StringRefl.fields;
 		}
-		
+
 		Array<String> ret = new Array<String>();
 		for (java.lang.reflect.Field f : c.getDeclaredFields())
 		{
@@ -282,20 +282,20 @@
 			if (!java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_"))
 				ret.push(fname);
 		}
-		
+
 		for (java.lang.reflect.Method m : c.getDeclaredMethods())
 		{
 			java.lang.String mname = m.getName();
 			if (!java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_"))
 				ret.push(mname);
 		}
-		
+
 		return ret;
 	')
 	public static function getInstanceFields( c : Class<Dynamic> ) : Array<String> {
 		return null;
 	}
-	
+
 	@:functionBody('
 		Array<String> ret = new Array<String>();
 		if (c == java.lang.String.class)
@@ -303,36 +303,36 @@
 			ret.push("fromCharCode");
 			return ret;
 		}
-		
+
 		for (java.lang.reflect.Field f : c.getDeclaredFields())
 		{
 			java.lang.String fname = f.getName();
 			if (java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_"))
 			ret.push(fname);
 		}
-		
+
 		for (java.lang.reflect.Method m : c.getDeclaredMethods())
 		{
 			java.lang.String mname = m.getName();
 			if (java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_"))
 				ret.push(mname);
 		}
-		
+
 		return ret;
 	')
 	public static function getClassFields( c : Class<Dynamic> ) : Array<String> {
 		return null;
 	}
-	
+
 	public static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String> {
 		if (Reflect.hasField(e, "constructs"))
 			return untyped e.constructs;
 		return getClassFields(cast e);
 	}
-	
+
 	@:functionBody('
 		if (v == null) return ValueType.TNull;
-		
+
 		if (v instanceof haxe.lang.IHxObject) {
 			haxe.lang.IHxObject vobj = (haxe.lang.IHxObject) v;
 			java.lang.Class cl = vobj.getClass();
@@ -358,7 +358,7 @@
 			return ValueType.TClass(v.getClass());
 		}
 	')
-	public static function typeof( v : Dynamic ) : ValueType untyped 
+	public static function typeof( v : Dynamic ) : ValueType untyped
 	{
 		return null;
 	}
@@ -369,7 +369,7 @@
 			else
 				return haxe.lang.Runtime.eq(a, b);
 	')
-	public static function enumEq<T>( a : T, b : T ) : Bool untyped 
+	public static function enumEq<T>( a : T, b : T ) : Bool untyped
 	{
 		return a.equals(b);
 	}
@@ -392,7 +392,7 @@
 	{
 		return null;
 	}
-	
+
 	@:functionBody('
 		if (e instanceof java.lang.Enum)
 			return ((java.lang.Enum) e).ordinal();
@@ -404,7 +404,7 @@
 		return e.index;
 	}
 
-	public static function allEnums<T>( e : Enum<T> ) : Array<T> 
+	public static function allEnums<T>( e : Enum<T> ) : Array<T>
 	{
 		var ctors = getEnumConstructs(e);
 		var ret = [];

+ 1 - 1
std/java/_std/Xml.hx

@@ -37,7 +37,7 @@ private enum RealXmlType {
         Document;
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 6 - 5
std/java/_std/haxe/Int64.hx

@@ -26,14 +26,15 @@ package haxe;
 using haxe.Int64;
 private typedef NativeInt64 = Int;
 
+@:coreApi
 @:nativegen class Int64
 {
 	@:extern private static inline function asNative(i:haxe.Int64):NativeInt64 return untyped i
 	@:extern private static inline function ofNative(i:NativeInt64):haxe.Int64 return untyped i
 	@:extern private static inline function mkNative(i:Dynamic):NativeInt64 return i
-	
+
 	#if haxe3
-	
+
 	public static inline function make( high : Int, low : Int ) : haxe.Int64
 	{
 		return ((cast(high, NativeInt64) << 32 ) | (cast(low, NativeInt64))).ofNative();
@@ -48,9 +49,9 @@ private typedef NativeInt64 = Int;
 	{
 		return cast(x,NativeInt64) >>> 32;
 	}
-	
+
 	#else
-	
+
 	public static inline function make( high : Int32, low : Int32 ) : haxe.Int64
 	{
 		return ((cast(high, NativeInt64) << 32 ) | (cast(low, NativeInt64))).ofNative();
@@ -59,7 +60,7 @@ private typedef NativeInt64 = Int;
 	public static inline function ofInt32( x : Int32 ) : haxe.Int64 {
 		return cast x;
 	}
-	
+
 	public static inline function getLow( x : haxe.Int64 ) : Int32
 	{
 		return cast (x.asNative() & 0xFFFFFFFF.mkNative());

+ 2 - 1
std/java/_std/sys/FileSystem.hx

@@ -29,6 +29,7 @@ import java.Lib;
 /**
 	This class allows you to get informations about the files and directories.
 **/
+@:coreApi
 class FileSystem {
 
 	/**
@@ -109,7 +110,7 @@ class FileSystem {
 		if (!new File(path).delete())
 			throw "Cannot delete file " + path;
 	}
-	
+
 	/**
 		Delete a given directory.
 	**/

+ 11 - 10
std/java/_std/sys/io/File.hx

@@ -27,6 +27,7 @@ package sys.io;
 /**
 	API for reading and writing to files.
 **/
+@:coreApi
 class File {
 
 	public static function getContent( path : String ) : String
@@ -36,14 +37,14 @@ class File {
 		f.close();
 		return ret;
 	}
-	
+
 	public static function saveContent( path : String, content : String ) : Void
 	{
 		var f = write(path, false);
 		f.writeString(content);
 		f.close();
 	}
-	
+
 	public static function getBytes( path : String ) : haxe.io.Bytes
 	{
 		var f = read(path, true);
@@ -51,14 +52,14 @@ class File {
 		f.close();
 		return ret;
 	}
-	
+
 	public static function saveBytes( path : String, bytes : haxe.io.Bytes ) : Void
 	{
 		var f = write(path, true);
 		f.writeBytes(bytes, 0, bytes.length);
 		f.close();
 	}
-	
+
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	{
 		try
@@ -70,7 +71,7 @@ class File {
 			throw e;
 		}
 	}
-	
+
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	{
 		var f = new java.io.File(path);
@@ -78,7 +79,7 @@ class File {
 		{
 			f.delete();
 		}
-		
+
 		try
 		{
 			return new FileOutput( new java.io.RandomAccessFile(f, "rw") );
@@ -88,11 +89,11 @@ class File {
 			throw e;
 		}
 	}
-	
+
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	{
 		var f = new java.io.File(path);
-		
+
 		try
 		{
 			var ra = new java.io.RandomAccessFile(f, "rw");
@@ -107,7 +108,7 @@ class File {
 			throw e;
 		}
 	}
-	
+
 	public static function copy( src : String, dst : String ) : Void
 	{
 		var r:FileInput = null;
@@ -118,7 +119,7 @@ class File {
 			w = write(dst);
 			w.writeInput(r);
 		}
-		
+
 		catch (e:Dynamic)
 		{
 			if (r != null) r.close();

+ 21 - 20
std/java/_std/sys/io/Process.hx

@@ -29,12 +29,13 @@ import haxe.io.Eof;
 import java.io.Exceptions;
 import java.NativeArray;
 
+@:coreApi
 class Process {
 
 	public var stdout(default,null) : haxe.io.Input;
 	public var stderr(default,null) : haxe.io.Input;
 	public var stdin(default, null) : haxe.io.Output;
-	
+
 	private var proc:java.lang.Process;
 
 	public function new( cmd : String, args : Array<String> ) : Void
@@ -45,26 +46,26 @@ class Process {
 		{
 			pargs[i + 1] = args[i];
 		}
-		
+
 		try
 		{
 			proc = new java.lang.ProcessBuilder(pargs).start();
 		}
 		catch (e:Dynamic) { throw e; } //wrapping typed exceptions
-		
+
 		var p = proc;
 		stderr = new ProcessInput(p.getErrorStream());
 		stdout = new ProcessInput(p.getInputStream());
 		stdin = new java.io.NativeOutput(p.getOutputStream());
 	}
-	
+
 	public function getPid() : Int
 	{
 		if (Reflect.hasField(proc, "pid"))
 			return Reflect.field(proc, "pid");
 		return -1;
 	}
-	
+
 	public function exitCode() : Int
 	{
 		cast(stdout, ProcessInput).bufferContents();
@@ -76,12 +77,12 @@ class Process {
 		catch (e:Dynamic) { throw e; }
 		return proc.exitValue();
 	}
-	
+
 	public function close() : Void
 	{
 		proc.destroy();
 	}
-	
+
 	public function kill() : Void
 	{
 		proc.destroy();
@@ -93,55 +94,55 @@ class Process {
 private class ProcessInput extends java.io.NativeInput
 {
 	private var chained:BytesInput;
-	
+
 	public function bufferContents():Void
 	{
 		if (chained != null) return;
 		var b = this.readAll();
 		chained = new BytesInput(b);
 	}
-	
-	override public function readByte():Int 
+
+	override public function readByte():Int
 	{
 		if (chained != null)
 			return chained.readByte();
 		try
 		{
 			return stream.read();
-		} 
+		}
 		catch (e:EOFException) {
 			throw new Eof();
 		}
-		
+
 		catch (e:IOException) {
 			throw haxe.io.Error.Custom(e);
 		}
 	}
-	
-	override public function readBytes(s:Bytes, pos:Int, len:Int):Int 
+
+	override public function readBytes(s:Bytes, pos:Int, len:Int):Int
 	{
 		if (chained != null)
 			return chained.readBytes(s, pos, len);
-		
+
 		var ret = -1;
 		try
 		{
 			ret = stream.read(s.getData(), pos, len);
 		}
-		
+
 		catch (e:EOFException) {
 			throw new Eof();
 		}
-		
+
 		catch (e:IOException) {
 			throw haxe.io.Error.Custom(e);
 		}
-		
+
 		if (ret == -1)
 			throw new Eof();
 		return ret;
 	}
-	
+
 	override public function close():Void
 	{
 		if (chained != null)
@@ -150,7 +151,7 @@ private class ProcessInput extends java.io.NativeInput
 		{
 			stream.close();
 		}
-		
+
 		catch (e:IOException) {
 			throw haxe.io.Error.Custom(e);
 		}

+ 1 - 1
std/js/_std/Array.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api
+@:coreApi
 extern class Array<T> {
 
 	var length(default,null) : Int;

+ 1 - 1
std/js/_std/Date.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api extern class Date {
+@:coreApi extern class Date {
 
 	function new(year : Int, month : Int, day : Int, hour : Int, min : Int, sec : Int ) : Void;
 	function getTime() : Float;

+ 1 - 1
std/js/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 	var r : Dynamic;
 

+ 1 - 1
std/js/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 	private var h : Dynamic;
 

+ 1 - 1
std/js/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 	private var h : Dynamic;
 

+ 1 - 1
std/js/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 	public static function hasField( o : Dynamic, field : String ) : Bool {
 		return untyped __js__('Object').prototype.hasOwnProperty.call(o, field);

+ 1 - 1
std/js/_std/Std.hx

@@ -24,7 +24,7 @@
  */
 import js.Boot;
 
-@:core_api class Std {
+@:coreApi class Std {
 
 	public static inline function is( v : Dynamic, t : Dynamic ) : Bool {
 		return untyped js.Boot.__instanceof(v,t);

+ 1 - 1
std/js/_std/String.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api extern class String {
+@:coreApi extern class String {
 	var length(default,null) : Int;
 
 	function new(string:String) : Void;

+ 1 - 1
std/js/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 }
 
-@:core_api class Type {
+@:coreApi class Type {
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		if( o == null )

+ 1 - 1
std/js/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 1 - 1
std/neko/_std/Array.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api @:final class Array<T> {
+@:coreApi @:final class Array<T> {
 
 	private var __a : neko.NativeArray<T>;
 	public var length(default,null) : Int;

+ 1 - 1
std/neko/_std/Date.hx

@@ -24,7 +24,7 @@
  */
 import neko.Lib;
 
-@:core_api @:final class Date {
+@:coreApi @:final class Date {
 
 	private var __t : Dynamic;
 

+ 1 - 1
std/neko/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api @:final class EReg {
+@:coreApi @:final class EReg {
 
 	var r : Dynamic;
 	var last : String;

+ 1 - 1
std/neko/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 	private var h : Dynamic;
 

+ 1 - 1
std/neko/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 	private var h : Dynamic;
 

+ 1 - 1
std/neko/_std/Math.hx

@@ -24,7 +24,7 @@
  */
 import neko.Lib;
 
-@:core_api @:final class Math {
+@:coreApi @:final class Math {
 
 	public static var PI(default,null) : Float;
 	public static var NaN(default,null) : Float;

+ 1 - 1
std/neko/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 	public static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return $typeof(o) == $tobject && $objfield(o,$fasthash(field.__s));

+ 1 - 1
std/neko/_std/Std.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Std {
+@:coreApi class Std {
 
 	@:feature("typed_cast")
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {

+ 4 - 4
std/neko/_std/String.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api @:final class String {
+@:coreApi @:final class String {
 
 	static var __is_String;
 	private static var __split : Dynamic = neko.Lib.load("std","string_split",2);
@@ -135,19 +135,19 @@
 		} else if ( endIndex > length ) {
 			endIndex = length;
 		}
-		
+
 		if ( startIndex < 0 ) {
 			startIndex = 0;
 		} else if ( startIndex > length ) {
 			startIndex = length;
 		}
-		
+
 		if ( startIndex > endIndex ) {
 			var tmp = startIndex;
 			startIndex = endIndex;
 			endIndex = tmp;
 		}
-		
+
 		return substr( startIndex, endIndex - startIndex );
 	}
 

+ 1 - 1
std/neko/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class StringBuf {
+@:coreApi class StringBuf {
 
 	private var b : Dynamic;
 

+ 1 - 1
std/neko/_std/Sys.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api class Sys {
+@:coreApi class Sys {
 
 	public static function print( v : Dynamic ) : Void {
 		untyped __dollar__print(v);

+ 1 - 1
std/neko/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 }
 
-@:core_api class Type {
+@:coreApi class Type {
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		if( __dollar__typeof(o) != __dollar__tobject )

+ 1 - 1
std/neko/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 }
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 1 - 1
std/neko/_std/haxe/Int32.hx

@@ -24,7 +24,7 @@
  */
 package haxe;
 
-@:core_api class Int32 {
+@:coreApi class Int32 {
 
 	public static inline function make( a : Int, b : Int ) : Int32 {
 		return add(shl(cast a,16),cast b);

+ 1 - 1
std/neko/_std/haxe/Utf8.hx

@@ -24,7 +24,7 @@
  */
 package haxe;
 
-@:core_api
+@:coreApi
 class Utf8 {
 
 	var __b : Void;

+ 1 - 1
std/neko/_std/sys/FileSystem.hx

@@ -30,7 +30,7 @@ private enum FileKind {
 	kother( k : String );
 }
 
-@:core_api
+@:coreApi
 class FileSystem {
 
 	public static function exists( path : String ) : Bool {

+ 1 - 1
std/neko/_std/sys/db/Mysql.hx

@@ -186,7 +186,7 @@ private class MysqlConnection implements sys.db.Connection {
 	private static var __use_date = Date;
 }
 
-@:core_api class Mysql {
+@:coreApi class Mysql {
 
 	public static function connect( params : {
 		host : String,

+ 1 - 1
std/neko/_std/sys/db/Sqlite.hx

@@ -193,7 +193,7 @@ private class SqliteResultSet implements ResultSet {
 
 }
 
-@:core_api class Sqlite {
+@:coreApi class Sqlite {
 
 	public static function open( file : String ) : Connection {
 		return new SqliteConnection(file);

+ 1 - 1
std/neko/_std/sys/io/File.hx

@@ -30,7 +30,7 @@ enum FileHandle {
 /**
 	API for reading and writing to files.
 **/
-@:core_api class File {
+@:coreApi class File {
 
 	public static function getContent( path : String ) : String {
 		return new String(file_contents(untyped path.__s));

+ 1 - 1
std/neko/_std/sys/io/FileInput.hx

@@ -24,7 +24,7 @@
  */
 package sys.io;
 
-@:core_api class FileInput extends haxe.io.Input {
+@:coreApi class FileInput extends haxe.io.Input {
 
 	private var __f : File.FileHandle;
 

+ 1 - 1
std/neko/_std/sys/io/FileOutput.hx

@@ -24,7 +24,7 @@
  */
 package sys.io;
 
-@:core_api class FileOutput extends haxe.io.Output {
+@:coreApi class FileOutput extends haxe.io.Output {
 
 	private var __f : File.FileHandle;
 

+ 1 - 1
std/neko/_std/sys/io/Process.hx

@@ -88,7 +88,7 @@ private class Stdout extends haxe.io.Input {
 
 }
 
-@:core_api class Process {
+@:coreApi class Process {
 
 	var p : Void;
 	public var stdout(default,null) : haxe.io.Input;

+ 1 - 1
std/neko/_std/sys/net/Host.hx

@@ -25,7 +25,7 @@
  */
 package sys.net;
 
-@:core_api
+@:coreApi
 class Host {
 
 	public var ip(default,null) : Int;

+ 1 - 1
std/neko/_std/sys/net/Socket.hx

@@ -117,7 +117,7 @@ private class SocketInput extends haxe.io.Input {
 
 }
 
-@:core_api
+@:coreApi
 class Socket {
 
 	private var __s : SocketHandle;

+ 1 - 1
std/php/_std/Date.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  */
 
-@:core_api @:final class Date
+@:coreApi @:final class Date
 {
 	private var __t : Float;
 

Some files were not shown because too many files changed in this diff