Compartir a través de


NSString.Compare Método

Definición

Sobrecargas

Compare(NSString)

Léxicamente compara esto con la cadena especificada.

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

Compare(NSString)

Léxicamente compara esto con la cadena especificada.

[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

Parámetros

aString
NSString

Cadena con la que se va a comparar.

Devoluciones

Atributos

Se aplica a

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

Parámetros

aString
NSString

Cadena con la que se va a comparar.

mask
NSStringCompareOptions

Marcas de comparación.

Devoluciones

Atributos

Se aplica a

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

Parámetros

aString
NSString

Cadena con la que se va a comparar.

mask
NSStringCompareOptions

Marcas de comparación.

range
NSRange

Devoluciones

Atributos

Se aplica a

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

Parámetros

aString
NSString

Cadena con la que se va a comparar.

mask
NSStringCompareOptions

Marcas de comparación.

range
NSRange
locale
NSLocale

Configuración regional que se va a usar para la comparación.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a