Sfoglia il codice sorgente

Lua : Add/format overload signatures for Rex.replace and split

Justin Donaldson 9 anni fa
parent
commit
962a73c52d
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      std/lua/Rex.hx

+ 2 - 1
std/lua/Rex.hx

@@ -27,7 +27,7 @@ extern class Rex {
 	 parameter is a regular expression pattern representing separators between
 	 the sections. 
 	 **/
-	@:overload(   function(subj : String, sep : Rex, ?cf : Int, ?ef : Int) : Void->String{})
+	@:overload(   function      (subj : String, sep : Rex,    ?cf : Int, ?ef : Int) : Void->String{})
 	public static function split(subj : String, sep : String, ?cf : Int, ?ef : Int) : Void->String;
 
 
@@ -51,6 +51,7 @@ extern class Rex {
 	  This function searches for all matches of the pattern patt in the string subj
 	  and replaces them according to the parameters repl and n.
 	 **/
+	@:overload(	  function     (subj : String, patt : Rex,    repl: Dynamic, ?n: Int, ?cf : Int, ?ef : Int) : String {})
 	public static function gsub(subj : String, patt : String, repl: Dynamic, ?n: Int, ?cf : Int, ?ef : Int) : String;
 }