Qyoto.QLocale.ToInt C# (CSharp) Method

ToInt() public method

public ToInt ( string s, bool &ok ) : int
s string
ok bool
return int
        public int ToInt(string s, ref bool ok)
        {
            StackItem[] stack = new StackItem[3];
            #if DEBUG
            stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(s);
            #else
            stack[1].s_class = (IntPtr) GCHandle.Alloc(s);
            #endif
            stack[2].s_bool = ok;
            interceptor.Invoke("toInt$$", "toInt(const QString&, bool*) const", stack);
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[1].s_class);
            #else
            ((GCHandle) stack[1].s_class).Free();
            #endif
            ok = stack[2].s_bool;
            return stack[0].s_int;
        }

Same methods

QLocale::ToInt ( string s ) : int
QLocale::ToInt ( string s, bool &ok, int arg3 ) : int