Browse Source

Lua: add 'match' method to lua.StringTools

Justin Donaldson 9 years ago
parent
commit
df083b19e6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/lua/StringTools.hx

+ 2 - 0
std/lua/StringTools.hx

@@ -17,6 +17,8 @@ extern class StringTools {
 	@:overload(   function     (str : String, pattern : String, replace : String->String, ?n : Int): String {})
 	public static function gsub(str : String, pattern : String, replace : String,		  ?n : Int): String;
 
+	public static function match(str : String, pattern : String, ?idx : Int): String;
+
 	@:overload(   function     (str : String, pattern : String, match : Void->String,   ?n : Int): String->Void {})
 	public static function gmatch(str : String, pattern : String, ?n : Int): Void->String;