---
title: "matchPrefix(_:)"
framework: lightweightcoderequirements
role: symbol
role_heading: Instance Method
path: "lightweightcoderequirements/entitlementsquery/matchprefix(_:)"
---

# matchPrefix(_:)

Match the specified string prefix against a string value or array.

## Declaration

```swift
func matchPrefix(_ value: String) -> EntitlementsQuery
```

## Discussion

Discussion Strings are matched byte for byte (i.e. no unicode normalization occurs). matchPrefix will match only the first string value that has the prefix.
