public final class NSStringCompareOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
AnchoredSearch
Search is limited to start (or end, if NSBackwardsSearch) of source string
|
static long |
BackwardsSearch
Search from end of source string
|
static long |
CaseInsensitiveSearch |
static long |
DiacriticInsensitiveSearch
If specified, ignores diacritics (o-umlaut == o)
|
static long |
ForcedOrderingSearch
If specified, comparisons are forced to return either NSOrderedAscending or NSOrderedDescending if the strings are equivalent but not strictly equal, for stability when sorting (e.g.
|
static long |
LiteralSearch
Exact character-by-character equivalence
|
static long |
NumericSearch
Added in 10.2; Numbers within strings are compared using numeric value, that is, Foo2.txt < Foo7.txt < Foo25.txt; only applies to compare methods, not find
|
static long |
RegularExpressionSearch
Applies to rangeOfString:..., stringByReplacingOccurrencesOfString:..., and replaceOccurrencesOfString:...
|
static long |
WidthInsensitiveSearch
If specified, ignores width differences ('a' == UFF41)
|
public static final long CaseInsensitiveSearch
public static final long LiteralSearch
public static final long BackwardsSearch
public static final long AnchoredSearch
public static final long NumericSearch
public static final long DiacriticInsensitiveSearch
public static final long WidthInsensitiveSearch
public static final long ForcedOrderingSearch
public static final long RegularExpressionSearch