Makes culture-sensitive string comparison. 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...
|
| CompareInfo (const CompareInfo &)=delete |
| RTTI information. More...
|
|
CompareInfo & | operator= (const CompareInfo &)=delete |
|
virtual String | get_Name () const |
| Gets name of the culture associated with comparer. More...
|
|
int | get_LCID () const |
| Gets LCID of the culture associated with comparer. More...
|
|
SortVersionPtr | get_Version () const |
| Gets information about sort version. More...
|
|
virtual int | Compare (const String &string1, const String &string2) const |
| Compares strings. Not implemented. More...
|
|
virtual int | Compare (const String &a, const String &b, CompareOptions options) const |
| Compares strings. Only Ordinal and OrdinalIgnoreCase modes are supported. More...
|
|
virtual int | Compare (const String &string1, int offset1, int length1, const String &string2, int offset2, int length2) const |
| Compares a section of one string with a section of second string. Not implemented. More...
|
|
virtual int | Compare (const String &string1, int offset1, const String &string2, int offset2, CompareOptions options) const |
| Compares the end section of one string with the end section of second string using string comparison methods. Not implemented. More...
|
|
virtual int | Compare (const String &string1, int offset1, const String &string2, int offset2) const |
| Compares the end section of one string with the end section of second string. Not implemented. More...
|
|
virtual int | Compare (const String &string1, int offset1, int length1, const String &string2, int offset2, int length2, CompareOptions options) const |
| Compares a section of one string with a section of second string using string comparison methods. Not implemented. More...
|
|
virtual SortKeyPtr | GetSortKey (const String &value, CompareOptions options) const |
| Gets SortKey object for the specified string using specified compare options. More...
|
|
virtual SortKeyPtr | GetSortKey (const String &value) const |
| Gets SortKey object for the specified string. More...
|
|
virtual int | IndexOf (const String &source, const String &value, int start_index, int count) const |
| Looks for substring. More...
|
|
virtual int | IndexOf (const String &source, const String &value, int start_index, CompareOptions options) const |
| Looks for substring. Only Ordinal mode is supported. More...
|
|
virtual int | IndexOf (const String &source, const String &value, int start_index, int count, CompareOptions options) const |
| Looks for substring. Only Ordinal mode is supported. More...
|
|
virtual int | IndexOf (const String &source, char16_t value, int start_index, int count, CompareOptions options) const |
| Looks for the specified character. Only Ordinal mode is supported. More...
|
|
virtual int | IndexOf (const String &source, const String &value, int start_index) const |
| Looks for substring. More...
|
|
virtual int | IndexOf (const String &source, char16_t value) const |
| Looks for the specified character. More...
|
|
virtual int | IndexOf (const String &source, const String &value) const |
| Looks for substring. More...
|
|
virtual int | IndexOf (const String &source, char16_t value, int start_index, CompareOptions options) const |
| Looks for the specified character. Only Ordinal mode is supported. More...
|
|
virtual int | IndexOf (const String &source, char16_t value, int start_index, int count) const |
| Looks for the specified character. More...
|
|
virtual int | IndexOf (const String &source, char16_t value, int start_index) const |
| Looks for the specified character. More...
|
|
virtual int | IndexOf (const String &source, const String &value, CompareOptions options) const |
| Looks for substring. Only Ordinal mode is supported. More...
|
|
virtual int | IndexOf (const String &source, char16_t value, CompareOptions options) const |
| Looks for the specified character. Only Ordinal mode is supported. More...
|
|
virtual bool | IsPrefix (const String &source, const String &prefix, CompareOptions options) const |
| Checks if the specified string starts with the specified prefix using the specified compare options. More...
|
|
virtual bool | IsPrefix (const String &source, const String &prefix) const |
| Checks if the specified string starts with the specified prefix. More...
|
|
virtual bool | IsSuffix (const String &source, const String &suffix, CompareOptions options) const |
| Checks if the specified string ends with the specified suffix using the specified compare options. More...
|
|
virtual bool | IsSuffix (const String &source, const String &suffix) const |
| Checks if the specified string ends with the specified suffix. More...
|
|
virtual int | LastIndexOf (const String &source, const String &value) const |
| Searches last occurrence of the specified substring. More...
|
|
virtual int | LastIndexOf (const String &source, const String &value, int start_index, int count, CompareOptions options) const |
| Searches last occurrence of the specified substring using the specified compare options. More...
|
|
virtual int | LastIndexOf (const String &source, char16_t value, int start_index, int count, CompareOptions options) const |
| Searches last occurrence of the specified character using the specified compare options. More...
|
|
virtual int | LastIndexOf (const String &source, const String &value, int start_index, int count) const |
| Searches last occurrence of the specified string. More...
|
|
virtual int | LastIndexOf (const String &source, const String &value, int start_index, CompareOptions options) const |
| Searches last occurrence of the specified string using the specified compare options. More...
|
|
virtual int | LastIndexOf (const String &source, char16_t value, int start_index, CompareOptions options) const |
| Searches last occurrence of the specified character using the specified compare options. More...
|
|
virtual int | LastIndexOf (const String &source, const String &value, int start_index) const |
| Searches last occurrence of the specified string. More...
|
|
virtual int | LastIndexOf (const String &source, char16_t value, int start_index) const |
| Searches last occurrence of the specified character. More...
|
|
virtual int | LastIndexOf (const String &source, const String &value, CompareOptions options) const |
| Searches last occurrence of the specified string using the specified compare options. More...
|
|
virtual int | LastIndexOf (const String &source, char16_t value, CompareOptions options) const |
| Searches last occurrence of the specified character using the specified compare options. More...
|
|
virtual int | LastIndexOf (const String &source, char16_t value) const |
| Searches last occurrence of the specified character. More...
|
|
virtual int | LastIndexOf (const String &source, char16_t value, int start_index, int count) const |
| Searches last occurrence of the specified character. More...
|
|
virtual int | GetHashCode (const String &value, CompareOptions options) const |
| Gets string hash code based on specified comparison options. More...
|
|
bool | Equals (SharedPtr< Object > other) override |
|
int | GetHashCode () const override |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
String | ToString () const override |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
| 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...
|
|
|
static CompareInfoPtr | GetCompareInfo (int culture, const SharedPtr< Reflection::Assembly > &assembly) |
| Gets CompareInfo associated with the specified culture and using string comparison methods in the specified assembly. More...
|
|
static CompareInfoPtr | GetCompareInfo (const String &name, const SharedPtr< Reflection::Assembly > &assembly) |
| Gets CompareInfo associated with the specified culture and using string comparison methods in the specified assembly. More...
|
|
static CompareInfoPtr | GetCompareInfo (int culture) |
| Gets CompareInfo associated with the specified culture. More...
|
|
static CompareInfoPtr | GetCompareInfo (const String &name) |
| Gets CompareInfo associated with the specified culture. More...
|
|
static bool | IsSortable (char16_t ch) |
| Checks whether a specified character is sortable. More...
|
|
static bool | IsSortable (const String &text) |
| Checks whether a specified string is sortable. 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...
|
|