Exemplo n.º 1
0
 public static string withoutExtension(string path)
 {
                 #line 124 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
     global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
     s.ext = null;
                 #line 126 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
     return(s.toString());
 }
Exemplo n.º 2
0
 public static string withoutDirectory(string path)
 {
                 #line 135 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
     global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
     s.dir = null;
                 #line 137 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
     return(s.toString());
 }
Exemplo n.º 3
0
 public static string withExtension(string path, string ext)
 {
                 #line 176 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
     global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
     s.ext = ext;
                 #line 178 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
     return(s.toString());
 }
Exemplo n.º 4
0
 public static string withoutDirectory(string path)
 {
                 #line 135 "/opt/haxe/std/haxe/io/Path.hx"
     global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
     s.dir = null;
                 #line 137 "/opt/haxe/std/haxe/io/Path.hx"
     return(s.toString());
 }
Exemplo n.º 5
0
 public static string withoutExtension(string path)
 {
                 #line 124 "/opt/haxe/std/haxe/io/Path.hx"
     global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
     s.ext = null;
                 #line 126 "/opt/haxe/std/haxe/io/Path.hx"
     return(s.toString());
 }
Exemplo n.º 6
0
 public static string withExtension(string path, string ext)
 {
                 #line 176 "/opt/haxe/std/haxe/io/Path.hx"
     global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
     s.ext = ext;
                 #line 178 "/opt/haxe/std/haxe/io/Path.hx"
     return(s.toString());
 }
Exemplo n.º 7
0
        protected static void __hx_ctor_haxe_io_Path(global::haxe.io.Path __hx_this, string path)
        {
            unchecked {
                                #line 77 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                switch (path)
                {
                case ".":
                case "..":
                {
                                                #line 79 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.dir  = path;
                    __hx_this.file = "";
                                                #line 81 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    return;
                }
                }

                                #line 83 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                int c1 = global::haxe.lang.StringExt.lastIndexOf(path, "/", null);
                int c2 = global::haxe.lang.StringExt.lastIndexOf(path, "\\", null);
                                #line 85 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                if ((c1 < c2))
                {
                                        #line 86 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.dir = global::haxe.lang.StringExt.substr(path, 0, c2);
                    path          = global::haxe.lang.StringExt.substr(path, (c2 + 1), null);
                                        #line 88 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.backslash = true;
                }
                else if ((c2 < c1))
                {
                                        #line 90 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.dir = global::haxe.lang.StringExt.substr(path, 0, c1);
                    path          = global::haxe.lang.StringExt.substr(path, (c1 + 1), null);
                }
                else
                {
                                        #line 93 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.dir = null;
                }

                                #line 94 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                int cp = global::haxe.lang.StringExt.lastIndexOf(path, ".", null);
                if ((cp != -1))
                {
                                        #line 96 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.ext  = global::haxe.lang.StringExt.substr(path, (cp + 1), null);
                    __hx_this.file = global::haxe.lang.StringExt.substr(path, 0, cp);
                }
                else
                {
                                        #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    __hx_this.ext  = null;
                    __hx_this.file = path;
                }
            }
                        #line default
        }
Exemplo n.º 8
0
        protected static void __hx_ctor_haxe_io_Path(global::haxe.io.Path __hx_this, string path)
        {
            unchecked {
                                #line 77 "/opt/haxe/std/haxe/io/Path.hx"
                switch (path)
                {
                case ".":
                case "..":
                {
                                                #line 79 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.dir  = path;
                    __hx_this.file = "";
                                                #line 81 "/opt/haxe/std/haxe/io/Path.hx"
                    return;
                }
                }

                                #line 83 "/opt/haxe/std/haxe/io/Path.hx"
                int c1 = global::haxe.lang.StringExt.lastIndexOf(path, "/", default(global::haxe.lang.Null <int>));
                int c2 = global::haxe.lang.StringExt.lastIndexOf(path, "\\", default(global::haxe.lang.Null <int>));
                                #line 85 "/opt/haxe/std/haxe/io/Path.hx"
                if ((c1 < c2))
                {
                                        #line 86 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.dir = global::haxe.lang.StringExt.substr(path, 0, new global::haxe.lang.Null <int>(c2, true));
                    path          = global::haxe.lang.StringExt.substr(path, (c2 + 1), default(global::haxe.lang.Null <int>));
                                        #line 88 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.backslash = true;
                }
                else if ((c2 < c1))
                {
                                        #line 90 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.dir = global::haxe.lang.StringExt.substr(path, 0, new global::haxe.lang.Null <int>(c1, true));
                    path          = global::haxe.lang.StringExt.substr(path, (c1 + 1), default(global::haxe.lang.Null <int>));
                }
                else
                {
                                        #line 93 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.dir = null;
                }

                                #line 94 "/opt/haxe/std/haxe/io/Path.hx"
                int cp = global::haxe.lang.StringExt.lastIndexOf(path, ".", default(global::haxe.lang.Null <int>));
                if ((cp != -1))
                {
                                        #line 96 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.ext  = global::haxe.lang.StringExt.substr(path, (cp + 1), default(global::haxe.lang.Null <int>));
                    __hx_this.file = global::haxe.lang.StringExt.substr(path, 0, new global::haxe.lang.Null <int>(cp, true));
                }
                else
                {
                                        #line 99 "/opt/haxe/std/haxe/io/Path.hx"
                    __hx_this.ext  = null;
                    __hx_this.file = path;
                }
            }
                        #line default
        }
Exemplo n.º 9
0
        public static string directory(string path)
        {
                        #line 148 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
            global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
            if ((s.dir == null))
            {
                                #line 150 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                return("");
            }

                        #line 151 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
            return(s.dir);
        }
Exemplo n.º 10
0
        public static string extension(string path)
        {
                        #line 162 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
            global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
            if ((s.ext == null))
            {
                                #line 164 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                return("");
            }

                        #line 165 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
            return(s.ext);
        }
Exemplo n.º 11
0
        public static string directory(string path)
        {
                        #line 148 "/opt/haxe/std/haxe/io/Path.hx"
            global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
            if ((s.dir == null))
            {
                                #line 150 "/opt/haxe/std/haxe/io/Path.hx"
                return("");
            }

                        #line 151 "/opt/haxe/std/haxe/io/Path.hx"
            return(s.dir);
        }
Exemplo n.º 12
0
        public static string extension(string path)
        {
                        #line 162 "/opt/haxe/std/haxe/io/Path.hx"
            global::haxe.io.Path s = new global::haxe.io.Path(((string)(path)));
            if ((s.ext == null))
            {
                                #line 164 "/opt/haxe/std/haxe/io/Path.hx"
                return("");
            }

                        #line 165 "/opt/haxe/std/haxe/io/Path.hx"
            return(s.ext);
        }