StringPrototype.localeCompare(Object, Object) 메서드

정의

지정된 두 문자열을 비교하고 해당 문자열 간의 어휘 관계를 나타내는 정수(integer)를 반환합니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 static int localeCompare(System::Object ^ thisob, System::Object ^ thatob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_localeCompare)]
public static int localeCompare(object thisob, object thatob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_localeCompare)>]
static member localeCompare : obj * obj -> int
Public Shared Function localeCompare (thisob As Object, thatob As Object) As Integer

매개 변수

thisob
Object

이 메서드가 동작하는 개체입니다.

thatob
Object

비교할 문자열입니다 thisob.

반품

0보다 작으면 thisob 음수 값이고, 같으면 thisobthatob0이고, 양수 값은 1보다 thatob큰 경우 thisob 입니다.thatob

특성

적용 대상

추가 정보