To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 16.0+
- Xcode 12.0+
- Swift 5.0+
pod 'SwiftyCorasick'
let package = Package(
name: "SwiftCorasick",
dependencies: [
.package(url: "https://github.com/gomminjae/SwiftyCorasick.git")
],
targets: [
.target(name: "MyTarget", dependencies: ["SwiftyCorasick"])
]
)
To run the example project, clone the repo, and run pod install
from the Example directory first.
Below is a simple example of how to use SwiftyCorasick
to search for patterns in a given text.
import SwiftyCorasick
Task {
// 비동기 함수 호출
let maskedText = await SwiftyCorasick.shared.processTextAsync(testText)
// 결과 처리
print("Masked Text: \(maskedText)")
}
Filtered Text: "***** and **** with Aho-******** algorithm"
gomminjae, [email protected]
SwiftyCorasick is available under the MIT license. See the LICENSE file for more info.