public static bool checkSQL(string content) { unchecked { #line 14 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" if ((content == null)) { #line 15 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" return(false); } #line 20 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" global::haxe.root.EReg r = new global::haxe.root.EReg("(delete)|(drop)|(;)|(--)|(insert)|(drop)|(count)|(\\*)|(select)|(where)|(when)|(\\s+)|(\\()|(\\))|(\")|(0x)|(,)|(offset)|(<)|(>)|(=)|(&)|(\\|)|(ike)|(%)|(!)|(CHAR)|(#)", ""); #line 22 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" bool result = r.match(content); #line 24 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" if (result) { #line 25 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" global::haxe.Log.trace.__hx_invoke2_o(default(double), global::haxe.lang.Runtime.concat("warning content\u6709\u6f0f\u6d1e", content), default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "checkSQL", "utils.SQLRex", "src/utils/SQLRex.hx" }, new int[] { 1981972957 }, new double[] { ((double)(25)) })); } #line 27 "D:\\project\\sangong\\sangong\\src\\utils\\SQLRex.hx" return(result); } #line default }
public static bool isTuning(string name) { unchecked { global::haxe.root.EReg regex = global::alphatab.model.Tuning.TuningRegex; return(regex.match(name)); } }
public static int getTuningForText(string str) { unchecked { int @base = 0; global::haxe.root.EReg regex = global::alphatab.model.Tuning.TuningRegex; if (regex.match(str.ToLower())) { string note = regex.matched(1); global::haxe.lang.Null <int> octave = global::Std.parseInt(regex.matched(2)); if (string.Equals(note, "c")) { @base = 0; } else { if (string.Equals(note, "db")) { @base = 1; } else { if (string.Equals(note, "d")) { @base = 2; } else { if (string.Equals(note, "eb")) { @base = 3; } else { if (string.Equals(note, "e")) { @base = 4; } else { if (string.Equals(note, "f")) { @base = 5; } else { if (string.Equals(note, "gb")) { @base = 6; } else { if (string.Equals(note, "g")) { @base = 7; } else { if (string.Equals(note, "ab")) { @base = 8; } else { if (string.Equals(note, "a")) { @base = 9; } else { if (string.Equals(note, "bb")) { @base = 10; } else { if (string.Equals(note, "b")) { @base = 11; } else { return(-1); } } } } } } } } } } } } @base += (((octave.@value + 1)) * 12); } else { return(-1); } return(@base); } }
protected static void __hx_ctor_hx_ws_WebSocket(global::hx.ws.WebSocket __hx_this, string uri) { unchecked { #line 122 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._encodedKey = "wskey"; #line 121 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._key = "wskey"; #line 126 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" { #line 127 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" global::haxe.root.EReg uriRegExp = new global::haxe.root.EReg("^(\\w+?)://([\\w\\.-]+)(:(\\d+))?(/.*)?$", ""); #line 129 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" if (!(uriRegExp.match(uri))) { #line 130 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Uri not matching websocket uri \"", uri), "\"")); } #line 132 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" string proto = uriRegExp.matched(1); if ((proto == "wss")) { #line 135 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" throw global::haxe.lang.HaxeException.wrap("Secure sockets not implemented"); } else if ((proto == "ws")) { #line 142 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._port = 80; global::hx.ws.WebSocketCommon.__hx_ctor_hx_ws_WebSocketCommon(__hx_this, null); } else { #line 145 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat("Unknown protocol ", proto)); } #line 148 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._host = uriRegExp.matched(2); object parsedPort = global::haxe.root.Std.parseInt(uriRegExp.matched(4)); #line 150 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" if ((((int)(global::haxe.lang.Runtime.toInt(parsedPort))) > 0)) { #line 151 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._port = ((int)(global::haxe.lang.Runtime.toInt(parsedPort))); } #line 153 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._uri = uriRegExp.matched(5); if (((__hx_this._uri == null) || (__hx_this._uri.Length == 0))) { #line 155 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._uri = "/"; } #line 157 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._socket.setBlocking(true); #line 159 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._socket.connect(new global::sys.net.Host(((string)(__hx_this._host))), __hx_this._port); #line 162 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this._socket.setBlocking(false); #line 181 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" global::hx.ws.WebSocket ws = __hx_this; global::haxe.MainLoop.addThread(new global::hx.ws.WebSocket___hx_ctor_hx_ws_WebSocket_182__Fun(ws)); #line 191 "D:\\project\\sangong\\sangong\\src\\hx\\ws\\WebSocket.hx" __hx_this.sendHandshake(); } } #line default }