shouldReplaceCharacters(inRanges:with:)
Returns whether the specified strings should be replaced.
Declaration
optional func shouldReplaceCharacters(inRanges ranges: [NSValue], with strings: [String]) -> BoolParameters
- ranges:
The ranges of the strings to replace.
- strings:
The replacement strings.
Return Value
Returns true if the replacement should occur; otherwise false.
Discussion
See NSTextFinder for a complete description.