浏览代码

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

Justin Donaldson 9 年之前
父节点
当前提交
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
 	 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;
 }