Kimono.KLocale.ReadDate C# (CSharp) Method

ReadDate() public method

Converts a localized date string to a QDate. This method is stricter than readDate(str,&ok): it will either accept a date in full format or a date in short format, depending on flags. name="str" the string we want to convert. name="flags" whether the date string is to be in full format or in short format. name="ok" the boolean that is set to false if it's not a valid date. If ok is 0, it will be ignored
public ReadDate ( string str, KLocale flags, bool &ok ) : QDate
str string
flags KLocale
ok bool
return QDate
        public QDate ReadDate(string str, KLocale.ReadDateFlags flags, ref bool ok)
        {
            StackItem[] stack = new StackItem[4];
            #if DEBUG
            stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(str);
            #else
            stack[1].s_class = (IntPtr) GCHandle.Alloc(str);
            #endif
            stack[2].s_int = (int) flags;
            stack[3].s_bool = ok;
            interceptor.Invoke("readDate$$$", "readDate(const QString&, KLocale::ReadDateFlags, bool*) const", stack);
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[1].s_class);
            #else
            ((GCHandle) stack[1].s_class).Free();
            #endif
            ok = stack[3].s_bool;
            object returnValue = ((GCHandle) stack[0].s_class).Target;
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[0].s_class);
            #else
            ((GCHandle) stack[0].s_class).Free();
            #endif
            return (QDate) returnValue;
        }

Same methods

KLocale::ReadDate ( string str ) : QDate
KLocale::ReadDate ( string str, KLocale flags ) : QDate
KLocale::ReadDate ( string str, bool &ok ) : QDate
KLocale::ReadDate ( string intstr, string fmt ) : QDate
KLocale::ReadDate ( string intstr, string fmt, bool &ok ) : QDate