Holds information on how to format numbers. Setter operations are only enabled on non-read-only objects. 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...
|
| | NumberFormatInfo () |
| | Default constructor (invariant NumberFormatInfo). More...
|
| |
| bool | get_IsReadOnly () const |
| | Checks if format is read-only. More...
|
| |
| SharedPtr< Object > | Clone () override |
| | Clones format info. More...
|
| |
| String | get_NumberDecimalSeparator () const |
| | Gets decimal separator. More...
|
| |
| void | set_NumberDecimalSeparator (const String &value) |
| | Sets decimal separator. More...
|
| |
| int | get_NumberDecimalDigits () const |
| | Gets number of decimal digits. More...
|
| |
| void | set_NumberDecimalDigits (int value) |
| | Sets number of decimal digits. More...
|
| |
| String | get_NumberGroupSeparator () const |
| | Gets number group separator. More...
|
| |
| void | set_NumberGroupSeparator (const String &value) |
| | Sets number group separator. More...
|
| |
| String | get_PercentSymbol () const |
| | Gets percent symbol. More...
|
| |
| void | set_PercentSymbol (const String &value) |
| | Sets percent symbol. More...
|
| |
| String | get_PerMilleSymbol () const |
| | Gets permille symbol. More...
|
| |
| void | set_PerMilleSymbol (const String &value) |
| | Sets permille symbol. More...
|
| |
| String | get_CurrencySymbol () const |
| | Gets currency symbol. More...
|
| |
| void | set_CurrencySymbol (const String &value) |
| | Sets currency symbol. More...
|
| |
| String | get_PositiveSign () const |
| | Gets positive sign. More...
|
| |
| void | set_PositiveSign (const String &value) |
| | Sets positive sign. More...
|
| |
| String | get_NegativeSign () const |
| | Gets negative sign. More...
|
| |
| void | set_NegativeSign (const String &value) |
| | Sets negative sign. More...
|
| |
| String | get_CurrencyGroupSeparator () const |
| | Gets currency group separator. More...
|
| |
| void | set_CurrencyGroupSeparator (const String &value) |
| | Sets currency group separator. More...
|
| |
| String | get_CurrencyDecimalSeparator () const |
| | Gets currency decimal separator. More...
|
| |
| void | set_CurrencyDecimalSeparator (const String &value) |
| | Sets currency decimal separator. More...
|
| |
| int | get_CurrencyDecimalDigits () const |
| | Gets number of currency decimal digits. More...
|
| |
| void | set_CurrencyDecimalDigits (int value) |
| | Sets number of currency decimal digits. More...
|
| |
| ArrayPtr< int > | get_CurrencyGroupSizes () const |
| | Gets number of currency decimal digits per group. More...
|
| |
| void | set_CurrencyGroupSizes (const ArrayPtr< int > &value) |
| | Sets number of currency decimal digits per group. More...
|
| |
| int | get_CurrencyNegativePattern () const |
| | Gets currency negative pattern. More...
|
| |
| void | set_CurrencyNegativePattern (int value) |
| | Sets currency negative pattern. More...
|
| |
| int | get_CurrencyPositivePattern () const |
| | Gets currency positive pattern. More...
|
| |
| void | set_CurrencyPositivePattern (int value) |
| | Sets currency positive pattern. More...
|
| |
| String | get_NaNSymbol () const |
| | Gets Not-a-Number symbol. More...
|
| |
| void | set_NaNSymbol (const String &value) |
| | Sets Not-a-Number symbol. More...
|
| |
| String | get_PositiveInfinitySymbol () const |
| | Gets positive infinity symbol. More...
|
| |
| void | set_PositiveInfinitySymbol (const String &value) |
| | Sets positive infinity symbol. More...
|
| |
| String | get_NegativeInfinitySymbol () const |
| | Gets negative infinity symbol. More...
|
| |
| void | set_NegativeInfinitySymbol (const String &value) |
| | Sets negative infinity symbol. More...
|
| |
| ArrayPtr< int > | get_NumberGroupSizes () const |
| | Gets numbers of digits per group. More...
|
| |
| void | set_NumberGroupSizes (const ArrayPtr< int > &value) |
| | Sets numbers of digits per group. More...
|
| |
| int | get_NumberNegativePattern () const |
| | Gets number negative pattern. More...
|
| |
| void | set_NumberNegativePattern (int value) |
| | Sets number negative pattern. More...
|
| |
| int | get_PercentDecimalDigits () const |
| | Gets number of decimal places in percent values. More...
|
| |
| void | set_PercentDecimalDigits (int value) |
| | Sets number of decimal places in percent values. More...
|
| |
| String | get_PercentDecimalSeparator () const |
| | Gets decimal separator in percent values. More...
|
| |
| void | set_PercentDecimalSeparator (const String &value) |
| | Sets decimal separator in percent values. More...
|
| |
| String | get_PercentGroupSeparator () const |
| | Gets group separator in percent values. More...
|
| |
| void | set_PercentGroupSeparator (const String &value) |
| | Sets group separator in percent values. More...
|
| |
| ArrayPtr< int > | get_PercentGroupSizes () const |
| | Gets numbers of digits per percent value group. More...
|
| |
| void | set_PercentGroupSizes (const ArrayPtr< int > &value) |
| | Sets numbers of digits per percent value group. More...
|
| |
| int | get_PercentNegativePattern () const |
| | Gets percent negative pattern. More...
|
| |
| void | set_PercentNegativePattern (int value) |
| | Sets percent negative pattern. More...
|
| |
| int | get_PercentPositivePattern () const |
| | Gets percent positive pattern. More...
|
| |
| void | set_PercentPositivePattern (int value) |
| | Sets percent positive pattern. More...
|
| |
| ArrayPtr< String > | get_NativeDigits () const |
| | Gets digits symbols (0 through 9). More...
|
| |
| void | set_NativeDigits (const ArrayPtr< String > &value) |
| | Sets digits symbols (0 through 9). More...
|
| |
| DigitShapes | get_DigitSubstitution () const |
| | Gets a value that specifies how to display shape of a digit. More...
|
| |
| void | set_DigitSubstitution (DigitShapes value) |
| | Sets a value that specifies how to display shape of a digit. More...
|
| |
| SharedPtr< Object > | GetFormat (const TypeInfo &format_type) override |
| | Gets formatter of specific type. More...
|
| |
| NumberFormatInfo & | operator= (const NumberFormatInfo &)=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 NumberFormatInfoPtr | get_CurrentInfo () |
| | Gets current thread culture-defined number format info. More...
|
| |
| static const NumberFormatInfoPtr & | get_InvariantInfo () |
| | Gets invariant culture-defined number format info. More...
|
| |
| static NumberFormatInfoPtr | GetInstance (const IFormatProviderPtr &provider) |
| | Gets formatter associated with format provider. More...
|
| |
| static NumberFormatInfoPtr | ReadOnly (NumberFormatInfoPtr nfi) |
| | 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...
|
| |
Holds information on how to format numbers. Setter operations are only enabled on non-read-only objects. 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.