public static string escape(string path, object allowSlashes) { #line 329 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx" bool allowSlashes1 = (((allowSlashes == default(object))) ? (false) : (global::haxe.lang.Runtime.toBool(allowSlashes))); global::haxe.root.EReg regex = ((allowSlashes1) ? (new global::haxe.root.EReg("[^A-Za-z0-9_/\\\\\\.]", "g")) : (new global::haxe.root.EReg("[^A-Za-z0-9_\\.]", "g"))); #line 331 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx" return(regex.map(path, (((global::haxe.io.Path_escape_331__Fun.__hx_current != null)) ? (global::haxe.io.Path_escape_331__Fun.__hx_current) : (global::haxe.io.Path_escape_331__Fun.__hx_current = ((global::haxe.io.Path_escape_331__Fun)(new global::haxe.io.Path_escape_331__Fun())))))); }
public static string unescape(string path) { #line 325 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx" global::haxe.root.EReg regex = new global::haxe.root.EReg("-x([0-9][0-9])", "g"); return(regex.map(path, (((global::haxe.io.Path_unescape_326__Fun.__hx_current != null)) ? (global::haxe.io.Path_unescape_326__Fun.__hx_current) : (global::haxe.io.Path_unescape_326__Fun.__hx_current = ((global::haxe.io.Path_unescape_326__Fun)(new global::haxe.io.Path_unescape_326__Fun())))))); }