---
title: CFStringCompareFlags
framework: corefoundation
role: symbol
role_heading: Structure
path: corefoundation/cfstringcompareflags
---

# CFStringCompareFlags

A CFOptionFlags type for specifying options for string comparison .

## Declaration

```swift
struct CFStringCompareFlags
```

## Overview

Overview See String Comparison Flags for values.

## Topics

### Initializers

- [init(rawValue:)](corefoundation/cfstringcompareflags/init(rawvalue:).md)

### Type Properties

- [compareAnchored](corefoundation/cfstringcompareflags/compareanchored.md)
- [compareBackwards](corefoundation/cfstringcompareflags/comparebackwards.md)
- [compareCaseInsensitive](corefoundation/cfstringcompareflags/comparecaseinsensitive.md)
- [compareDiacriticInsensitive](corefoundation/cfstringcompareflags/comparediacriticinsensitive.md)
- [compareForcedOrdering](corefoundation/cfstringcompareflags/compareforcedordering.md)
- [compareLocalized](corefoundation/cfstringcompareflags/comparelocalized.md)
- [compareNonliteral](corefoundation/cfstringcompareflags/comparenonliteral.md)
- [compareNumerically](corefoundation/cfstringcompareflags/comparenumerically.md)
- [compareWidthInsensitive](corefoundation/cfstringcompareflags/comparewidthinsensitive.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Data Types

- [CFStringEncoding](corefoundation/cfstringencoding.md)
- [CFStringEncodings](corefoundation/cfstringencodings.md)
- [CFStringInlineBuffer](corefoundation/cfstringinlinebuffer.md)
