Ejemplo n.º 1
0
        public static string generate()
        {
            unchecked
            {
                global::haxe.root.StringBuf result = new global::haxe.root.StringBuf();
                {
                    int _g = 0;
                    while ((_g < 32))
                    {
                        int j = _g++;
                        if (((((j == 8) || (j == 12)) || (j == 16)) || (j == 20)))
                        {
                            result.b.Append(((object)("-")));
                        }

                        {
                            int __temp_stmt621 = default(int);
                            {
                                double v = (global::Math.rand.NextDouble() * 16);
                                {
                                    double x1 = global::System.Math.Floor(((double)(v)));
                                    __temp_stmt621 = ((int)(x1));
                                }
                            }

                            object x = global::haxe.root.StringTools.hex(__temp_stmt621, default(global::haxe.lang.Null <int>));
                            result.b.Append(((object)(global::Std.@string(x))));
                        }
                    }
                }

                return(result.toString().ToUpper());
            }
        }
Ejemplo n.º 2
0
        public string @join(string sep)
        {
            unchecked
            {
                global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
                int  i      = -1;
                bool first  = true;
                int  length = this.length;
                while ((++i < length))
                {
                    if (first)
                    {
                        first = false;
                    }
                    else
                    {
                        buf.b.Append(((object)(global::Std.@string(sep))));
                    }

                    buf.b.Append(((object)(global::Std.@string(this.__a[i]))));
                }

                return(buf.toString());
            }
        }
Ejemplo n.º 3
0
        public override void doLayout()
        {
            unchecked
            {
                base.doLayout();
                if ((this.index == 0))
                {
                    this.stave.topSpacing    = 5;
                    this.stave.bottomSpacing = 5;
                }

                {
                    double x = this.stave.staveGroup.layout.renderer.renderingResources.wordsFont.getSize();
                    this.height = ((int)(x));
                }

                global::haxe.root.StringBuf endingsString = new global::haxe.root.StringBuf();
                {
                    int _g = 0;
                    global::haxe.root.Array <int> _g1 = this._endings;
                    while ((_g < _g1.length))
                    {
                        int e = _g1[_g];
                        ++_g;
                        endingsString.b.Append(((object)(global::Std.@string((e + 1)))));
                        endingsString.b.Append(((object)(". ")));
                    }
                }

                this._endingsString = endingsString.toString();
            }
        }
Ejemplo n.º 4
0
        public string toString()
        {
            unchecked
            {
                global::haxe.root.StringBuf ret = new global::haxe.root.StringBuf();
                T[] a = this.__a;
                ret.b.Append(((object)("[")));
                bool first = true;
                {
                    int _g1 = 0;
                    int _g  = this.length;
                    while ((_g1 < _g))
                    {
                        int i = _g1++;
                        if (first)
                        {
                            first = false;
                        }
                        else
                        {
                            ret.b.Append(((object)(",")));
                        }

                        ret.b.Append(((object)(global::Std.@string(a[i]))));
                    }
                }

                ret.b.Append(((object)("]")));
                return(ret.toString());
            }
        }
Ejemplo n.º 5
0
 public static void __hx_ctor__StringBuf(global::haxe.root.StringBuf __temp_me8)
 {
     unchecked
     {
         __temp_me8.b = new global::System.Text.StringBuilder();
     }
 }
Ejemplo n.º 6
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                switch (hash)
                {
                case 1225098545:
                {
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    this.nind = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    return(@value);
                }


                case 784433846:
                {
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    this.pretty = global::haxe.lang.Runtime.toBool(@value);
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    return(@value);
                }


                case 334695532:
                {
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    this.indent = global::haxe.lang.Runtime.toString(@value);
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    return(@value);
                }


                case 404153790:
                {
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    this.replacer = ((global::haxe.lang.Function)(@value));
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    return(@value);
                }


                case 4899635:
                {
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    this.buf = ((global::haxe.root.StringBuf)(@value));
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    return(@value);
                }


                default:
                {
                                                #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\format\\JsonPrinter.hx"
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
                        #line default
        }
Ejemplo n.º 7
0
 public virtual void clear()
 {
     unchecked
     {
         this._canvas.Children.Clear();
         this._currentPath        = new global::haxe.root.StringBuf();
         this._currentPathIsEmpty = true;
     }
 }
Ejemplo n.º 8
0
 public virtual void setCanvas(global::System.Windows.Controls.Canvas canvas)
 {
     unchecked
     {
         this._canvas             = canvas;
         this._currentPath        = new global::haxe.root.StringBuf();
         this._currentPathIsEmpty = true;
         this._lineWidth          = ((double)(1));
         this._font         = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString("sans-serif"), ((double)(10)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))));
         this._textAlign    = global::alphatab.platform.model.TextAlign.Left;
         this._textBaseline = global::alphatab.model.TextBaseline.Default;
         this.setColor(new global::alphatab.platform.model.Color(((int)(255)), ((int)(255)), ((int)(255)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))));
     }
 }
Ejemplo n.º 9
0
		public virtual   void setCanvas(global::System.Windows.Controls.Canvas canvas)
		{
			unchecked 
			{
				this._canvas = canvas;
				this._currentPath = new global::haxe.root.StringBuf();
				this._currentPathIsEmpty = true;
				this._lineWidth = ((double) (1) );
				this._font = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString("sans-serif"), ((double) (10) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
				this._textAlign = global::alphatab.platform.model.TextAlign.Left;
				this._textBaseline = global::alphatab.model.TextBaseline.Default;
				this.setColor(new global::alphatab.platform.model.Color(((int) (255) ), ((int) (255) ), ((int) (255) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )));
			}
		}
Ejemplo n.º 10
0
        public virtual string toString()
        {
            unchecked
            {
                global::haxe.lang.Function ts = ((global::haxe.lang.Function)(global::haxe.lang.Runtime.getField(this, "toString", 946786476, false)));
                if ((ts != default(global::haxe.lang.Function)))
                {
                    return(global::haxe.lang.Runtime.toString(ts.__hx_invoke0_o()));
                }

                global::haxe.root.StringBuf ret = new global::haxe.root.StringBuf();
                ret.b.Append(((object)("{")));
                bool first = true;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = global::haxe.root.Reflect.fields(this);
                    while ((_g < _g1.length))
                    {
                        string f = global::haxe.lang.Runtime.toString(_g1[_g]);
                        ++_g;
                        if (first)
                        {
                            first = false;
                        }
                        else
                        {
                            ret.b.Append(((object)(",")));
                        }

                        ret.b.Append(((object)(" ")));
                        ret.b.Append(((object)(global::Std.@string(f))));
                        ret.b.Append(((object)(" : ")));
                        {
                            object x = global::haxe.root.Reflect.field(this, f);
                            ret.b.Append(((object)(global::Std.@string(x))));
                        }
                    }
                }

                if (!(first))
                {
                    ret.b.Append(((object)(" ")));
                }

                ret.b.Append(((object)("}")));
                return(ret.toString());
            }
        }
Ejemplo n.º 11
0
        public virtual void fill()
        {
            unchecked
            {
                if (!(this._currentPathIsEmpty))
                {
                    global::System.Windows.Shapes.Path wpfPath = new global::System.Windows.Shapes.Path();
                    wpfPath.Fill = this._brush;
                    wpfPath.Data = global::System.Windows.Media.Geometry.Parse(this._currentPath.toString());
                    this._canvas.Children.Add(wpfPath);
                }

                this._currentPath        = new global::haxe.root.StringBuf();
                this._currentPathIsEmpty = true;
            }
        }
Ejemplo n.º 12
0
        public virtual string toHex()
        {
            unchecked {
                                #line 525 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                global::haxe.root.StringBuf s     = new global::haxe.root.StringBuf();
                global::haxe.root.Array     chars = new global::haxe.root.Array(new object[] {});
                                #line 527 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                string str = "0123456789abcdef";
                {
                                        #line 528 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                    int _g = 0;
                                        #line 528 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                    int _g1 = str.Length;
                                        #line 528 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                    while ((_g < _g1))
                    {
                                                #line 528 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                        int i = _g++;
                        chars.push(global::haxe.lang.StringExt.charCodeAt(str, i));
                    }
                }

                                #line 530 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                {
                                        #line 530 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                    int _g2 = 0;
                                        #line 530 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                    int _g3 = this.length;
                                        #line 530 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                    while ((_g2 < _g3))
                    {
                                                #line 530 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                        int i1 = _g2++;
                        int c  = ((int)(((byte)(this.b[i1]))));
                                                #line 532 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                        s.addChar(((int)(global::haxe.lang.Runtime.toInt(chars.__get((c >> 4))))));
                        s.addChar(((int)(global::haxe.lang.Runtime.toInt(chars.__get((c & 15))))));
                    }
                }

                                #line 535 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Bytes.hx"
                return(s.b.ToString());
            }
                        #line default
        }
Ejemplo n.º 13
0
        public virtual void stroke()
        {
            unchecked
            {
                string path = this._currentPath.toString();
                if (!(this._currentPathIsEmpty))
                {
                    global::System.Windows.Shapes.Path wpfPath = new global::System.Windows.Shapes.Path();
                    wpfPath.Stroke          = this._brush;
                    wpfPath.StrokeThickness = this._lineWidth;
                    wpfPath.Data            = global::System.Windows.Media.Geometry.Parse(this._currentPath.toString());
                    this._canvas.Children.Add(wpfPath);
                }

                this._currentPath        = new global::haxe.root.StringBuf();
                this._currentPathIsEmpty = true;
            }
        }
Ejemplo n.º 14
0
        public virtual string toString()
        {
            unchecked
            {
                if (((this.@params == default(global::haxe.root.Array <object>)) || ([email protected] == 0)))
                {
                    return(this.getTag());
                }

                global::haxe.root.StringBuf ret = new global::haxe.root.StringBuf();
                {
                    object x = this.getTag();
                    ret.b.Append(((object)(global::Std.@string(x))));
                }

                ret.b.Append(((object)("(")));
                bool first = true;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this.@params;
                    while ((_g < _g1.length))
                    {
                        object p = _g1[_g];
                        ++_g;
                        if (first)
                        {
                            first = false;
                        }
                        else
                        {
                            ret.b.Append(((object)(",")));
                        }

                        ret.b.Append(((object)(global::Std.@string(p))));
                    }
                }

                ret.b.Append(((object)(")")));
                return(ret.toString());
            }
        }
Ejemplo n.º 15
0
        public virtual string toCssString()
        {
            unchecked
            {
                global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
                if ((((this.getStyle() & 1)) != 0))
                {
                    buf.b.Append(((object)("bold ")));
                }

                if ((((this.getStyle() & 2)) != 0))
                {
                    buf.b.Append(((object)("italic ")));
                }

                buf.b.Append(((object)(global::Std.@string(this._size))));
                buf.b.Append(((object)("px")));
                buf.b.Append(((object)("\'")));
                buf.b.Append(((object)(global::Std.@string(this._family))));
                buf.b.Append(((object)("\'")));
                return(buf.toString());
            }
        }
Ejemplo n.º 16
0
        public virtual string getString(global::haxe.io.Bytes data, int offset, int length)
        {
            unchecked
            {
                global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
                {
                    int _g = 0;
                    while ((_g < length))
                    {
                        int i    = _g++;
                        int code = (((int)(data.b[(offset + i)])) & 255);
                        if ((code == 0))
                        {
                            break;
                        }

                        buf.b.Append(((char)(code)));
                    }
                }

                return(buf.toString());
            }
        }
Ejemplo n.º 17
0
        public virtual void nextToken()
        {
            unchecked
            {
                global::haxe.root.StringBuf token = new global::haxe.root.StringBuf();
                string c        = default(string);
                bool   skipChar = default(bool);
                do
                {
                    c        = this.nextChar();
                    skipChar = (global::alphatab.rendering.utils.SvgPathParser.isWhiteSpace(c) || string.Equals(c, ","));
                }while ((!(this.eof()) && skipChar));
                if ((!(this.eof()) || !(skipChar)))
                {
                    token.b.Append(((object)(global::Std.@string(c))));
                    if (global::alphatab.rendering.utils.SvgPathParser.isNumber(c, default(global::haxe.lang.Null <bool>)))
                    {
                        c = this.peekChar();
                        while ((!(this.eof()) && ((global::alphatab.rendering.utils.SvgPathParser.isNumber(c, new global::haxe.lang.Null <bool>(false, true)) || string.Equals(c, ".")))))
                        {
                            {
                                object x = this.nextChar();
                                token.b.Append(((object)(global::Std.@string(x))));
                            }

                            c = this.peekChar();
                        }
                    }
                    else
                    {
                        this.lastCommand = token.toString();
                    }
                }

                this.currentToken = token.toString();
            }
        }
Ejemplo n.º 18
0
		public static   string generate()
		{
			unchecked 
			{
				global::haxe.root.StringBuf result = new global::haxe.root.StringBuf();
				{
					int _g = 0;
					while (( _g < 32 ))
					{
						int j = _g++;
						if (( ( ( ( j == 8 ) || ( j == 12 ) ) || ( j == 16 ) ) || ( j == 20 ) )) 
						{
							result.b.Append(((object) ("-") ));
						}
						
						{
							int __temp_stmt621 = default(int);
							{
								double v = ( global::Math.rand.NextDouble() * 16 );
								{
									double x1 = global::System.Math.Floor(((double) (v) ));
									__temp_stmt621 = ((int) (x1) );
								}
								
							}
							
							object x = global::haxe.root.StringTools.hex(__temp_stmt621, default(global::haxe.lang.Null<int>));
							result.b.Append(((object) (global::Std.@string(x)) ));
						}
						
					}
					
				}
				
				return result.toString().ToUpper();
			}
		}
Ejemplo n.º 19
0
		public virtual   string toSvg(bool includeWrapper, string className)
		{
			unchecked 
			{
				global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
				if (includeWrapper) 
				{
					buf.b.Append(((object) ("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"") ));
					buf.b.Append(((object) (global::Std.@string(this._width)) ));
					buf.b.Append(((object) ("px\" height=\"") ));
					buf.b.Append(((object) (global::Std.@string(this._height)) ));
					buf.b.Append(((object) ("px\"") ));
					if ( ! (string.Equals(className, default(string))) ) 
					{
						buf.b.Append(((object) (" class=\"") ));
						buf.b.Append(((object) (global::Std.@string(className)) ));
						buf.b.Append(((object) ("\"") ));
					}
					
					buf.b.Append(((object) (">\n") ));
				}
				
				buf.b.Append(((object) (global::Std.@string(this._buffer)) ));
				if (includeWrapper) 
				{
					buf.b.Append(((object) ("</svg>") ));
				}
				
				return buf.toString();
			}
		}
Ejemplo n.º 20
0
        public virtual string parseString()
        {
            unchecked {
                int start = this.pos;
                global::haxe.root.StringBuf buf = null;
                while (true)
                {
                    string s     = this.str;
                    int    index = this.pos++;
                    int    c     = ((((bool)((((uint)(index)) < s.Length)))) ? (((int)(s[index]))) : (-1));
                    if ((c == 34))
                    {
                        break;
                    }

                    if ((c == 92))
                    {
                        if ((buf == null))
                        {
                            buf = new global::haxe.root.StringBuf();
                        }

                        {
                            string s1 = this.str;
                            global::haxe.lang.Null <int> len = new global::haxe.lang.Null <int>(((this.pos - start) - 1), true);
                            buf.b.Append(((string)(s1)), ((int)(start)), ((int)(((!(len.hasValue)) ? ((s1.Length - start)) : ((len).@value)))));
                        }

                        string s2     = this.str;
                        int    index1 = this.pos++;
                        if (((bool)((((uint)(index1)) < s2.Length))))
                        {
                            c = ((int)(s2[index1]));
                        }
                        else
                        {
                            c = -1;
                        }

                        switch (c)
                        {
                        case 34:
                        case 47:
                        case 92:
                        {
                            buf.b.Append(((char)(c)));
                            break;
                        }


                        case 98:
                        {
                            buf.b.Append(((char)(8)));
                            break;
                        }


                        case 102:
                        {
                            buf.b.Append(((char)(12)));
                            break;
                        }


                        case 110:
                        {
                            buf.b.Append(((char)(10)));
                            break;
                        }


                        case 114:
                        {
                            buf.b.Append(((char)(13)));
                            break;
                        }


                        case 116:
                        {
                            buf.b.Append(((char)(9)));
                            break;
                        }


                        case 117:
                        {
                            global::haxe.lang.Null <int> uc = global::haxe.root.Std.parseInt(global::haxe.lang.Runtime.concat("0x", global::haxe.lang.StringExt.substr(this.str, this.pos, new global::haxe.lang.Null <int>(4, true))));
                            this.pos += 4;
                            buf.b.Append(((char)((uc).@value)));
                            break;
                        }


                        default:
                        {
                            throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Invalid escape sequence \\", new string(((char)(c)), 1)), " at position "), global::haxe.lang.Runtime.toString(((this.pos - 1)))));
                        }
                        }

                        start = this.pos;
                    }
                    else if ((c == -1))
                    {
                        throw global::haxe.lang.HaxeException.wrap("Unclosed string");
                    }
                }

                if ((buf == null))
                {
                    return(global::haxe.lang.StringExt.substr(this.str, start, new global::haxe.lang.Null <int>(((this.pos - start) - 1), true)));
                }
                else
                {
                    {
                        string s3 = this.str;
                        global::haxe.lang.Null <int> len1 = new global::haxe.lang.Null <int>(((this.pos - start) - 1), true);
                        buf.b.Append(((string)(s3)), ((int)(start)), ((int)(((!(len1.hasValue)) ? ((s3.Length - start)) : ((len1).@value)))));
                    }

                    return(buf.b.ToString());
                }
            }
        }
Ejemplo n.º 21
0
        public static string buildArgumentsString(global::haxe.root.Array args)
        {
            unchecked {
                                #line 80 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                if ((global::haxe.root.Sys.systemName() == "Windows"))
                {
                                        #line 82 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                    global::haxe.root.Array _g = new global::haxe.root.Array(new object[] {});
                    {
                                                #line 83 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                        int _g1 = 0;
                                                #line 83 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                        while ((_g1 < args.length))
                        {
                                                        #line 83 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                            string a = global::haxe.lang.Runtime.toString(args.__get(_g1));
                                                        #line 83 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                            ++_g1;
                            _g.push(global::haxe.SysTools.quoteWinArg(a, false));
                        }
                    }

                                        #line 82 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                    return(_g.@join(" "));
                }
                else
                {
                                        #line 89 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                    global::haxe.root.Array _g2 = new global::haxe.root.Array(new object[] {});
                    {
                                                #line 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                        int _g11 = 0;
                                                #line 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                        while ((_g11 < args.length))
                        {
                                                        #line 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                            string arg = global::haxe.lang.Runtime.toString(args.__get(_g11));
                                                        #line 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                            ++_g11;
                            global::haxe.root.StringBuf b = new global::haxe.root.StringBuf();
                                                        #line 92 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                            b.b.Append(((string)("\"")));
                            {
                                                                #line 93 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                int _g12 = 0;
                                                                #line 93 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                int _g21 = arg.Length;
                                                                #line 93 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                while ((_g12 < _g21))
                                {
                                                                        #line 93 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                    int    i = _g12++;
                                    object c = global::haxe.lang.StringExt.charCodeAt(arg, i);
                                                                        #line 95 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                    if ((c == default(object)))
                                    {
                                    }
                                    else
                                    {
                                                                                #line 95 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                        switch (((int)(global::haxe.lang.Runtime.toInt((c)))))
                                        {
                                        case 34:
                                        case 92:
                                        {
                                                                                                #line 97 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                            b.addChar(92);
                                                                                                #line 97 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                            break;
                                        }


                                        default:
                                        {
                                                                                                #line 98 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                            break;
                                        }
                                        }
                                    }

                                                                        #line 100 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                                    b.addChar(((int)(global::haxe.lang.Runtime.toInt(c))));
                                }
                            }

                                                        #line 102 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                            b.b.Append(((string)("\"")));
                            _g2.push(b.b.ToString());
                        }
                    }

                                        #line 89 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\io\\Process.hx"
                    return(_g2.@join(" "));
                }
            }
                        #line default
        }
Ejemplo n.º 22
0
 protected static void __hx_ctor__StringBuf(global::haxe.root.StringBuf __hx_this)
 {
                 #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\StringBuf.hx"
     __hx_this.b = new global::System.Text.StringBuilder();
 }
Ejemplo n.º 23
0
		public virtual   string toString()
		{
			unchecked 
			{
				global::haxe.lang.Function ts = ((global::haxe.lang.Function) (global::haxe.lang.Runtime.getField(this, "toString", 946786476, false)) );
				if (( ts != default(global::haxe.lang.Function) )) 
				{
					return global::haxe.lang.Runtime.toString(ts.__hx_invoke0_o());
				}
				
				global::haxe.root.StringBuf ret = new global::haxe.root.StringBuf();
				ret.b.Append(((object) ("{") ));
				bool first = true;
				{
					int _g = 0;
					global::haxe.root.Array<object> _g1 = global::haxe.root.Reflect.fields(this);
					while (( _g < _g1.length ))
					{
						string f = global::haxe.lang.Runtime.toString(_g1[_g]);
						 ++ _g;
						if (first) 
						{
							first = false;
						}
						 else 
						{
							ret.b.Append(((object) (",") ));
						}
						
						ret.b.Append(((object) (" ") ));
						ret.b.Append(((object) (global::Std.@string(f)) ));
						ret.b.Append(((object) (" : ") ));
						{
							object x = global::haxe.root.Reflect.field(this, f);
							ret.b.Append(((object) (global::Std.@string(x)) ));
						}
						
					}
					
				}
				
				if ( ! (first) ) 
				{
					ret.b.Append(((object) (" ") ));
				}
				
				ret.b.Append(((object) ("}") ));
				return ret.toString();
			}
		}
Ejemplo n.º 24
0
        public static int doParse(string str, global::haxe.lang.Null <int> p, global::haxe.root.Xml parent)
        {
            unchecked
            {
                int __temp_p294           = ((global::haxe.lang.Runtime.eq((p).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (p.@value));
                global::haxe.root.Xml xml = default(global::haxe.root.Xml);
                int    state     = 1;
                int    next      = 1;
                string aname     = default(string);
                int    start     = 0;
                int    nsubs     = 0;
                int    nbrackets = 0;
                int    c         = default(int);
                if ((((uint)(__temp_p294)) < str.Length))
                {
                    c = ((int)(global::haxe.lang.Runtime.toInt(str[__temp_p294])));
                }
                else
                {
                    c = -1;
                }

                global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
                while (!(((c == -1))))
                {
                    switch (state)
                    {
                    case 0:
                    {
                        switch (c)
                        {
                        case 10:
                        case 13:
                        case 9:
                        case 32:
                        {
                            {
                            }

                            break;
                        }


                        default:
                        {
                            state = next;
                            continue;
                        }
                        }

                        break;
                    }


                    case 1:
                    {
                        switch (c)
                        {
                        case 60:
                        {
                            state = 0;
                            next  = 2;
                            break;
                        }


                        default:
                        {
                            start = __temp_p294;
                            state = 13;
                            continue;
                        }
                        }

                        break;
                    }


                    case 13:
                    {
                        if ((c == 60))
                        {
                            global::haxe.root.Xml child = global::haxe.root.Xml.createPCData(global::haxe.lang.Runtime.concat(buf.toString(), global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true))));
                            buf = new global::haxe.root.StringBuf();
                            parent.addChild(child);
                            nsubs++;
                            state = 0;
                            next  = 2;
                        }
                        else
                        {
                            if ((c == 38))
                            {
                                buf.addSub(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true));
                                state = 18;
                                next  = 13;
                                start = (__temp_p294 + 1);
                            }
                        }

                        break;
                    }


                    case 17:
                    {
                        bool __temp_boolv627 = (c == 93);
                        bool __temp_boolv626 = false;
                        bool __temp_boolv625 = false;
                        if (__temp_boolv627)
                        {
                            int __temp_stmt628 = default(int);
                            {
                                int index = (__temp_p294 + 1);
                                __temp_stmt628 = (((((uint)(index)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index])))) : (-1));
                            }

                            __temp_boolv626 = (__temp_stmt628 == 93);
                            if (__temp_boolv626)
                            {
                                int __temp_stmt629 = default(int);
                                {
                                    int index1 = (__temp_p294 + 2);
                                    __temp_stmt629 = (((((uint)(index1)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index1])))) : (-1));
                                }

                                __temp_boolv625 = (__temp_stmt629 == 62);
                            }
                        }

                        bool __temp_stmt624 = ((__temp_boolv627 && __temp_boolv626) && __temp_boolv625);
                        if (__temp_stmt624)
                        {
                            global::haxe.root.Xml child1 = global::haxe.root.Xml.createCData(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true)));
                            parent.addChild(child1);
                            nsubs++;
                            __temp_p294 += 2;
                            state        = 1;
                        }

                        break;
                    }


                    case 2:
                    {
                        switch (c)
                        {
                        case 33:
                        {
                            int __temp_stmt630 = default(int);
                            {
                                int index2 = (__temp_p294 + 1);
                                __temp_stmt630 = (((((uint)(index2)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index2])))) : (-1));
                            }

                            if ((__temp_stmt630 == 91))
                            {
                                __temp_p294 += 2;
                                if (!(string.Equals(global::haxe.lang.StringExt.substr(str, __temp_p294, new global::haxe.lang.Null <int>(6, true)).ToUpper(), "CDATA[")))
                                {
                                    throw global::haxe.lang.HaxeException.wrap("Expected <![CDATA[");
                                }

                                __temp_p294 += 5;
                                state        = 17;
                                start        = (__temp_p294 + 1);
                            }
                            else
                            {
                                int __temp_stmt633 = default(int);
                                {
                                    int index3 = (__temp_p294 + 1);
                                    __temp_stmt633 = (((((uint)(index3)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index3])))) : (-1));
                                }

                                bool __temp_stmt632  = (__temp_stmt633 == 68);
                                bool __temp_boolv634 = false;
                                if (!(__temp_stmt632))
                                {
                                    int __temp_stmt635 = default(int);
                                    {
                                        int index4 = (__temp_p294 + 1);
                                        __temp_stmt635 = (((((uint)(index4)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index4])))) : (-1));
                                    }

                                    __temp_boolv634 = (__temp_stmt635 == 100);
                                }

                                bool __temp_stmt631 = (__temp_stmt632 || __temp_boolv634);
                                if (__temp_stmt631)
                                {
                                    if (!(string.Equals(global::haxe.lang.StringExt.substr(str, (__temp_p294 + 2), new global::haxe.lang.Null <int>(6, true)).ToUpper(), "OCTYPE")))
                                    {
                                        throw global::haxe.lang.HaxeException.wrap("Expected <!DOCTYPE");
                                    }

                                    __temp_p294 += 8;
                                    state        = 16;
                                    start        = (__temp_p294 + 1);
                                }
                                else
                                {
                                    int __temp_stmt638 = default(int);
                                    {
                                        int index5 = (__temp_p294 + 1);
                                        __temp_stmt638 = (((((uint)(index5)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index5])))) : (-1));
                                    }

                                    bool __temp_stmt637  = (__temp_stmt638 != 45);
                                    bool __temp_boolv639 = false;
                                    if (!(__temp_stmt637))
                                    {
                                        int __temp_stmt640 = default(int);
                                        {
                                            int index6 = (__temp_p294 + 2);
                                            __temp_stmt640 = (((((uint)(index6)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index6])))) : (-1));
                                        }

                                        __temp_boolv639 = (__temp_stmt640 != 45);
                                    }

                                    bool __temp_stmt636 = (__temp_stmt637 || __temp_boolv639);
                                    if (__temp_stmt636)
                                    {
                                        throw global::haxe.lang.HaxeException.wrap("Expected <!--");
                                    }
                                    else
                                    {
                                        __temp_p294 += 2;
                                        state        = 15;
                                        start        = (__temp_p294 + 1);
                                    }
                                }
                            }

                            break;
                        }


                        case 63:
                        {
                            state = 14;
                            start = __temp_p294;
                            break;
                        }


                        case 47:
                        {
                            if ((parent == default(global::haxe.root.Xml)))
                            {
                                throw global::haxe.lang.HaxeException.wrap("Expected node name");
                            }

                            start = (__temp_p294 + 1);
                            state = 0;
                            next  = 10;
                            break;
                        }


                        default:
                        {
                            state = 3;
                            start = __temp_p294;
                            continue;
                        }
                        }

                        break;
                    }


                    case 3:
                    {
                        if (!((((((((((c >= 97) && (c <= 122)) || ((c >= 65) && (c <= 90))) || ((c >= 48) && (c <= 57))) || (c == 58)) || (c == 46)) || (c == 95)) || (c == 45)))))
                        {
                            if ((__temp_p294 == start))
                            {
                                throw global::haxe.lang.HaxeException.wrap("Expected node name");
                            }

                            xml = global::haxe.root.Xml.createElement(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true)));
                            parent.addChild(xml);
                            state = 0;
                            next  = 4;
                            continue;
                        }

                        break;
                    }


                    case 4:
                    {
                        switch (c)
                        {
                        case 47:
                        {
                            state = 11;
                            nsubs++;
                            break;
                        }


                        case 62:
                        {
                            state = 9;
                            nsubs++;
                            break;
                        }


                        default:
                        {
                            state = 5;
                            start = __temp_p294;
                            continue;
                        }
                        }

                        break;
                    }


                    case 5:
                    {
                        if (!((((((((((c >= 97) && (c <= 122)) || ((c >= 65) && (c <= 90))) || ((c >= 48) && (c <= 57))) || (c == 58)) || (c == 46)) || (c == 95)) || (c == 45)))))
                        {
                            string tmp = default(string);
                            if ((start == __temp_p294))
                            {
                                throw global::haxe.lang.HaxeException.wrap("Expected attribute name");
                            }

                            tmp   = global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true));
                            aname = tmp;
                            if (xml.exists(aname))
                            {
                                throw global::haxe.lang.HaxeException.wrap("Duplicate attribute");
                            }

                            state = 0;
                            next  = 6;
                            continue;
                        }

                        break;
                    }


                    case 6:
                    {
                        switch (c)
                        {
                        case 61:
                        {
                            state = 0;
                            next  = 7;
                            break;
                        }


                        default:
                        {
                            throw global::haxe.lang.HaxeException.wrap("Expected =");
                        }
                        }

                        break;
                    }


                    case 7:
                    {
                        switch (c)
                        {
                        case 34:
                        case 39:
                        {
                            state = 8;
                            start = __temp_p294;
                            break;
                        }


                        default:
                        {
                            throw global::haxe.lang.HaxeException.wrap("Expected \"");
                        }
                        }

                        break;
                    }


                    case 8:
                    {
                        if ((c == ((((((uint)(start)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[start])))) : (-1)))))
                        {
                            string val = global::haxe.lang.StringExt.substr(str, (start + 1), new global::haxe.lang.Null <int>(((__temp_p294 - start) - 1), true));
                            xml.@set(aname, val);
                            state = 0;
                            next  = 4;
                        }

                        break;
                    }


                    case 9:
                    {
                        __temp_p294 = global::haxe.xml.Parser.doParse(str, new global::haxe.lang.Null <int>(__temp_p294, true), xml);
                        start       = __temp_p294;
                        state       = 1;
                        break;
                    }


                    case 11:
                    {
                        switch (c)
                        {
                        case 62:
                        {
                            state = 1;
                            break;
                        }


                        default:
                        {
                            throw global::haxe.lang.HaxeException.wrap("Expected >");
                        }
                        }

                        break;
                    }


                    case 12:
                    {
                        switch (c)
                        {
                        case 62:
                        {
                            if ((nsubs == 0))
                            {
                                parent.addChild(global::haxe.root.Xml.createPCData(""));
                            }

                            return(__temp_p294);
                        }


                        default:
                        {
                            throw global::haxe.lang.HaxeException.wrap("Expected >");
                        }
                        }
                    }


                    case 10:
                    {
                        if (!((((((((((c >= 97) && (c <= 122)) || ((c >= 65) && (c <= 90))) || ((c >= 48) && (c <= 57))) || (c == 58)) || (c == 46)) || (c == 95)) || (c == 45)))))
                        {
                            if ((start == __temp_p294))
                            {
                                throw global::haxe.lang.HaxeException.wrap("Expected node name");
                            }

                            string v = global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true));
                            if (!(string.Equals(v, parent._get_nodeName())))
                            {
                                throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Expected </", parent._get_nodeName()), ">"));
                            }

                            state = 0;
                            next  = 12;
                            continue;
                        }

                        break;
                    }


                    case 15:
                    {
                        bool __temp_boolv644 = (c == 45);
                        bool __temp_boolv643 = false;
                        bool __temp_boolv642 = false;
                        if (__temp_boolv644)
                        {
                            int __temp_stmt645 = default(int);
                            {
                                int index7 = (__temp_p294 + 1);
                                __temp_stmt645 = (((((uint)(index7)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index7])))) : (-1));
                            }

                            __temp_boolv643 = (__temp_stmt645 == 45);
                            if (__temp_boolv643)
                            {
                                int __temp_stmt646 = default(int);
                                {
                                    int index8 = (__temp_p294 + 2);
                                    __temp_stmt646 = (((((uint)(index8)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index8])))) : (-1));
                                }

                                __temp_boolv642 = (__temp_stmt646 == 62);
                            }
                        }

                        bool __temp_stmt641 = ((__temp_boolv644 && __temp_boolv643) && __temp_boolv642);
                        if (__temp_stmt641)
                        {
                            parent.addChild(global::haxe.root.Xml.createComment(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true))));
                            __temp_p294 += 2;
                            state        = 1;
                        }

                        break;
                    }


                    case 16:
                    {
                        if ((c == 91))
                        {
                            nbrackets++;
                        }
                        else
                        {
                            if ((c == 93))
                            {
                                nbrackets--;
                            }
                            else
                            {
                                if (((c == 62) && (nbrackets == 0)))
                                {
                                    parent.addChild(global::haxe.root.Xml.createDocType(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true))));
                                    state = 1;
                                }
                            }
                        }

                        break;
                    }


                    case 14:
                    {
                        bool __temp_boolv649 = (c == 63);
                        bool __temp_boolv648 = false;
                        if (__temp_boolv649)
                        {
                            int __temp_stmt650 = default(int);
                            {
                                int index9 = (__temp_p294 + 1);
                                __temp_stmt650 = (((((uint)(index9)) < str.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(str[index9])))) : (-1));
                            }

                            __temp_boolv648 = (__temp_stmt650 == 62);
                        }

                        bool __temp_stmt647 = (__temp_boolv649 && __temp_boolv648);
                        if (__temp_stmt647)
                        {
                            __temp_p294++;
                            string str1 = global::haxe.lang.StringExt.substr(str, (start + 1), new global::haxe.lang.Null <int>(((__temp_p294 - start) - 2), true));
                            parent.addChild(global::haxe.root.Xml.createProcessingInstruction(str1));
                            state = 1;
                        }

                        break;
                    }


                    case 18:
                    {
                        if ((c == 59))
                        {
                            string s = global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true));
                            if ((((((((uint)(0)) < s.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(s[0])))) : (-1))) == 35))
                            {
                                global::haxe.lang.Null <int> i = default(global::haxe.lang.Null <int>);
                                if ((((((((uint)(1)) < s.Length)) ? (((int)(global::haxe.lang.Runtime.toInt(s[1])))) : (-1))) == 120))
                                {
                                    i = new global::haxe.lang.Null <int>(global::Std.parseInt(global::haxe.lang.Runtime.concat("0", global::haxe.lang.StringExt.substr(s, 1, new global::haxe.lang.Null <int>((s.Length - 1), true)))).@value, true);
                                }
                                else
                                {
                                    i = new global::haxe.lang.Null <int>(global::Std.parseInt(global::haxe.lang.StringExt.substr(s, 1, new global::haxe.lang.Null <int>((s.Length - 1), true))).@value, true);
                                }

                                {
                                    object x = new string(((char)(i.@value)), 1);
                                    buf.b.Append(((object)(global::Std.@string(x))));
                                }
                            }
                            else
                            {
                                if (!(global::haxe.xml.Parser.escapes.exists(s)))
                                {
                                    buf.b.Append(((object)(global::Std.@string(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("&", s), ";")))));
                                }
                                else
                                {
                                    object x1 = global::haxe.lang.Runtime.toString(global::haxe.xml.Parser.escapes.@get(s).@value);
                                    buf.b.Append(((object)(global::Std.@string(x1))));
                                }
                            }

                            start = (__temp_p294 + 1);
                            state = next;
                        }

                        break;
                    }
                    }

                    {
                        int index10 = ++__temp_p294;
                        if ((((uint)(index10)) < str.Length))
                        {
                            c = ((int)(global::haxe.lang.Runtime.toInt(str[index10])));
                        }
                        else
                        {
                            c = -1;
                        }
                    }
                }

                if ((state == 1))
                {
                    start = __temp_p294;
                    state = 13;
                }

                if ((state == 13))
                {
                    if (((__temp_p294 != start) || (nsubs == 0)))
                    {
                        parent.addChild(global::haxe.root.Xml.createPCData(global::haxe.lang.Runtime.concat(buf.toString(), global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null <int>((__temp_p294 - start), true)))));
                    }

                    return(__temp_p294);
                }

                throw global::haxe.lang.HaxeException.wrap("Unexpected end");
            }
        }
Ejemplo n.º 25
0
		public virtual   void nextToken()
		{
			unchecked 
			{
				global::haxe.root.StringBuf token = new global::haxe.root.StringBuf();
				string c = default(string);
				bool skipChar = default(bool);
				do 
				{
					c = this.nextChar();
					skipChar = ( global::alphatab.rendering.utils.SvgPathParser.isWhiteSpace(c) || string.Equals(c, ",") );
				}
				while ((  ! (this.eof())  && skipChar ));
				if ((  ! (this.eof())  ||  ! (skipChar)  )) 
				{
					token.b.Append(((object) (global::Std.@string(c)) ));
					if (global::alphatab.rendering.utils.SvgPathParser.isNumber(c, default(global::haxe.lang.Null<bool>))) 
					{
						c = this.peekChar();
						while ((  ! (this.eof())  && (( global::alphatab.rendering.utils.SvgPathParser.isNumber(c, new global::haxe.lang.Null<bool>(false, true)) || string.Equals(c, ".") )) ))
						{
							{
								object x = this.nextChar();
								token.b.Append(((object) (global::Std.@string(x)) ));
							}
							
							c = this.peekChar();
						}
						
					}
					 else 
					{
						this.lastCommand = token.toString();
					}
					
				}
				
				this.currentToken = token.toString();
			}
		}
Ejemplo n.º 26
0
		public virtual   string toCssString()
		{
			unchecked 
			{
				global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
				if (( (( this.getStyle() & 1 )) != 0 )) 
				{
					buf.b.Append(((object) ("bold ") ));
				}
				
				if (( (( this.getStyle() & 2 )) != 0 )) 
				{
					buf.b.Append(((object) ("italic ") ));
				}
				
				buf.b.Append(((object) (global::Std.@string(this._size)) ));
				buf.b.Append(((object) ("px") ));
				buf.b.Append(((object) ("\'") ));
				buf.b.Append(((object) (global::Std.@string(this._family)) ));
				buf.b.Append(((object) ("\'") ));
				return buf.toString();
			}
		}
Ejemplo n.º 27
0
        public static string htmlEscape(string s, object quotes)
        {
            unchecked {
                                #line 159 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
                {
                                        #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                    int _g_offset = 0;
                                        #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                    string _g_s = s;
                                        #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                    while ((_g_offset < _g_s.Length))
                    {
                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        string s1 = _g_s;
                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        int index = _g_offset++;
                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        int c = ((((bool)((((uint)(index)) < s1.Length)))) ? (((int)(s1[index]))) : (-1));
                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        if (((c >= 55296) && (c <= 56319)))
                        {
                                                        #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            int index1 = (index + 1);
                                                        #line 606 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            c = (((c - 55232) << 10) | ((((((bool)((((uint)(index1)) < s1.Length)))) ? (((int)(s1[index1]))) : (-1))) & 1023));
                        }

                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        int c1 = c;
                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        if ((c1 >= 65536))
                        {
                                                        #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            ++_g_offset;
                        }

                                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                        int code = c1;
                        switch (code)
                        {
                        case 34:
                        {
                                                                #line 168 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            if (global::haxe.lang.Runtime.toBool((quotes)))
                            {
                                                                        #line 169 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                                buf.b.Append(((string)("&quot;")));
                            }
                            else
                            {
                                                                        #line 173 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                                buf.addChar(code);
                            }

                                                                #line 168 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            break;
                        }


                        case 38:
                        {
                                                                #line 163 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            buf.b.Append(((string)("&amp;")));
                                                                #line 163 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            break;
                        }


                        case 39:
                        {
                                                                #line 170 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            if (global::haxe.lang.Runtime.toBool((quotes)))
                            {
                                                                        #line 171 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                                buf.b.Append(((string)("&#039;")));
                            }
                            else
                            {
                                                                        #line 173 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                                buf.addChar(code);
                            }

                                                                #line 170 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            break;
                        }


                        case 60:
                        {
                                                                #line 165 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            buf.b.Append(((string)("&lt;")));
                                                                #line 165 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            break;
                        }


                        case 62:
                        {
                                                                #line 167 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            buf.b.Append(((string)("&gt;")));
                                                                #line 167 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            break;
                        }


                        default:
                        {
                                                                #line 173 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            buf.addChar(code);
                                                                #line 173 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            break;
                        }
                        }
                    }
                }

                                #line 176 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                return(buf.b.ToString());
            }
                        #line default
        }
Ejemplo n.º 28
0
		public virtual   string getString(global::haxe.io.Bytes data, int offset, int length)
		{
			unchecked 
			{
				global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
				{
					int _g = 0;
					while (( _g < length ))
					{
						int i = _g++;
						int code = ( ((int) (data.b[( offset + i )]) ) & 255 );
						if (( code == 0 )) 
						{
							break;
						}
						
						buf.b.Append(((char) (code) ));
					}
					
				}
				
				return buf.toString();
			}
		}
Ejemplo n.º 29
0
		public virtual   void readScoreInformation()
		{
			unchecked 
			{
				this._score.title = this.readStringIntUnused();
				this._score.subTitle = this.readStringIntUnused();
				this._score.artist = this.readStringIntUnused();
				this._score.album = this.readStringIntUnused();
				this._score.words = this.readStringIntUnused();
				if (( this._versionNumber >= 500 )) 
				{
					this._score.music = this.readStringIntUnused();
				}
				 else 
				{
					this._score.music = this._score.words;
				}
				
				this._score.copyright = this.readStringIntUnused();
				this._score.tab = this.readStringIntUnused();
				this._score.instructions = this.readStringIntUnused();
				int noticeLines = this.readInt32();
				global::haxe.root.StringBuf notice = new global::haxe.root.StringBuf();
				{
					int _g = 0;
					while (( _g < ((int) (noticeLines) ) ))
					{
						int i = _g++;
						if (( i > 0 )) 
						{
							notice.b.Append(((object) ("\n") ));
						}
						
						{
							object x = this.readStringIntUnused();
							notice.b.Append(((object) (global::Std.@string(x)) ));
						}
						
					}
					
				}
				
				this._score.notices = notice.toString();
			}
		}
Ejemplo n.º 30
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 672263473:
                {
                    this._textBaseline = ((global::alphatab.model.TextBaseline)(@value));
                    return(@value);
                }


                case 371286681:
                {
                    this._textAlign = ((global::alphatab.platform.model.TextAlign)(@value));
                    return(@value);
                }


                case 1993439662:
                {
                    this._font = ((global::alphatab.platform.model.Font)(@value));
                    return(@value);
                }


                case 1828730163:
                {
                    this._lineWidth = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 887070651:
                {
                    this._brush = ((global::System.Windows.Media.SolidColorBrush)(@value));
                    return(@value);
                }


                case 649684599:
                {
                    this._canvas = ((global::System.Windows.Controls.Canvas)(@value));
                    return(@value);
                }


                case 1083160452:
                {
                    this._currentPathIsEmpty = ((bool)(@value));
                    return(@value);
                }


                case 1760390271:
                {
                    this._currentPath = ((global::haxe.root.StringBuf)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Ejemplo n.º 31
0
        public static string quoteWinArg(string argument, bool escapeMetaCharacters)
        {
            unchecked {
                                #line 48 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                if (!(new global::haxe.root.EReg("^[^ \t\\\\\"]+$", "").match(argument)))
                {
                                        #line 52 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    global::haxe.root.StringBuf result = new global::haxe.root.StringBuf();
                    bool needquote = (((global::haxe.lang.StringExt.indexOf(argument, " ", null) != -1) || (global::haxe.lang.StringExt.indexOf(argument, "\t", null) != -1)) || (argument == ""));
                                        #line 55 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    if (needquote)
                    {
                                                #line 56 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        result.b.Append(((string)("\"")));
                    }

                                        #line 58 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    global::haxe.root.StringBuf bs_buf = new global::haxe.root.StringBuf();
                    {
                                                #line 59 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        int _g = 0;
                                                #line 59 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        int _g1 = argument.Length;
                                                #line 59 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        while ((_g < _g1))
                        {
                                                        #line 59 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                            int i = _g++;
                            {
                                                                #line 60 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                object _g2 = global::haxe.lang.StringExt.charCodeAt(argument, i);
                                                                #line 60 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                if ((_g2 == default(object)))
                                {
                                                                        #line 71 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                    object c = _g2;
                                                                        #line 71 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                    {
                                                                                #line 73 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        if ((bs_buf.b.Length > 0))
                                        {
                                                                                        #line 74 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                            {
                                                                                                #line 74 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                                string x = bs_buf.b.ToString();
                                                                                                #line 74 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                                result.b.Append(((string)(global::haxe.root.Std.@string(x))));
                                            }

                                                                                        #line 75 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                            bs_buf = new global::haxe.root.StringBuf();
                                        }

                                                                                #line 77 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        result.addChar(((int)(global::haxe.lang.Runtime.toInt(c))));
                                    }
                                }
                                else
                                {
                                                                        #line 60 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                    switch (((int)(global::haxe.lang.Runtime.toInt((_g2)))))
                                    {
                                    case 34:
                                    {
                                                                                        #line 66 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        string bs = bs_buf.b.ToString();
                                        result.b.Append(((string)(global::haxe.root.Std.@string(bs))));
                                                                                        #line 68 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        result.b.Append(((string)(global::haxe.root.Std.@string(bs))));
                                        bs_buf = new global::haxe.root.StringBuf();
                                                                                        #line 70 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        result.b.Append(((string)("\\\"")));
                                                                                        #line 64 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        break;
                                    }


                                    case 92:
                                    {
                                                                                        #line 63 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        bs_buf.b.Append(((string)("\\")));
                                                                                        #line 63 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        break;
                                    }


                                    default:
                                    {
                                                                                        #line 71 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        object c1 = _g2;
                                                                                        #line 71 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        {
                                                                                                #line 73 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                            if ((bs_buf.b.Length > 0))
                                            {
                                                                                                        #line 74 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                                {
                                                                                                                #line 74 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                                    string x1 = bs_buf.b.ToString();
                                                                                                                #line 74 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                                    result.b.Append(((string)(global::haxe.root.Std.@string(x1))));
                                                }

                                                                                                        #line 75 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                                bs_buf = new global::haxe.root.StringBuf();
                                            }

                                                                                                #line 77 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                            result.addChar(((int)(global::haxe.lang.Runtime.toInt(c1))));
                                        }

                                                                                        #line 71 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                        break;
                                    }
                                    }
                                }
                            }
                        }
                    }

                                        #line 82 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    {
                                                #line 82 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        string x2 = bs_buf.b.ToString();
                                                #line 82 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        result.b.Append(((string)(global::haxe.root.Std.@string(x2))));
                    }

                                        #line 84 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    if (needquote)
                    {
                                                #line 85 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        {
                                                        #line 85 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                            string x3 = bs_buf.b.ToString();
                                                        #line 85 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                            result.b.Append(((string)(global::haxe.root.Std.@string(x3))));
                        }

                                                #line 86 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        result.b.Append(((string)("\"")));
                    }

                                        #line 89 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    argument = result.b.ToString();
                }

                                #line 92 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                if (escapeMetaCharacters)
                {
                                        #line 93 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    global::haxe.root.StringBuf result1 = new global::haxe.root.StringBuf();
                    {
                                                #line 94 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        int _g3 = 0;
                                                #line 94 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        int _g11 = argument.Length;
                                                #line 94 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                        while ((_g3 < _g11))
                        {
                                                        #line 94 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                            int    i1 = _g3++;
                            object c2 = global::haxe.lang.StringExt.charCodeAt(argument, i1);
                                                        #line 96 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                            if ((global::haxe.SysTools.winMetaCharacters.indexOf(c2, null) >= 0))
                            {
                                                                #line 97 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                                result1.addChar(94);
                            }

                                                        #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                            result1.addChar(((int)(global::haxe.lang.Runtime.toInt(c2))));
                        }
                    }

                                        #line 101 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    return(result1.b.ToString());
                }
                else
                {
                                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\SysTools.hx"
                    return(argument);
                }
            }
                        #line default
        }
Ejemplo n.º 32
0
		public virtual   string toString()
		{
			unchecked 
			{
				if (( this.nodeType == global::haxe.root.Xml.PCData )) 
				{
					return global::haxe.root.StringTools.htmlEscape(this._nodeValue, default(global::haxe.lang.Null<bool>));
				}
				
				if (( this.nodeType == global::haxe.root.Xml.CData )) 
				{
					return global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<![CDATA[", this._nodeValue), "]]>");
				}
				
				if (( this.nodeType == global::haxe.root.Xml.Comment )) 
				{
					return global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<!--", this._nodeValue), "-->");
				}
				
				if (( this.nodeType == global::haxe.root.Xml.DocType )) 
				{
					return global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<!DOCTYPE ", this._nodeValue), ">");
				}
				
				if (( this.nodeType == global::haxe.root.Xml.ProcessingInstruction )) 
				{
					return global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<?", this._nodeValue), "?>");
				}
				
				global::haxe.root.StringBuf s = new global::haxe.root.StringBuf();
				if (( this.nodeType == global::haxe.root.Xml.Element )) 
				{
					s.b.Append(((object) ("<") ));
					s.b.Append(((object) (global::Std.@string(this._nodeName)) ));
					{
						object __temp_iterator301 = this._attributes.keys();
						while (((bool) (global::haxe.lang.Runtime.callField(__temp_iterator301, "hasNext", 407283053, default(global::haxe.root.Array))) ))
						{
							string k = global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.callField(__temp_iterator301, "next", 1224901875, default(global::haxe.root.Array)));
							s.b.Append(((object) (" ") ));
							s.b.Append(((object) (global::Std.@string(k)) ));
							s.b.Append(((object) ("=\"") ));
							{
								object x = global::haxe.lang.Runtime.toString(this._attributes.@get(k).@value);
								s.b.Append(((object) (global::Std.@string(x)) ));
							}
							
							s.b.Append(((object) ("\"") ));
						}
						
					}
					
					if (( this._children.length == 0 )) 
					{
						s.b.Append(((object) ("/>") ));
						return s.toString();
					}
					
					s.b.Append(((object) (">") ));
				}
				
				{
					object __temp_iterator302 = this.iterator();
					while (((bool) (global::haxe.lang.Runtime.callField(__temp_iterator302, "hasNext", 407283053, default(global::haxe.root.Array))) ))
					{
						global::haxe.root.Xml x1 = ((global::haxe.root.Xml) (global::haxe.lang.Runtime.callField(__temp_iterator302, "next", 1224901875, default(global::haxe.root.Array))) );
						object x2 = x1.toString();
						s.b.Append(((object) (global::Std.@string(x2)) ));
					}
					
				}
				
				if (( this.nodeType == global::haxe.root.Xml.Element )) 
				{
					s.b.Append(((object) ("</") ));
					s.b.Append(((object) (global::Std.@string(this._nodeName)) ));
					s.b.Append(((object) (">") ));
				}
				
				return s.toString();
			}
		}
Ejemplo n.º 33
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 672263473:
					{
						this._textBaseline = ((global::alphatab.model.TextBaseline) (@value) );
						return @value;
					}
					
					
					case 371286681:
					{
						this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) );
						return @value;
					}
					
					
					case 1993439662:
					{
						this._font = ((global::alphatab.platform.model.Font) (@value) );
						return @value;
					}
					
					
					case 1828730163:
					{
						this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 887070651:
					{
						this._brush = ((global::System.Windows.Media.SolidColorBrush) (@value) );
						return @value;
					}
					
					
					case 649684599:
					{
						this._canvas = ((global::System.Windows.Controls.Canvas) (@value) );
						return @value;
					}
					
					
					case 1083160452:
					{
						this._currentPathIsEmpty = ((bool) (@value) );
						return @value;
					}
					
					
					case 1760390271:
					{
						this._currentPath = ((global::haxe.root.StringBuf) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Ejemplo n.º 34
0
		public virtual   void clear()
		{
			unchecked 
			{
				this._canvas.Children.Clear();
				this._currentPath = new global::haxe.root.StringBuf();
				this._currentPathIsEmpty = true;
			}
		}
Ejemplo n.º 35
0
        public virtual string toString()
        {
            unchecked
            {
                if ((this.nodeType == global::haxe.root.Xml.PCData))
                {
                    return(global::haxe.root.StringTools.htmlEscape(this._nodeValue, default(global::haxe.lang.Null <bool>)));
                }

                if ((this.nodeType == global::haxe.root.Xml.CData))
                {
                    return(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<![CDATA[", this._nodeValue), "]]>"));
                }

                if ((this.nodeType == global::haxe.root.Xml.Comment))
                {
                    return(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<!--", this._nodeValue), "-->"));
                }

                if ((this.nodeType == global::haxe.root.Xml.DocType))
                {
                    return(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<!DOCTYPE ", this._nodeValue), ">"));
                }

                if ((this.nodeType == global::haxe.root.Xml.ProcessingInstruction))
                {
                    return(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("<?", this._nodeValue), "?>"));
                }

                global::haxe.root.StringBuf s = new global::haxe.root.StringBuf();
                if ((this.nodeType == global::haxe.root.Xml.Element))
                {
                    s.b.Append(((object)("<")));
                    s.b.Append(((object)(global::Std.@string(this._nodeName))));
                    {
                        object __temp_iterator301 = this._attributes.keys();
                        while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator301, "hasNext", 407283053, default(global::haxe.root.Array)))))
                        {
                            string k = global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.callField(__temp_iterator301, "next", 1224901875, default(global::haxe.root.Array)));
                            s.b.Append(((object)(" ")));
                            s.b.Append(((object)(global::Std.@string(k))));
                            s.b.Append(((object)("=\"")));
                            {
                                object x = global::haxe.lang.Runtime.toString(this._attributes.@get(k).@value);
                                s.b.Append(((object)(global::Std.@string(x))));
                            }

                            s.b.Append(((object)("\"")));
                        }
                    }

                    if ((this._children.length == 0))
                    {
                        s.b.Append(((object)("/>")));
                        return(s.toString());
                    }

                    s.b.Append(((object)(">")));
                }

                {
                    object __temp_iterator302 = this.iterator();
                    while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator302, "hasNext", 407283053, default(global::haxe.root.Array)))))
                    {
                        global::haxe.root.Xml x1 = ((global::haxe.root.Xml)(global::haxe.lang.Runtime.callField(__temp_iterator302, "next", 1224901875, default(global::haxe.root.Array))));
                        object x2 = x1.toString();
                        s.b.Append(((object)(global::Std.@string(x2))));
                    }
                }

                if ((this.nodeType == global::haxe.root.Xml.Element))
                {
                    s.b.Append(((object)("</")));
                    s.b.Append(((object)(global::Std.@string(this._nodeName))));
                    s.b.Append(((object)(">")));
                }

                return(s.toString());
            }
        }
Ejemplo n.º 36
0
 public static void __hx_ctor__StringBuf(global::haxe.root.StringBuf __hx_this)
 {
     __hx_this.b = new global::System.Text.StringBuilder();
 }
Ejemplo n.º 37
0
		public static   int doParse(string str, global::haxe.lang.Null<int> p, global::haxe.root.Xml parent)
		{
			unchecked 
			{
				int __temp_p294 = ( (global::haxe.lang.Runtime.eq((p).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ? (((int) (0) )) : (p.@value) );
				global::haxe.root.Xml xml = default(global::haxe.root.Xml);
				int state = 1;
				int next = 1;
				string aname = default(string);
				int start = 0;
				int nsubs = 0;
				int nbrackets = 0;
				int c = default(int);
				if (( ((uint) (__temp_p294) ) < str.Length )) 
				{
					c = ((int) (global::haxe.lang.Runtime.toInt(str[__temp_p294])) );
				}
				 else 
				{
					c = -1;
				}
				
				global::haxe.root.StringBuf buf = new global::haxe.root.StringBuf();
				while ( ! ((( c == -1 ))) )
				{
					switch (state)
					{
						case 0:
						{
							switch (c)
							{
								case 10:case 13:case 9:case 32:
								{
									{
									}
									
									break;
								}
								
								
								default:
								{
									state = next;
									continue;
								}
								
							}
							
							break;
						}
						
						
						case 1:
						{
							switch (c)
							{
								case 60:
								{
									state = 0;
									next = 2;
									break;
								}
								
								
								default:
								{
									start = __temp_p294;
									state = 13;
									continue;
								}
								
							}
							
							break;
						}
						
						
						case 13:
						{
							if (( c == 60 )) 
							{
								global::haxe.root.Xml child = global::haxe.root.Xml.createPCData(global::haxe.lang.Runtime.concat(buf.toString(), global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true))));
								buf = new global::haxe.root.StringBuf();
								parent.addChild(child);
								nsubs++;
								state = 0;
								next = 2;
							}
							 else 
							{
								if (( c == 38 )) 
								{
									buf.addSub(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true));
									state = 18;
									next = 13;
									start = ( __temp_p294 + 1 );
								}
								
							}
							
							break;
						}
						
						
						case 17:
						{
							bool __temp_boolv627 = ( c == 93 );
							bool __temp_boolv626 = false;
							bool __temp_boolv625 = false;
							if (__temp_boolv627) 
							{
								int __temp_stmt628 = default(int);
								{
									int index = ( __temp_p294 + 1 );
									__temp_stmt628 = ( (( ((uint) (index) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index])) )) : (-1) );
								}
								
								__temp_boolv626 = ( __temp_stmt628 == 93 );
								if (__temp_boolv626) 
								{
									int __temp_stmt629 = default(int);
									{
										int index1 = ( __temp_p294 + 2 );
										__temp_stmt629 = ( (( ((uint) (index1) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index1])) )) : (-1) );
									}
									
									__temp_boolv625 = ( __temp_stmt629 == 62 );
								}
								
							}
							
							bool __temp_stmt624 = ( ( __temp_boolv627 && __temp_boolv626 ) && __temp_boolv625 );
							if (__temp_stmt624) 
							{
								global::haxe.root.Xml child1 = global::haxe.root.Xml.createCData(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true)));
								parent.addChild(child1);
								nsubs++;
								__temp_p294 += 2;
								state = 1;
							}
							
							break;
						}
						
						
						case 2:
						{
							switch (c)
							{
								case 33:
								{
									int __temp_stmt630 = default(int);
									{
										int index2 = ( __temp_p294 + 1 );
										__temp_stmt630 = ( (( ((uint) (index2) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index2])) )) : (-1) );
									}
									
									if (( __temp_stmt630 == 91 )) 
									{
										__temp_p294 += 2;
										if ( ! (string.Equals(global::haxe.lang.StringExt.substr(str, __temp_p294, new global::haxe.lang.Null<int>(6, true)).ToUpper(), "CDATA[")) ) 
										{
											throw global::haxe.lang.HaxeException.wrap("Expected <![CDATA[");
										}
										
										__temp_p294 += 5;
										state = 17;
										start = ( __temp_p294 + 1 );
									}
									 else 
									{
										int __temp_stmt633 = default(int);
										{
											int index3 = ( __temp_p294 + 1 );
											__temp_stmt633 = ( (( ((uint) (index3) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index3])) )) : (-1) );
										}
										
										bool __temp_stmt632 = ( __temp_stmt633 == 68 );
										bool __temp_boolv634 = false;
										if ( ! (__temp_stmt632) ) 
										{
											int __temp_stmt635 = default(int);
											{
												int index4 = ( __temp_p294 + 1 );
												__temp_stmt635 = ( (( ((uint) (index4) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index4])) )) : (-1) );
											}
											
											__temp_boolv634 = ( __temp_stmt635 == 100 );
										}
										
										bool __temp_stmt631 = ( __temp_stmt632 || __temp_boolv634 );
										if (__temp_stmt631) 
										{
											if ( ! (string.Equals(global::haxe.lang.StringExt.substr(str, ( __temp_p294 + 2 ), new global::haxe.lang.Null<int>(6, true)).ToUpper(), "OCTYPE")) ) 
											{
												throw global::haxe.lang.HaxeException.wrap("Expected <!DOCTYPE");
											}
											
											__temp_p294 += 8;
											state = 16;
											start = ( __temp_p294 + 1 );
										}
										 else 
										{
											int __temp_stmt638 = default(int);
											{
												int index5 = ( __temp_p294 + 1 );
												__temp_stmt638 = ( (( ((uint) (index5) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index5])) )) : (-1) );
											}
											
											bool __temp_stmt637 = ( __temp_stmt638 != 45 );
											bool __temp_boolv639 = false;
											if ( ! (__temp_stmt637) ) 
											{
												int __temp_stmt640 = default(int);
												{
													int index6 = ( __temp_p294 + 2 );
													__temp_stmt640 = ( (( ((uint) (index6) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index6])) )) : (-1) );
												}
												
												__temp_boolv639 = ( __temp_stmt640 != 45 );
											}
											
											bool __temp_stmt636 = ( __temp_stmt637 || __temp_boolv639 );
											if (__temp_stmt636) 
											{
												throw global::haxe.lang.HaxeException.wrap("Expected <!--");
											}
											 else 
											{
												__temp_p294 += 2;
												state = 15;
												start = ( __temp_p294 + 1 );
											}
											
										}
										
									}
									
									break;
								}
								
								
								case 63:
								{
									state = 14;
									start = __temp_p294;
									break;
								}
								
								
								case 47:
								{
									if (( parent == default(global::haxe.root.Xml) )) 
									{
										throw global::haxe.lang.HaxeException.wrap("Expected node name");
									}
									
									start = ( __temp_p294 + 1 );
									state = 0;
									next = 10;
									break;
								}
								
								
								default:
								{
									state = 3;
									start = __temp_p294;
									continue;
								}
								
							}
							
							break;
						}
						
						
						case 3:
						{
							if ( ! ((( ( ( ( ( ( ( ( c >= 97 ) && ( c <= 122 ) ) || ( ( c >= 65 ) && ( c <= 90 ) ) ) || ( ( c >= 48 ) && ( c <= 57 ) ) ) || ( c == 58 ) ) || ( c == 46 ) ) || ( c == 95 ) ) || ( c == 45 ) ))) ) 
							{
								if (( __temp_p294 == start )) 
								{
									throw global::haxe.lang.HaxeException.wrap("Expected node name");
								}
								
								xml = global::haxe.root.Xml.createElement(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true)));
								parent.addChild(xml);
								state = 0;
								next = 4;
								continue;
							}
							
							break;
						}
						
						
						case 4:
						{
							switch (c)
							{
								case 47:
								{
									state = 11;
									nsubs++;
									break;
								}
								
								
								case 62:
								{
									state = 9;
									nsubs++;
									break;
								}
								
								
								default:
								{
									state = 5;
									start = __temp_p294;
									continue;
								}
								
							}
							
							break;
						}
						
						
						case 5:
						{
							if ( ! ((( ( ( ( ( ( ( ( c >= 97 ) && ( c <= 122 ) ) || ( ( c >= 65 ) && ( c <= 90 ) ) ) || ( ( c >= 48 ) && ( c <= 57 ) ) ) || ( c == 58 ) ) || ( c == 46 ) ) || ( c == 95 ) ) || ( c == 45 ) ))) ) 
							{
								string tmp = default(string);
								if (( start == __temp_p294 )) 
								{
									throw global::haxe.lang.HaxeException.wrap("Expected attribute name");
								}
								
								tmp = global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true));
								aname = tmp;
								if (xml.exists(aname)) 
								{
									throw global::haxe.lang.HaxeException.wrap("Duplicate attribute");
								}
								
								state = 0;
								next = 6;
								continue;
							}
							
							break;
						}
						
						
						case 6:
						{
							switch (c)
							{
								case 61:
								{
									state = 0;
									next = 7;
									break;
								}
								
								
								default:
								{
									throw global::haxe.lang.HaxeException.wrap("Expected =");
								}
								
							}
							
							break;
						}
						
						
						case 7:
						{
							switch (c)
							{
								case 34:case 39:
								{
									state = 8;
									start = __temp_p294;
									break;
								}
								
								
								default:
								{
									throw global::haxe.lang.HaxeException.wrap("Expected \"");
								}
								
							}
							
							break;
						}
						
						
						case 8:
						{
							if (( c == (( (( ((uint) (start) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[start])) )) : (-1) )) )) 
							{
								string val = global::haxe.lang.StringExt.substr(str, ( start + 1 ), new global::haxe.lang.Null<int>(( ( __temp_p294 - start ) - 1 ), true));
								xml.@set(aname, val);
								state = 0;
								next = 4;
							}
							
							break;
						}
						
						
						case 9:
						{
							__temp_p294 = global::haxe.xml.Parser.doParse(str, new global::haxe.lang.Null<int>(__temp_p294, true), xml);
							start = __temp_p294;
							state = 1;
							break;
						}
						
						
						case 11:
						{
							switch (c)
							{
								case 62:
								{
									state = 1;
									break;
								}
								
								
								default:
								{
									throw global::haxe.lang.HaxeException.wrap("Expected >");
								}
								
							}
							
							break;
						}
						
						
						case 12:
						{
							switch (c)
							{
								case 62:
								{
									if (( nsubs == 0 )) 
									{
										parent.addChild(global::haxe.root.Xml.createPCData(""));
									}
									
									return __temp_p294;
								}
								
								
								default:
								{
									throw global::haxe.lang.HaxeException.wrap("Expected >");
								}
								
							}
							
						}
						
						
						case 10:
						{
							if ( ! ((( ( ( ( ( ( ( ( c >= 97 ) && ( c <= 122 ) ) || ( ( c >= 65 ) && ( c <= 90 ) ) ) || ( ( c >= 48 ) && ( c <= 57 ) ) ) || ( c == 58 ) ) || ( c == 46 ) ) || ( c == 95 ) ) || ( c == 45 ) ))) ) 
							{
								if (( start == __temp_p294 )) 
								{
									throw global::haxe.lang.HaxeException.wrap("Expected node name");
								}
								
								string v = global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true));
								if ( ! (string.Equals(v, parent._get_nodeName())) ) 
								{
									throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Expected </", parent._get_nodeName()), ">"));
								}
								
								state = 0;
								next = 12;
								continue;
							}
							
							break;
						}
						
						
						case 15:
						{
							bool __temp_boolv644 = ( c == 45 );
							bool __temp_boolv643 = false;
							bool __temp_boolv642 = false;
							if (__temp_boolv644) 
							{
								int __temp_stmt645 = default(int);
								{
									int index7 = ( __temp_p294 + 1 );
									__temp_stmt645 = ( (( ((uint) (index7) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index7])) )) : (-1) );
								}
								
								__temp_boolv643 = ( __temp_stmt645 == 45 );
								if (__temp_boolv643) 
								{
									int __temp_stmt646 = default(int);
									{
										int index8 = ( __temp_p294 + 2 );
										__temp_stmt646 = ( (( ((uint) (index8) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index8])) )) : (-1) );
									}
									
									__temp_boolv642 = ( __temp_stmt646 == 62 );
								}
								
							}
							
							bool __temp_stmt641 = ( ( __temp_boolv644 && __temp_boolv643 ) && __temp_boolv642 );
							if (__temp_stmt641) 
							{
								parent.addChild(global::haxe.root.Xml.createComment(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true))));
								__temp_p294 += 2;
								state = 1;
							}
							
							break;
						}
						
						
						case 16:
						{
							if (( c == 91 )) 
							{
								nbrackets++;
							}
							 else 
							{
								if (( c == 93 )) 
								{
									nbrackets--;
								}
								 else 
								{
									if (( ( c == 62 ) && ( nbrackets == 0 ) )) 
									{
										parent.addChild(global::haxe.root.Xml.createDocType(global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true))));
										state = 1;
									}
									
								}
								
							}
							
							break;
						}
						
						
						case 14:
						{
							bool __temp_boolv649 = ( c == 63 );
							bool __temp_boolv648 = false;
							if (__temp_boolv649) 
							{
								int __temp_stmt650 = default(int);
								{
									int index9 = ( __temp_p294 + 1 );
									__temp_stmt650 = ( (( ((uint) (index9) ) < str.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(str[index9])) )) : (-1) );
								}
								
								__temp_boolv648 = ( __temp_stmt650 == 62 );
							}
							
							bool __temp_stmt647 = ( __temp_boolv649 && __temp_boolv648 );
							if (__temp_stmt647) 
							{
								__temp_p294++;
								string str1 = global::haxe.lang.StringExt.substr(str, ( start + 1 ), new global::haxe.lang.Null<int>(( ( __temp_p294 - start ) - 2 ), true));
								parent.addChild(global::haxe.root.Xml.createProcessingInstruction(str1));
								state = 1;
							}
							
							break;
						}
						
						
						case 18:
						{
							if (( c == 59 )) 
							{
								string s = global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true));
								if (( (( (( ((uint) (0) ) < s.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(s[0])) )) : (-1) )) == 35 )) 
								{
									global::haxe.lang.Null<int> i = default(global::haxe.lang.Null<int>);
									if (( (( (( ((uint) (1) ) < s.Length )) ? (((int) (global::haxe.lang.Runtime.toInt(s[1])) )) : (-1) )) == 120 )) 
									{
										i = new global::haxe.lang.Null<int>(global::Std.parseInt(global::haxe.lang.Runtime.concat("0", global::haxe.lang.StringExt.substr(s, 1, new global::haxe.lang.Null<int>(( s.Length - 1 ), true)))).@value, true);
									}
									 else 
									{
										i = new global::haxe.lang.Null<int>(global::Std.parseInt(global::haxe.lang.StringExt.substr(s, 1, new global::haxe.lang.Null<int>(( s.Length - 1 ), true))).@value, true);
									}
									
									{
										object x = new string(((char) (i.@value) ), 1);
										buf.b.Append(((object) (global::Std.@string(x)) ));
									}
									
								}
								 else 
								{
									if ( ! (global::haxe.xml.Parser.escapes.exists(s)) ) 
									{
										buf.b.Append(((object) (global::Std.@string(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("&", s), ";"))) ));
									}
									 else 
									{
										object x1 = global::haxe.lang.Runtime.toString(global::haxe.xml.Parser.escapes.@get(s).@value);
										buf.b.Append(((object) (global::Std.@string(x1)) ));
									}
									
								}
								
								start = ( __temp_p294 + 1 );
								state = next;
							}
							
							break;
						}
						
						
					}
					
					{
						int index10 =  ++ __temp_p294;
						if (( ((uint) (index10) ) < str.Length )) 
						{
							c = ((int) (global::haxe.lang.Runtime.toInt(str[index10])) );
						}
						 else 
						{
							c = -1;
						}
						
					}
					
				}
				
				if (( state == 1 )) 
				{
					start = __temp_p294;
					state = 13;
				}
				
				if (( state == 13 )) 
				{
					if (( ( __temp_p294 != start ) || ( nsubs == 0 ) )) 
					{
						parent.addChild(global::haxe.root.Xml.createPCData(global::haxe.lang.Runtime.concat(buf.toString(), global::haxe.lang.StringExt.substr(str, start, new global::haxe.lang.Null<int>(( __temp_p294 - start ), true)))));
					}
					
					return __temp_p294;
				}
				
				throw global::haxe.lang.HaxeException.wrap("Unexpected end");
			}
		}
Ejemplo n.º 38
0
		public virtual   string toString()
		{
			unchecked 
			{
				if (( ( this.@params == default(global::haxe.root.Array<object>) ) || ( [email protected] == 0 ) )) 
				{
					return this.getTag();
				}
				
				global::haxe.root.StringBuf ret = new global::haxe.root.StringBuf();
				{
					object x = this.getTag();
					ret.b.Append(((object) (global::Std.@string(x)) ));
				}
				
				ret.b.Append(((object) ("(") ));
				bool first = true;
				{
					int _g = 0;
					global::haxe.root.Array<object> _g1 = this.@params;
					while (( _g < _g1.length ))
					{
						object p = _g1[_g];
						 ++ _g;
						if (first) 
						{
							first = false;
						}
						 else 
						{
							ret.b.Append(((object) (",") ));
						}
						
						ret.b.Append(((object) (global::Std.@string(p)) ));
					}
					
				}
				
				ret.b.Append(((object) (")") ));
				return ret.toString();
			}
		}
Ejemplo n.º 39
0
		public virtual   void stroke()
		{
			unchecked 
			{
				string path = this._currentPath.toString();
				if ( ! (this._currentPathIsEmpty) ) 
				{
					global::System.Windows.Shapes.Path wpfPath = new global::System.Windows.Shapes.Path();
					wpfPath.Stroke = this._brush;
					wpfPath.StrokeThickness = this._lineWidth;
					wpfPath.Data = global::System.Windows.Media.Geometry.Parse(this._currentPath.toString());
					this._canvas.Children.Add(wpfPath);
				}
				
				this._currentPath = new global::haxe.root.StringBuf();
				this._currentPathIsEmpty = true;
			}
		}
Ejemplo n.º 40
0
        public static string normalize(string path)
        {
            unchecked {
                                #line 211 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                string slash = "/";
                path = global::haxe.lang.StringExt.split(path, "\\").@join(slash);
                                #line 213 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                if ((path == slash))
                {
                                        #line 214 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    return(slash);
                }

                                #line 216 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                global::haxe.root.Array target = new global::haxe.root.Array(new object[] {});
                                #line 218 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                {
                                        #line 218 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    int _g = 0;
                                        #line 218 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    global::haxe.root.Array _g1 = global::haxe.lang.StringExt.split(path, slash);
                                        #line 218 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    while ((_g < _g1.length))
                    {
                                                #line 218 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        string token = global::haxe.lang.Runtime.toString(_g1.__get(_g));
                                                #line 218 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        ++_g;
                        if ((((token == "..") && (target.length > 0)) && (global::haxe.lang.Runtime.toString(target.__get((target.length - 1))) != "..")))
                        {
                                                        #line 220 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            string __temp_expr1 = global::haxe.lang.Runtime.toString(target.pop());
                        }
                        else if ((token == ""))
                        {
                                                        #line 222 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            if (((target.length > 0) || global::haxe.lang.Runtime.eq(global::haxe.lang.StringExt.charCodeAt(path, 0), 47)))
                            {
                                                                #line 223 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                target.push(token);
                            }
                        }
                        else if ((token != "."))
                        {
                                                        #line 226 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            target.push(token);
                        }
                    }
                }

                                #line 230 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                string tmp = target.@join(slash);
                global::haxe.root.StringBuf acc = new global::haxe.root.StringBuf();
                                #line 232 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                bool colon   = false;
                bool slashes = false;
                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                {
                                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    int _g2_offset = 0;
                                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    string _g2_s = tmp;
                                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                    while ((_g2_offset < _g2_s.Length))
                    {
                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        string s = _g2_s;
                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        int index = _g2_offset++;
                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        int c = ((((bool)((((uint)(index)) < s.Length)))) ? (((int)(s[index]))) : (-1));
                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        if (((c >= 55296) && (c <= 56319)))
                        {
                                                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            int index1 = (index + 1);
                                                        #line 606 "C:\\HaxeToolkit\\haxe\\std\\StringTools.hx"
                            c = (((c - 55232) << 10) | ((((((bool)((((uint)(index1)) < s.Length)))) ? (((int)(s[index1]))) : (-1))) & 1023));
                        }

                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        int c1 = c;
                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        if ((c1 >= 65536))
                        {
                                                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            ++_g2_offset;
                        }

                                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                        int c2 = c1;
                        switch (c2)
                        {
                        case 47:
                        {
                                                                #line 244 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            if (!(colon))
                            {
                                                                        #line 245 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                slashes = true;
                            }
                            else
                            {
                                                                        #line 246 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                int i = c2;
                                                                        #line 246 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                {
                                                                                #line 247 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                    colon = false;
                                    if (slashes)
                                    {
                                                                                        #line 249 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                        acc.b.Append(((string)("/")));
                                        slashes = false;
                                    }

                                                                                #line 252 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                    acc.addChar(i);
                                }
                            }

                                                                #line 244 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            break;
                        }


                        case 58:
                        {
                                                                #line 242 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            acc.b.Append(((string)(":")));
                            colon = true;
                                                                #line 241 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            break;
                        }


                        default:
                        {
                                                                #line 246 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            int i1 = c2;
                                                                #line 246 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            {
                                                                        #line 247 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                colon = false;
                                if (slashes)
                                {
                                                                                #line 249 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                    acc.b.Append(((string)("/")));
                                    slashes = false;
                                }

                                                                        #line 252 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                                acc.addChar(i1);
                            }

                                                                #line 246 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                            break;
                        }
                        }
                    }
                }

                                #line 256 "C:\\HaxeToolkit\\haxe\\std\\haxe\\io\\Path.hx"
                return(acc.b.ToString());
            }
                        #line default
        }
Ejemplo n.º 41
0
		public virtual   void fill()
		{
			unchecked 
			{
				if ( ! (this._currentPathIsEmpty) ) 
				{
					global::System.Windows.Shapes.Path wpfPath = new global::System.Windows.Shapes.Path();
					wpfPath.Fill = this._brush;
					wpfPath.Data = global::System.Windows.Media.Geometry.Parse(this._currentPath.toString());
					this._canvas.Children.Add(wpfPath);
				}
				
				this._currentPath = new global::haxe.root.StringBuf();
				this._currentPathIsEmpty = true;
			}
		}
Ejemplo n.º 42
0
		public virtual   string getValue(global::haxe.root.Xml n)
		{
			unchecked 
			{
				if (( ( n.nodeType == global::haxe.root.Xml.Element ) || ( n.nodeType == global::haxe.root.Xml.Document ) )) 
				{
					global::haxe.root.StringBuf txt = new global::haxe.root.StringBuf();
					{
						object __temp_iterator417 = n.iterator();
						while (((bool) (global::haxe.lang.Runtime.callField(__temp_iterator417, "hasNext", 407283053, default(global::haxe.root.Array))) ))
						{
							global::haxe.root.Xml c = ((global::haxe.root.Xml) (global::haxe.lang.Runtime.callField(__temp_iterator417, "next", 1224901875, default(global::haxe.root.Array))) );
							object x = this.getValue(c);
							txt.b.Append(((object) (global::Std.@string(x)) ));
						}
						
					}
					
					{
						string s = txt.toString();
						return s.Trim();
					}
					
				}
				 else 
				{
					return n._get_nodeValue();
				}
				
			}
		}
		public override   void doLayout()
		{
			unchecked 
			{
				base.doLayout();
				if (( this.index == 0 )) 
				{
					this.stave.topSpacing = 5;
					this.stave.bottomSpacing = 5;
				}
				
				{
					double x = this.stave.staveGroup.layout.renderer.renderingResources.wordsFont.getSize();
					this.height = ((int) (x) );
				}
				
				global::haxe.root.StringBuf endingsString = new global::haxe.root.StringBuf();
				{
					int _g = 0;
					global::haxe.root.Array<int> _g1 = this._endings;
					while (( _g < _g1.length ))
					{
						int e = _g1[_g];
						 ++ _g;
						endingsString.b.Append(((object) (global::Std.@string(( e + 1 ))) ));
						endingsString.b.Append(((object) (". ") ));
					}
					
				}
				
				this._endingsString = endingsString.toString();
			}
		}