Class CFStringCompareFlags


  • public final class CFStringCompareFlags
    extends java.lang.Object
    Find and compare flags; these are OR'ed together and provided as CFStringCompareFlags in the various functions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Anchored
      Only at the specified starting point
      static long Backwards
      Starting from the end of the string
      static long CaseInsensitive  
      static long DiacriticInsensitive
      If specified, ignores diacritics (o-umlaut == o)
      static long ForcedOrdering
      If specified, comparisons are forced to return either kCFCompareLessThan or kCFCompareGreaterThan if the strings are equivalent but not strictly equal, for stability when sorting (e.g.
      static long Localized
      User's default locale is used for the comparisons
      static long Nonliteral
      If specified, loose equivalence is performed (o-umlaut == o, umlaut)
      static long Numerically
      Numeric comparison is used; that is, Foo2.txt < Foo7.txt < Foo25.txt
      static long WidthInsensitive
      If specified, ignores width differences ('a' == UFF41)
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Backwards

        public static final long Backwards
        Starting from the end of the string
        See Also:
        Constant Field Values
      • Anchored

        public static final long Anchored
        Only at the specified starting point
        See Also:
        Constant Field Values
      • Nonliteral

        public static final long Nonliteral
        If specified, loose equivalence is performed (o-umlaut == o, umlaut)
        See Also:
        Constant Field Values
      • Localized

        public static final long Localized
        User's default locale is used for the comparisons
        See Also:
        Constant Field Values
      • Numerically

        public static final long Numerically
        Numeric comparison is used; that is, Foo2.txt < Foo7.txt < Foo25.txt
        See Also:
        Constant Field Values
      • DiacriticInsensitive

        public static final long DiacriticInsensitive
        If specified, ignores diacritics (o-umlaut == o)
        See Also:
        Constant Field Values
      • WidthInsensitive

        public static final long WidthInsensitive
        If specified, ignores width differences ('a' == UFF41)
        See Also:
        Constant Field Values
      • ForcedOrdering

        public static final long ForcedOrdering
        If specified, comparisons are forced to return either kCFCompareLessThan or kCFCompareGreaterThan if the strings are equivalent but not strictly equal, for stability when sorting (e.g. "aaa" > "AAA" with kCFCompareCaseInsensitive specified)
        See Also:
        Constant Field Values