Package apple.foundation.enums
Class NSStringCompareOptions
- java.lang.Object
-
- apple.foundation.enums.NSStringCompareOptions
-
public final class NSStringCompareOptions extends java.lang.ObjectThese options apply to the various search/find and comparison methods (except where noted).
-
-
Field Summary
Fields Modifier and Type Field Description static longAnchoredSearchSearch is limited to start (or end, if NSBackwardsSearch) of source stringstatic longBackwardsSearchSearch from end of source stringstatic longCaseInsensitiveSearchstatic longDiacriticInsensitiveSearchIf specified, ignores diacritics (o-umlaut == o)static longForcedOrderingSearchIf 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 longLiteralSearchExact character-by-character equivalencestatic longNumericSearchAdded 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 findstatic longRegularExpressionSearchApplies to rangeOfString:..., stringByReplacingOccurrencesOfString:..., and replaceOccurrencesOfString:... methods only; the search string is treated as an ICU-compatible regular expression; if set, no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearchstatic longWidthInsensitiveSearchIf specified, ignores width differences ('a' == UFF41)
-
-
-
Field Detail
-
CaseInsensitiveSearch
public static final long CaseInsensitiveSearch
- See Also:
- Constant Field Values
-
LiteralSearch
public static final long LiteralSearch
Exact character-by-character equivalence- See Also:
- Constant Field Values
-
BackwardsSearch
public static final long BackwardsSearch
Search from end of source string- See Also:
- Constant Field Values
-
AnchoredSearch
public static final long AnchoredSearch
Search is limited to start (or end, if NSBackwardsSearch) of source string- See Also:
- Constant Field Values
-
NumericSearch
public static final 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- See Also:
- Constant Field Values
-
DiacriticInsensitiveSearch
public static final long DiacriticInsensitiveSearch
If specified, ignores diacritics (o-umlaut == o)- See Also:
- Constant Field Values
-
WidthInsensitiveSearch
public static final long WidthInsensitiveSearch
If specified, ignores width differences ('a' == UFF41)- See Also:
- Constant Field Values
-
ForcedOrderingSearch
public static final 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. "aaa" > "AAA" with NSCaseInsensitiveSearch specified)- See Also:
- Constant Field Values
-
RegularExpressionSearch
public static final long RegularExpressionSearch
Applies to rangeOfString:..., stringByReplacingOccurrencesOfString:..., and replaceOccurrencesOfString:... methods only; the search string is treated as an ICU-compatible regular expression; if set, no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch- See Also:
- Constant Field Values
-
-