Ver código fonte

[Cs,Java] added/fixed @:coreApi on String and EReg

Simon Krajewski 12 anos atrás
pai
commit
cd3925dd6c
4 arquivos alterados com 8 adições e 8 exclusões
  1. 3 3
      std/cs/_std/EReg.hx
  2. 1 1
      std/cs/_std/String.hx
  3. 3 3
      std/java/_std/EReg.hx
  4. 1 1
      std/java/_std/String.hx

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

@@ -21,7 +21,7 @@
  */
 import cs.system.text.regularExpressions.Regex;
 
-class EReg {
+@:coreApi class EReg {
 
 	private var regex : Regex;
 	private var m : Match;
@@ -86,12 +86,12 @@ class EReg {
 		return untyped [s.Substring(0, m.Index), s.Substring(m.Index + m.Length)];
 	}
 
-	inline function start(group:Int)
+	inline function start(group:Int) : Int
 	{
 		return m.Groups[group].Index;
 	}
 
-	inline function len(group:Int)
+	inline function len(group:Int) : Int
 	{
 		return m.Groups[group].Length;
 	}

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

@@ -21,7 +21,7 @@
  */
 import cs.StdTypes;
 
-@:coreType extern class String implements ArrayAccess<Char16> {
+@:coreApi extern class String implements ArrayAccess<Char16> {
 
 	private static function Compare(s1:String, s2:String):Int;
 

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

@@ -21,7 +21,7 @@
  */
 import java.util.regex.*;
 
-@:coreType class EReg {
+@:coreApi class EReg {
 
 	private var pattern:String;
 	private var matcher:Matcher;
@@ -136,12 +136,12 @@ import java.util.regex.*;
 		}
 	}
 
-	inline function start(group:Int)
+	inline function start(group:Int) : Int
 	{
 		return matcher.start(group);
 	}
 
-	inline function len(group:Int)
+	inline function len(group:Int) : Int
 	{
 		return matcher.end(group) - matcher.start(group);
 	}

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

@@ -20,7 +20,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-extern class String implements java.lang.CharSequence {
+@:coreApi extern class String implements java.lang.CharSequence {
 
 	var length(default,null) : Int;