System::String::Compare 메서드

String::Compare(const String&, const String&, bool, const SharedPtr<System::Globalization::CultureInfo>&) method

Less-equal-greater-연산자로 두 문자열을 비교합니다.

static int System::String::Compare(const String &strA, const String &strB, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &ci)
매개변수형식설명
strAconst String&비교할 첫 번째 문자열.
strBconst String&비교할 두 번째 문자열.
ignoreCasebool비교가 대소문자를 구분하지 않는지 여부를 지정합니다.
ciconst SharedPtr<System::Globalization::CultureInfo>&비교에 사용할 문화권.

ReturnValue

첫 번째 부분 문자열이 두 번째보다 작으면 음수, 일치하면 0, 그 외에는 양수 값을 반환합니다.

또 보기

String::Compare(const String&, const String&, bool) method

Less-equal-greater-연산자로 두 문자열을 비교합니다.

static int System::String::Compare(const String &strA, const String &strB, bool ignoreCase=false)
매개변수형식설명
strAconst String&비교할 첫 번째 문자열.
strBconst String&비교할 두 번째 문자열.
ignoreCasebool비교가 대소문자를 구분하지 않는지 여부를 지정합니다.

ReturnValue

첫 번째 부분 문자열이 두 번째보다 작으면 음수, 일치하면 0, 그 외에는 양수 값을 반환합니다.

또 보기

String::Compare(const String&, const String&, System::StringComparison) method

Less-equal-greater-연산자로 두 문자열을 비교합니다.

static int System::String::Compare(const String &strA, const String &strB, System::StringComparison comparison_type)
매개변수형식설명
strAconst String&비교할 첫 번째 문자열.
strBconst String&비교할 두 번째 문자열.
comparison_typeSystem::StringComparisonComparison 모드.

ReturnValue

첫 번째 부분 문자열이 두 번째보다 작으면 음수, 일치하면 0, 그 외에는 양수 값을 반환합니다.

또 보기

String::Compare(const String&, int, const String&, int, int, bool, const SharedPtr<System::Globalization::CultureInfo>&) method

Less-equal-greater-연산자로 두 서브스트링을 비교합니다.

static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &ci)
매개변수형식설명
strAconst String&비교할 첫 번째 문자열.
indexAint첫 번째 문자열 부분 문자열의 시작.
strBconst String&비교할 두 번째 문자열.
indexBint두 번째 문자열 부분 문자열의 시작.
길이int비교할 문자 수.
ignoreCasebool비교가 대소문자를 구분하지 않는지 여부를 지정합니다.
ciconst SharedPtr<System::Globalization::CultureInfo>&비교에 사용할 문화권.

ReturnValue

첫 번째 부분 문자열이 두 번째보다 작으면 음수, 일치하면 0, 그 외에는 양수 값을 반환합니다.

또 보기

String::Compare(const String&, int, const String&, int, int, bool) method

Less-equal-greater-연산자로 두 서브스트링을 비교합니다.

static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, bool ignoreCase=false)
매개변수형식설명
strAconst String&비교할 첫 번째 문자열.
indexAint첫 번째 문자열 부분 문자열의 시작.
strBconst String&비교할 두 번째 문자열.
indexBint두 번째 문자열 부분 문자열의 시작.
길이int비교할 문자 수.
ignoreCasebool비교가 대소문자를 구분하지 않는지 여부를 지정합니다.

ReturnValue

첫 번째 부분 문자열이 두 번째보다 작으면 음수, 일치하면 0, 그 외에는 양수 값을 반환합니다.

또 보기

String::Compare(const String&, int, const String&, int, int, System::StringComparison) method

Less-equal-greater-연산자로 두 문자열을 비교합니다.

static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, System::StringComparison comparison_type)
매개변수형식설명
strAconst String&비교할 첫 번째 문자열.
indexAint첫 번째 문자열 부분 문자열의 시작.
strBconst String&비교할 두 번째 문자열.
indexBint두 번째 문자열 부분 문자열의 시작.
길이int비교할 문자 수.
comparison_typeSystem::StringComparisonComparison 모드.

ReturnValue

첫 번째 부분 문자열이 두 번째보다 작으면 음수, 일치하면 0, 그 외에는 양수 값을 반환합니다.

또 보기