Initializergrdb 7.2.0GRDB

init(matchingPhrase:)

Creates a pattern that matches a contiguous string.

FTS3Pattern.swift:132
init?(matchingPhrase string: String)

Parameters

string

The string to turn into an FTS3 pattern.

The result is nil if no pattern could be built.

For example:

FTS3Pattern(matchingPhrase: "")        // nil
FTS3Pattern(matchingPhrase: "foo bar") // "foo bar"