Instance Method

applyingTransform(_:reverse:)

Returns a new string by applying a specified transform to the string.

Declaration

func applyingTransform(_ transform: StringTransform, reverse: Bool) -> String?

Discussion

You can use this method to, for example, transliterate text from one script to another, strip diacritics or combining marks, and get the unicode names of characters.

.

See Also

Transforming Strings

struct StringTransform

Constants representing an ICU string transform.