System::StringComparer 클래스

StringComparer class

다양한 비교 모드를 사용하여 문자열을 비교합니다. 이 클래스의 객체는 System::MakeObject() 함수를 사용하여 할당해야 합니다. 스택에 직접 생성하거나 operator new를 사용하여 인스턴스를 만들면 런타임 오류 및/또는 어설션 오류가 발생합니다. 항상 이 클래스를 System::SmartPtr 포인터로 감싸고, 해당 포인터를 함수 인수로 전달하십시오.

class StringComparer : public virtual System::Object,
                       public System::Collections::Generic::IComparer<String>,
                       public System::Collections::Generic::IEqualityComparer<String>

메서드

메서드설명
Compare(args_type, args_type) const override현재 설정을 사용하여 두 문자열을 비교합니다.
static Create(const System::SharedPtr<System::Globalization::CultureInfo>&, bool)문화별 비교자를 생성합니다.
Equals(String, String) const override현재 설정을 사용하여 두 문자열이 같은지 확인합니다.
static get_CurrentCulture()현재 문화 비교자 싱글톤.
static get_CurrentCultureIgnoreCase()현재 문화 대소문자 무시 비교자 싱글톤.
static get_InvariantCulture()불변 문화 비교자 싱글톤.
static get_InvariantCultureIgnoreCase()불변 문화 대소문자 무시 비교자 싱글톤.
static get_Ordinal()Ordinal 비교자 싱글톤.
static get_OrdinalIgnoreCase()Ordinal 대소문자 무시 비교자 싱글톤.
GetHashCode(String) const override문자열의 해시 코드를 가져옵니다.

Typedefs

타입 정의설명
args_typeRTTI 정보.

또 보기