Inherits System::Object.
Public Member Functions | |
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 |
virtual ASPOSECPP_SHARED_API int | Compare (const String &a, const String &b, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | Compare (const String &string1, int offset1, int length1, const String &string2, int offset2, int length2) const |
virtual ASPOSECPP_SHARED_API int | Compare (const String &string1, int offset1, const String &string2, int offset2, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | Compare (const String &string1, int offset1, const String &string2, int offset2) const |
virtual ASPOSECPP_SHARED_API int | Compare (const String &string1, int offset1, int length1, const String &string2, int offset2, int length2, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API SortKeyPtr | GetSortKey (const String &value, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API SortKeyPtr | GetSortKey (const String &value) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index, int count) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index, int count, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, int start_index, int count, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, int start_index) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, int start_index, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, int start_index, int count) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, int start_index) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, const String &value, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | IndexOf (const String &source, char16_t value, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API bool | IsPrefix (const String &source, const String &prefix, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API bool | IsPrefix (const String &source, const String &prefix) const |
virtual ASPOSECPP_SHARED_API bool | IsSuffix (const String &source, const String &suffix, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API bool | IsSuffix (const String &source, const String &suffix) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, int start_index, int count, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, int start_index, int count, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, int start_index, int count) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, int start_index, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, int start_index, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, int start_index) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, int start_index) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, const String &value, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, CompareOptions options) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value) const |
virtual ASPOSECPP_SHARED_API int | LastIndexOf (const String &source, char16_t value, int start_index, int count) const |
virtual ASPOSECPP_SHARED_API int | GetHashCode (const String &value, CompareOptions options) const |
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... | |
Public Member Functions inherited from System::Object | |
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) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API CompareInfoPtr | GetCompareInfo (int culture, const SharedPtr< Reflection::Assembly > &assembly) |
static ASPOSECPP_SHARED_API CompareInfoPtr | GetCompareInfo (const String &name, const SharedPtr< Reflection::Assembly > &assembly) |
static ASPOSECPP_SHARED_API CompareInfoPtr | GetCompareInfo (int culture) |
static ASPOSECPP_SHARED_API CompareInfoPtr | GetCompareInfo (const String &name) |
static ASPOSECPP_SHARED_API bool | IsSortable (char16_t ch) |
static ASPOSECPP_SHARED_API bool | IsSortable (const String &text) |
Static Public Member Functions inherited from System::Object | |
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... | |
Additional Inherited Members | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
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.
|
delete |
RTTI information.
|
virtual |
Compares strings. Not implemented.
string1 | LHS string. |
string2 | RHS string. |
|
virtual |
Compares strings. Only Ordinal and OrdinalIgnoreCase modes are supported.
a | LHS string. |
b | RHS string. |
options | String comparison type. |
|
virtual |
Compares a section of one string with a section of second string. Not implemented.
string1 | First string. |
offset1 | Start index of characters in string1 . |
length1 | Number of characters in string1 to compare. |
string2 | Second string. |
offset2 | Start index of characters in string2 . |
length2 | Number of characters in string2 to compare. |
|
virtual |
Compares the end section of one string with the end section of second string using string comparison methods. Not implemented.
string1 | First string. |
offset1 | Start index of characters in string1 . |
string2 | Second string. |
offset2 | Start index of characters in string2 . |
options | String comparison options. |
|
virtual |
Compares the end section of one string with the end section of second string. Not implemented.
string1 | First string. |
offset1 | Start index of characters in string1 . |
string2 | Second string. |
offset2 | Start index of characters in string2 . |
|
virtual |
Compares a section of one string with a section of second string using string comparison methods. Not implemented.
string1 | First string. |
offset1 | Start index of characters in string1 . |
length1 | Number of characters in string1 to compare. |
string2 | Second string. |
offset2 | Start index of characters in string2 . |
length2 | Number of characters in string2 to compare. |
options | String comparison options. |
|
override |
ASPOSECPP_SHARED_API int System::Globalization::CompareInfo::get_LCID | ( | ) | const |
Gets LCID of the culture associated with comparer.
|
virtual |
Gets name of the culture associated with comparer.
ASPOSECPP_SHARED_API SortVersionPtr System::Globalization::CompareInfo::get_Version | ( | ) | const |
Gets information about sort version.
|
static |
Gets CompareInfo associated with the specified culture and using string comparison methods in the specified assembly.
culture | Culture identifier (LCID). |
assembly | Assembly that contains string comparison methods. |
|
static |
Gets CompareInfo associated with the specified culture and using string comparison methods in the specified assembly.
name | Culture name. |
assembly | Assembly that contains string comparison methods. |
|
static |
Gets CompareInfo associated with the specified culture.
culture | Culture identifier (LCID). |
|
static |
Gets CompareInfo associated with the specified culture.
name | Culture name. |
|
virtual |
Gets string hash code based on specified comparison options.
value | Input string. |
options | String comparsion options. |
|
overridevirtual |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
Reimplemented from System::Object.
|
virtual |
|
virtual |
|
virtual |
Looks for substring.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
|
virtual |
Looks for substring. Only Ordinal mode is supported.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
options | Lookup options. |
|
virtual |
Looks for substring. Only Ordinal mode is supported.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
options | Lookup options. |
|
virtual |
Looks for the specified character. Only Ordinal mode is supported.
source | Source string. |
value | Character. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
options | Lookup options. |
|
virtual |
Looks for substring.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
|
virtual |
Looks for the specified character.
source | Source string. |
value | Character. |
|
virtual |
Looks for substring.
source | Source string. |
value | Lookup value. |
|
virtual |
Looks for the specified character. Only Ordinal mode is supported.
source | Source string. |
value | Character. |
start_index | Lookup start index in source string. |
options | Lookup options. |
|
virtual |
Looks for the specified character.
source | Source string. |
value | Character. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
|
virtual |
Looks for the specified character.
source | Source string. |
value | Character. |
start_index | Lookup start index in source string. |
|
virtual |
Looks for substring. Only Ordinal mode is supported.
source | Source string. |
value | Lookup value. |
options | Lookup options. |
|
virtual |
Looks for the specified character. Only Ordinal mode is supported.
source | Source string. |
value | Character. |
options | Lookup options. |
|
virtual |
Checks if the specified string starts with the specified prefix using the specified compare options.
source | Source string. |
prefix | Prefix string. |
options | Compare options. |
|
virtual |
Checks if the specified string starts with the specified prefix.
source | Source string. |
prefix | Prefix string. |
|
static |
Checks whether a specified character is sortable.
ch | Unicode character. |
ch
is sortable; otherwise false.
|
static |
Checks whether a specified string is sortable.
text | A string. |
text
is not empty and all characters in text
are sortable; otherwise false.
|
virtual |
Checks if the specified string ends with the specified suffix using the specified compare options.
source | Source string. |
suffix | Suffix string. |
options | Compare options. |
|
virtual |
Checks if the specified string ends with the specified suffix.
source | Source string. |
suffix | Suffix string. |
|
virtual |
Searches last occurrence of the specified substring.
source | Source string. |
value | Lookup value. |
|
virtual |
Searches last occurrence of the specified substring using the specified compare options.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
options | Compare options. |
|
virtual |
Searches last occurrence of the specified character using the specified compare options.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
options | Compare options. |
|
virtual |
Searches last occurrence of the specified string.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
|
virtual |
Searches last occurrence of the specified string using the specified compare options.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
options | Compare options. |
|
virtual |
Searches last occurrence of the specified character using the specified compare options.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
options | Compare options. |
|
virtual |
Searches last occurrence of the specified string.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
|
virtual |
Searches last occurrence of the specified character.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
|
virtual |
Searches last occurrence of the specified string using the specified compare options.
source | Source string. |
value | Lookup value. |
options | Compare options. |
|
virtual |
Searches last occurrence of the specified character using the specified compare options.
source | Source string. |
value | Lookup value. |
options | Compare options. |
|
virtual |
Searches last occurrence of the specified character.
source | Source string. |
value | Lookup value. |
|
virtual |
Searches last occurrence of the specified character.
source | Source string. |
value | Lookup value. |
start_index | Lookup start index in source string. |
count | Number of characters in source string. |
|
delete |
|
overridevirtual |
Analog of C# Object.ToString() method. Enables converting custom objects to string.
Reimplemented from System::Object.