System::Globalization::CompareInfo class
Contents
[
Hide
]CompareInfo class
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.
class CompareInfo : public virtual System::Object
Methods
Method | Description |
---|---|
virtual Compare(const String&, const String&) const | Compares strings. Not implemented. |
virtual Compare(const String&, const String&, CompareOptions) const | Compares strings. Only Ordinal and OrdinalIgnoreCase modes are supported. |
virtual Compare(const String&, int, int, const String&, int, int) const | Compares a section of one string with a section of second string. Not implemented. |
virtual Compare(const String&, int, const String&, int, CompareOptions) const | Compares the end section of one string with the end section of second string using string comparison methods. Not implemented. |
virtual Compare(const String&, int, const String&, int) const | Compares the end section of one string with the end section of second string. Not implemented. |
virtual Compare(const String&, int, int, const String&, int, int, CompareOptions) const | Compares a section of one string with a section of second string using string comparison methods. Not implemented. |
CompareInfo(const CompareInfo&) | RTTI information. |
Equals(SharedPtr<Object>) override | |
get_LCID() const | Gets LCID of the culture associated with comparer. |
virtual get_Name() const | Gets name of the culture associated with comparer. |
get_Version() const | Gets information about sort version. |
static GetCompareInfo(int, const SharedPtr<Reflection::Assembly>&) | Gets CompareInfo associated with the specified culture and using string comparison methods in the specified assembly. |
static GetCompareInfo(const String&, const SharedPtr<Reflection::Assembly>&) | Gets CompareInfo associated with the specified culture and using string comparison methods in the specified assembly. |
static GetCompareInfo(int) | Gets CompareInfo associated with the specified culture. |
static GetCompareInfo(const String&) | Gets CompareInfo associated with the specified culture. |
virtual GetHashCode(const String&, CompareOptions) const | Gets string hash code based on specified comparison options. |
GetHashCode() const override | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. |
virtual GetSortKey(const String&, CompareOptions) const | Gets SortKey object for the specified string using specified compare options. |
virtual GetSortKey(const String&) const | Gets SortKey object for the specified string. |
virtual IndexOf(const String&, const String&, int, int) const | Looks for substring. |
virtual IndexOf(const String&, const String&, int, CompareOptions) const | Looks for substring. Only Ordinal mode is supported. |
virtual IndexOf(const String&, const String&, int, int, CompareOptions) const | Looks for substring. Only Ordinal mode is supported. |
virtual IndexOf(const String&, char16_t, int, int, CompareOptions) const | Looks for the specified character. Only Ordinal mode is supported. |
virtual IndexOf(const String&, const String&, int) const | Looks for substring. |
virtual IndexOf(const String&, char16_t) const | Looks for the specified character. |
virtual IndexOf(const String&, const String&) const | Looks for substring. |
virtual IndexOf(const String&, char16_t, int, CompareOptions) const | Looks for the specified character. Only Ordinal mode is supported. |
virtual IndexOf(const String&, char16_t, int, int) const | Looks for the specified character. |
virtual IndexOf(const String&, char16_t, int) const | Looks for the specified character. |
virtual IndexOf(const String&, const String&, CompareOptions) const | Looks for substring. Only Ordinal mode is supported. |
virtual IndexOf(const String&, char16_t, CompareOptions) const | Looks for the specified character. Only Ordinal mode is supported. |
virtual IsPrefix(const String&, const String&, CompareOptions) const | Checks if the specified string starts with the specified prefix using the specified compare options. |
virtual IsPrefix(const String&, const String&) const | Checks if the specified string starts with the specified prefix. |
static IsSortable(char16_t) | Checks whether a specified character is sortable. |
static IsSortable(const String&) | Checks whether a specified string is sortable. |
virtual IsSuffix(const String&, const String&, CompareOptions) const | Checks if the specified string ends with the specified suffix using the specified compare options. |
virtual IsSuffix(const String&, const String&) const | Checks if the specified string ends with the specified suffix. |
virtual LastIndexOf(const String&, const String&) const | Searches last occurrence of the specified substring. |
virtual LastIndexOf(const String&, const String&, int, int, CompareOptions) const | Searches last occurrence of the specified substring using the specified compare options. |
virtual LastIndexOf(const String&, char16_t, int, int, CompareOptions) const | Searches last occurrence of the specified character using the specified compare options. |
virtual LastIndexOf(const String&, const String&, int, int) const | Searches last occurrence of the specified string. |
virtual LastIndexOf(const String&, const String&, int, CompareOptions) const | Searches last occurrence of the specified string using the specified compare options. |
virtual LastIndexOf(const String&, char16_t, int, CompareOptions) const | Searches last occurrence of the specified character using the specified compare options. |
virtual LastIndexOf(const String&, const String&, int) const | Searches last occurrence of the specified string. |
virtual LastIndexOf(const String&, char16_t, int) const | Searches last occurrence of the specified character. |
virtual LastIndexOf(const String&, const String&, CompareOptions) const | Searches last occurrence of the specified string using the specified compare options. |
virtual LastIndexOf(const String&, char16_t, CompareOptions) const | Searches last occurrence of the specified character using the specified compare options. |
virtual LastIndexOf(const String&, char16_t) const | Searches last occurrence of the specified character. |
virtual LastIndexOf(const String&, char16_t, int, int) const | Searches last occurrence of the specified character. |
operator=(const CompareInfo&) | |
ToString() const override | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
See Also
- Class Object
- Namespace System::Globalization
- Library Aspose.PDF for C++