Beispiel #1
0
 public static string escape(string path, global::haxe.lang.Null <bool> allowSlashes)
 {
                 #line 329 "/opt/haxe/std/haxe/io/Path.hx"
     bool         allowSlashes1 = ((!(allowSlashes.hasValue)) ? (false) : ((allowSlashes).@value));
     global::EReg regex         = ((allowSlashes1) ? (new global::EReg("[^A-Za-z0-9_/\\\\\\.]", "g")) : (new global::EReg("[^A-Za-z0-9_\\.]", "g")));
                 #line 331 "/opt/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()))))));
 }
Beispiel #2
0
 public static string unescape(string path)
 {
                 #line 325 "/opt/haxe/std/haxe/io/Path.hx"
     global::EReg regex = new global::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()))))));
 }