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 ASPOSECPP_SHARED_API String | get_Name () const |
| Gets name of the culture associated with comparer. More...
|
|
ASPOSECPP_SHARED_API int | get_LCID () const |
| Gets LCID of the culture associated with comparer. More...
|
|
ASPOSECPP_SHARED_API SortVersionPtr | get_Version () const |
| Gets information about sort version. More...
|
|
virtual ASPOSECPP_SHARED_API int | Compare (const String &string1, const String &string2) const |
| Compares strings. Not implemented. More...
|
|
virtual ASPOSECPP_SHARED_API int | Compare (const String &a, const String &b, CompareOptions options) const |
| Compares strings. Only Ordinal and OrdinalIgnoreCase modes are supported. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API SortKeyPtr | GetSortKey (const String &value, CompareOptions options) const |
| Gets SortKey object for the specified string using specified compare options. More...
|
|
virtual ASPOSECPP_SHARED_API SortKeyPtr | GetSortKey (const String &value) const |
| Gets SortKey object for the specified string. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index, int count) const |
| Looks for substring. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index, CompareOptions options) const |
| Looks for substring. Only Ordinal mode is supported. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index) const |
| Looks for substring. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value) const |
| Looks for the specified character. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value) const |
| Looks for substring. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, int start_index, int count) const |
| Looks for the specified character. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, int start_index) const |
| Looks for the specified character. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, CompareOptions options) const |
| Looks for substring. Only Ordinal mode is supported. More...
|
|
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, CompareOptions options) const |
| Looks for the specified character. Only Ordinal mode is supported. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | IsPrefix (const String &source, const String &prefix) const |
| Checks if the specified string starts with the specified prefix. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | IsSuffix (const String &source, const String &suffix) const |
| Checks if the specified string ends with the specified suffix. More...
|
|
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value) const |
| Searches last occurrence of the specified substring. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, int start_index, int count) const |
| Searches last occurrence of the specified string. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, int start_index) const |
| Searches last occurrence of the specified string. More...
|
|
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, int start_index) const |
| Searches last occurrence of the specified character. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value) const |
| Searches last occurrence of the specified character. More...
|
|
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, int start_index, int count) const |
| Searches last occurrence of the specified character. More...
|
|
virtual ASPOSECPP_SHARED_API int | GetHashCode (const String &value, CompareOptions options) const |
| Gets string hash code based on specified comparison options. More...
|
|
ASPOSECPP_SHARED_API bool | Equals (SharedPtr< Object > other) override |
|
ASPOSECPP_SHARED_API int | GetHashCode () const override |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
ASPOSECPP_SHARED_API String | ToString () const override |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
ASPOSECPP_SHARED_API | Object () |
| Creates object. Initializes all internal data structures. More...
|
|
virtual ASPOSECPP_SHARED_API | ~Object () |
| Destroys object. Frees all internal data structures. More...
|
|
ASPOSECPP_SHARED_API | 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...
|
|
ASPOSECPP_SHARED_API void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
|
ASPOSECPP_SHARED_API void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
|
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More...
|
|
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
|
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only. 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...
|
|
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...
|
|