mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
Add text property
This commit is contained in:
@@ -36,6 +36,15 @@ public enum PredictionCandidate: Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
public var text: String {
|
||||
switch self {
|
||||
case .additional(let c):
|
||||
c.text
|
||||
case .replacement(let c):
|
||||
c.text
|
||||
}
|
||||
}
|
||||
|
||||
public func join(to candidate: consuming Candidate) -> Candidate {
|
||||
switch self {
|
||||
case .additional(let c):
|
||||
|
||||
Reference in New Issue
Block a user