StringPrototype.localeCompare(Object, Object) メソッド

定義

指定した 2 つの文字列を比較し、辞書式順序での両者の関係を示す整数を返します。

この 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 と比較する対象の文字列。

戻り値

thisobthatob より小さい場合は負の値。thisobthatob と等しい場合はゼロ。thisobthatob より大きい場合は正の値。

属性

適用対象

こちらもご覧ください