These constants describe the possible types of string comparison for NSComparisonPredicate. These options are supported for LIKE as well as all of the equality/comparison operators.
C# | Visual Basic | Visual C++ |
public enum NSComparisonPredicateOption
Public Enumeration NSComparisonPredicateOption
public enum class NSComparisonPredicateOption
Member | Description |
---|---|
NSCaseInsensitivePredicateOption | A case-insensitive predicate. You represent this option in a predicate format string using a [c] following a string operation (for example, "NeXT" like[c] "next"). Available in Mac OS X v10.4 and later. |
NSDiacriticInsensitivePredicateOption | A diacritic-insensitive predicate. You represent this option in a predicate format string using a [d] following a string operation (for example, "naïve" like[d] "naive"). Available in Mac OS X v10.4 and later. |
NSLocaleSensitivePredicateOption | Indicates that strings to be compared using <, <=, =, =>, > should be handled in a locale-aware fashion. You represent this option in a predicate format string using a [l] following one of the <, <=, =, =>, > operators (for example, "straße" >[l] "strasse"). |
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)