Set of date and time formatting parameters. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
More...
|
| | DateTimeFormatInfo () |
| | Default constructor, constructs invariant format info. More...
|
| |
| SharedPtr< Object > | GetFormat (const TypeInfo &format_type) override |
| | Gets formatter of specific type. More...
|
| |
| SharedPtr< Object > | Clone () override |
| | Clones format info. More...
|
| |
| bool | get_IsReadOnly () const |
| | Checks whether formatter is read-only. More...
|
| |
| String | get_ShortDatePattern () const |
| | Gets short date pattern. More...
|
| |
| void | set_ShortDatePattern (const String &value) |
| | Sets short date pattern. More...
|
| |
| String | get_ShortTimePattern () const |
| | Gets short time pattern. More...
|
| |
| void | set_ShortTimePattern (const String &value) |
| | Sets short time pattern. More...
|
| |
| String | get_LongDatePattern () const |
| | Gets long date pattern. More...
|
| |
| void | set_LongDatePattern (const String &value) |
| | Sets long date pattern. More...
|
| |
| String | get_LongTimePattern () const |
| | Gets long time pattern. More...
|
| |
| void | set_LongTimePattern (const String &value) |
| | Sets long time pattern. More...
|
| |
| String | get_DateSeparator () const |
| | Gets date separator. More...
|
| |
| void | set_DateSeparator (const String &value) |
| | Sets date separator. More...
|
| |
| String | get_TimeSeparator () const |
| | Gets time separator. More...
|
| |
| void | set_TimeSeparator (const String &value) |
| | Sets time separator. More...
|
| |
| String | get_PMDesignator () const |
| | Gets PM designator. More...
|
| |
| void | set_PMDesignator (const String &value) |
| | Sets PM designator. More...
|
| |
| String | get_AMDesignator () const |
| | Gets AM designator. More...
|
| |
| void | set_AMDesignator (const String &value) |
| | Sets AM designator. More...
|
| |
| ArrayPtr< String > | get_AbbreviatedDayNames () const |
| | Gets abbreviated day names. More...
|
| |
| void | set_AbbreviatedDayNames (const ArrayPtr< String > &value) |
| | Sets abbreviated day names. More...
|
| |
| ArrayPtr< String > | get_AbbreviatedMonthGenitiveNames () const |
| | Gets abbreviated month names in genitive form. More...
|
| |
| void | set_AbbreviatedMonthGenitiveNames (const ArrayPtr< String > &value) |
| | Sets abbreviated month names in genitive form. More...
|
| |
| ArrayPtr< String > | get_AbbreviatedMonthNames () const |
| | Gets abbreviated month names. More...
|
| |
| void | set_AbbreviatedMonthNames (const ArrayPtr< String > &value) |
| | Sets abbreviated month names. More...
|
| |
| SharedPtr< Calendar > | get_Calendar () const |
| | Gets calendar associated with formatter. More...
|
| |
| void | set_Calendar (const SharedPtr< Calendar > &value) |
| | Sets calendar associated with formatter. More...
|
| |
| CalendarWeekRule | get_CalendarWeekRule () const |
| | Gets calendar week rule associated with formatter. More...
|
| |
| void | set_CalendarWeekRule (CalendarWeekRule value) |
| | Sets calendar week rule associated with formatter. More...
|
| |
| ArrayPtr< String > | get_DayNames () const |
| | Gets day names. More...
|
| |
| void | set_DayNames (const ArrayPtr< String > &value) |
| | Sets day names. More...
|
| |
| DayOfWeek | get_FirstDayOfWeek () const |
| | Gets first day of week. More...
|
| |
| void | set_FirstDayOfWeek (DayOfWeek value) |
| | Sets first day of week. More...
|
| |
| String | get_FullDateTimePattern () const |
| | Gets full date and time pattern. More...
|
| |
| void | set_FullDateTimePattern (const String &value) |
| | Sets full date and time pattern. More...
|
| |
| String | get_MonthDayPattern () const |
| | Gets month day pattern. More...
|
| |
| void | set_MonthDayPattern (const String &value) |
| | Sets month day pattern. More...
|
| |
| ArrayPtr< String > | get_MonthGenitiveNames () const |
| | Gets month names in genitive form. More...
|
| |
| void | set_MonthGenitiveNames (const ArrayPtr< String > &value) |
| | Sets month names in genitive form. More...
|
| |
| ArrayPtr< String > | get_MonthNames () const |
| | Gets month names. More...
|
| |
| void | set_MonthNames (const ArrayPtr< String > &value) |
| | Sets month names. More...
|
| |
| String | get_RFC1123Pattern () const |
| | Gets RFC1123 pattern. More...
|
| |
| ArrayPtr< String > | get_ShortestDayNames () const |
| | Gets shortest day names possible. More...
|
| |
| void | set_ShortestDayNames (const ArrayPtr< String > &value) |
| | Sets shortest day names possible. More...
|
| |
| String | get_SortableDateTimePattern () const |
| | Gets sortable date and time pattern. More...
|
| |
| String | get_UniversalSortableDateTimePattern () const |
| | Gets universal sortable date and time pattern. More...
|
| |
| String | get_YearMonthPattern () const |
| | Gets year and month pattern. More...
|
| |
| void | set_YearMonthPattern (const String &value) |
| | Sets year and month pattern. More...
|
| |
| String | GetAbbreviatedDayName (DayOfWeek day_of_week) const |
| | Gets abbreviated week day name. More...
|
| |
| String | GetAbbreviatedEraName (int era) const |
| | Gets abbreviated era name. More...
|
| |
| String | GetAbbreviatedMonthName (int month) const |
| | Gets abbreviated month name. More...
|
| |
| String | GetDayName (DayOfWeek day_of_week) const |
| | Gets week day name. More...
|
| |
| int | GetEra (const String &era_name) const |
| | Gets era by name. More...
|
| |
| String | GetEraName (int era) const |
| | Gets era name. More...
|
| |
| String | GetMonthName (int month) const |
| | Gets month name. More...
|
| |
| String | GetMonthGenitiveName (int month) const |
| | Gets genitive month name. More...
|
| |
| String | GetLeapYearMonthName (int month) const |
| | Gets leap-year month name. More...
|
| |
| String | get_NativeCalendarName () const |
| | Gets native calendar name if available. More...
|
| |
| ArrayPtr< String > | GetAllDateTimePatterns () const |
| | Gets all patterns in which date and time values can be formatted. More...
|
| |
| ArrayPtr< String > | GetAllDateTimePatterns (char16_t format) const |
| | Gets all patterns in which date and time values can be formatted using specified format string. More...
|
| |
| void | SetAllDateTimePatterns (const ArrayPtr< String > &patterns, char16_t format) |
| | Sets patterns for the specified format. More...
|
| |
| String | GetShortestDayName (DayOfWeek day_of_week) const |
| | Gets shortes name for the specified day of week. More...
|
| |
| DateTimeFormatInfo & | operator= (const DateTimeFormatInfo &)=delete |
| |
| | Object () |
| | Creates object. Initializes all internal data structures. More...
|
| |
| virtual | ~Object () |
| | Destroys object. Frees all internal data structures. More...
|
| |
| | Object (Object const &x) |
| | Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
| |
| Object & | operator= (Object const &x) |
| | Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
| |
| Object * | SharedRefAdded () |
| | Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
| |
| int | SharedRefRemovedSafe () |
| | Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
| |
| int | RemovedSharedRefs (int count) |
| | Decreases shared reference count by specified value. More...
|
| |
| Detail::SmartPtrCounter * | WeakRefAdded () |
| | Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
| |
| void | WeakRefRemoved () |
| | Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
| |
| Detail::SmartPtrCounter * | GetCounter () |
| | Gets reference counter data structure associated with the object. More...
|
| |
| int | SharedCount () const |
| | Gets current value of shared reference counter. More...
|
| |
| void | Lock () |
| | Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
| |
| void | Unlock () |
| | Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
| |
| virtual bool | Equals (ptr obj) |
| | Compares objects using C# Object.Equals semantics. More...
|
| |
| virtual int32_t | GetHashCode () const |
| | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
| |
| virtual String | ToString () const |
| | Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
| |
| virtual ptr | MemberwiseClone () const |
| | Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
| |
| virtual const TypeInfo & | GetType () const |
| | Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
| |
| virtual bool | Is (const TypeInfo &targetType) const |
| | Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
| |
| virtual void | SetTemplateWeakPtr (uint32_t argument) |
| | Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
|
| |
| virtual bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| | For internal purposes only. More...
|
| |
| template<> |
| bool | ReferenceEquals (String const &str, std::nullptr_t) |
| | Specialization of Object::ReferenceEquals for case of string and nullptr. More...
|
| |
| template<> |
| bool | ReferenceEquals (String const &str1, String const &str2) |
| | Specialization of Object::ReferenceEquals for case of strings. More...
|
| |
| virtual SharedPtr< Object > | GetFormat (const TypeInfo &formatType)=0 |
| | Returns an object that provides formatting services for the specified type. More...
|
| |
| virtual System::SharedPtr< System::Object > | Clone ()=0 |
| | Creates a copy of the current object and returns a shared pointer to it. More...
|
| |
|
| static const DateTimeFormatInfoPtr & | get_InvariantInfo () |
| | Gets invariant date and time formatter. More...
|
| |
| static DateTimeFormatInfoPtr | get_CurrentInfo () |
| | Gets current thread's date and time formatter. More...
|
| |
| static DateTimeFormatInfoPtr | GetInstance (const IFormatProviderPtr &provider) |
| | Gets formatter associated with format provider. More...
|
| |
| static DateTimeFormatInfoPtr | ReadOnly (const DateTimeFormatInfoPtr &info) |
| | Gets read-only version of formatter. More...
|
| |
| static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
| | Compares objects by reference. More...
|
| |
| template<typename T > |
| static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
| | Compares objects by reference. More...
|
| |
| template<typename T > |
| static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
| | Reference-compares value type object with nullptr. More...
|
| |
| template<typename T1 , typename T2 > |
| static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| | Compares reference type objects in C# style. More...
|
| |
| template<typename T1 , typename T2 > |
| static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| | Compares value type objects in C# style. More...
|
| |
| static const TypeInfo & | Type () |
| | Implements C# typeof(System.Object) construct. More...
|
| |
| template<> |
| bool | Equals (float const &objA, float const &objB) |
| | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
| |
| template<> |
| bool | Equals (double const &objA, double const &objB) |
| | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
| |
Set of date and time formatting parameters. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.