Contains information on how to make a replacement in an original text context.
Assume that we have the text context: “This are a red door” and we applied the following Replacement to it:
Then we would end up with: “This is a red door”.
let end: UInt
The end position in the original text context that is affected by the replacement.
let original: String
The substring in the original text context that will be replaced by replacement in the range from start to end.
let replacement: String
The string that should replace original as for the replacement.
let start: UInt
The start position in the original text context that is affected by the replacement.
If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.
Last updated on August 8, 2022