2
0
Эх сурвалжийг харах

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

Justin Donaldson 9 жил өмнө
parent
commit
962a73c52d
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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
 	 parameter is a regular expression pattern representing separators between
 	 the sections. 
 	 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;
 	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
 	  This function searches for all matches of the pattern patt in the string subj
 	  and replaces them according to the parameters repl and n.
 	  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;
 	public static function gsub(subj : String, patt : String, repl: Dynamic, ?n: Int, ?cf : Int, ?ef : Int) : String;
 }
 }