Enumeration

CFStringCompareFlags

A CFOptionFlags type for specifying options for string comparison .

Declaration

typedef enum CFStringCompareFlags : CFOptionFlags {
    ...
} CFStringCompareFlags;

Overview

See String Comparison Flags for values.

Topics

Type Properties

kCFCompareAnchored

Performs searching only on characters at the beginning or end of the range.

kCFCompareBackwards

Specifies that the comparison should start at the last elements of the entities being compared (for example, strings or arrays).

kCFCompareCaseInsensitive

Specifies that the comparison should ignore differences in case between alphabetical characters.

kCFCompareDiacriticInsensitive

Specifies that the comparison should ignore diacritic markers.

kCFCompareForcedOrdering

Specifies that the comparison is forced to return either kCFCompareLessThan or kCFCompareGreaterThan if the strings are equivalent but not strictly equal.

kCFCompareLocalized

Specifies that the comparison should take into account differences related to locale, such as the thousands separator character.

kCFCompareNonliteral

Specifies that loose equivalence is acceptable, especially as pertains to diacritical marks.

kCFCompareNumerically

Specifies that represented numeric values should be used as the basis for comparison and not the actual character values.

kCFCompareWidthInsensitive

Specifies that the comparison should ignore width differences.