MonobjcMonobjc Documented Class Library
NSStringCompareOptions Enumeration
NamespacesMonobjc.FoundationNSStringCompareOptions

These values represent the options available to many of the string classes’ search and comparison methods.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSStringCompareOptions
Public Enumeration NSStringCompareOptions
public enum class NSStringCompareOptions
Members
MemberDescription
NSCaseInsensitiveSearch

A case-insensitive search.

Available in Mac OS X v10.0 and later.


NSLiteralSearch

Exact character-by-character equivalence.

Available in Mac OS X v10.0 and later.


NSBackwardsSearch

Search from end of source string.

Available in Mac OS X v10.0 and later.


NSAnchoredSearch

Search is limited to start (or end, if NSBackwardsSearch) of source string.

Available in Mac OS X v10.0 and later.


NSNumericSearch

Numbers within strings are compared using numeric value, that is, Foo2.txt < Foo7.txt < Foo25.txt.

This option only applies to compare methods, not find.

Available in Mac OS X v10.3 and later.


NSDiacriticInsensitiveSearch

Search ignores diacritic marks.

For example, ‘ö’ is equal to ‘o’.

Available in Mac OS X v10.5 and later.


NSWidthInsensitiveSearch

Search ignores width differences in characters that have full-width and half-width forms, as occurs in East Asian character sets.

For example, with this option, the full-width Latin small letter 'a' (Unicode code point U+FF41) is equal to the basic Latin small letter 'a' (Unicode code point U+0061).

Available in Mac OS X v10.5 and later.


NSForcedOrderingSearch

Comparisons are forced to return either NSOrderedAscending or NSOrderedDescending if the strings are equivalent but not strictly equal.

This option gives stability when sorting. For example, “aaa” is greater than "AAA” if NSCaseInsensitiveSearch is specified.

Available in Mac OS X v10.5 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)