Bagikan melalui


NSString.Compare Metode

Definisi

Overload

Compare(NSString)

Secara leksikal membandingkan ini dengan string yang ditentukan.

Compare(NSString, NSStringCompareOptions)
Compare(NSString, NSStringCompareOptions, NSRange)
Compare(NSString, NSStringCompareOptions, NSRange, NSLocale)

Compare(NSString)

Secara leksikal membandingkan ini dengan string yang ditentukan.

[Foundation.Export("compare:")]
public virtual Foundation.NSComparisonResult Compare (Foundation.NSString aString);
abstract member Compare : Foundation.NSString -> Foundation.NSComparisonResult
override this.Compare : Foundation.NSString -> Foundation.NSComparisonResult

Parameter

aString
NSString

String yang dibandingkan dengan.

Mengembalikan

Atribut

Berlaku untuk

Compare(NSString, NSStringCompareOptions)

[Foundation.Export("compare:options:")]
public virtual Foundation.NSComparisonResult Compare (Foundation.NSString aString, Foundation.NSStringCompareOptions mask);
abstract member Compare : Foundation.NSString * Foundation.NSStringCompareOptions -> Foundation.NSComparisonResult
override this.Compare : Foundation.NSString * Foundation.NSStringCompareOptions -> Foundation.NSComparisonResult

Parameter

aString
NSString

String yang dibandingkan dengan.

mask
NSStringCompareOptions

Bendera perbandingan.

Mengembalikan

Atribut

Berlaku untuk

Compare(NSString, NSStringCompareOptions, NSRange)

[Foundation.Export("compare:options:range:")]
public virtual Foundation.NSComparisonResult Compare (Foundation.NSString aString, Foundation.NSStringCompareOptions mask, Foundation.NSRange range);
abstract member Compare : Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange -> Foundation.NSComparisonResult
override this.Compare : Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange -> Foundation.NSComparisonResult

Parameter

aString
NSString

String yang dibandingkan dengan.

mask
NSStringCompareOptions

Bendera perbandingan.

range
NSRange

Mengembalikan

Atribut

Berlaku untuk

Compare(NSString, NSStringCompareOptions, NSRange, NSLocale)

[Foundation.Export("compare:options:range:locale:")]
public virtual Foundation.NSComparisonResult Compare (Foundation.NSString aString, Foundation.NSStringCompareOptions mask, Foundation.NSRange range, Foundation.NSLocale locale);
abstract member Compare : Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange * Foundation.NSLocale -> Foundation.NSComparisonResult
override this.Compare : Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange * Foundation.NSLocale -> Foundation.NSComparisonResult

Parameter

aString
NSString

String yang dibandingkan dengan.

mask
NSStringCompareOptions

Bendera perbandingan.

range
NSRange
locale
NSLocale

Lokal yang digunakan untuk perbandingan.

Parameter ini dapat berupa null.

Mengembalikan

Atribut

Berlaku untuk