 
         return present(in: text, at: range) == false
     }
-
-    /// Applies the Formatter's Attributes into a given string, at the specified range.
-    ///
-    func applyAttributes(to string: NSMutableAttributedString, at range: NSRange) {
-        let currentAttributes = string.attributes(at: range.location, effectiveRange: nil)
-        let attributes = apply(to: currentAttributes)
-        string.addAttributes(attributes, range: range)
-    }
-
-    /// Removes the Formatter's Attributes from a given string, at the specified range.
-    ///
-    func removeAttributes(from string: NSMutableAttributedString, at range: NSRange) {
-        let currentAttributes = string.attributes(at: range.location, effectiveRange: nil)
-        let attributes = remove(from: currentAttributes)
-
-        let currentKeys = Set(currentAttributes.keys)
-        let newKeys = Set(attributes.keys)
-        let removedKeys = currentKeys.subtracting(newKeys)
-        for key in removedKeys {
-            string.removeAttribute(key, range: range)
-        }
-
-        string.addAttributes(attributes, range: range)
-    }
 }
 
 

        }
    }

}



        return range
    }

    func worksInEmptyRange() -> Bool {
        return false
    }
