Constants representing an ICU string transform.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Foundation
Declaration
struct StringTransform
Overview
These constants are used by the NSString
method applying
.
Constants representing an ICU string transform.
SDKs
Framework
struct StringTransform
These constants are used by the NSString
method applying
.
static let to Latin: String Transform
A constant containing the transliteration of a string from any script to Latin script.
static let latin To Arabic: String Transform
A constant containing the transliteration of a string from Latin script to Arabic script.
static let latin To Cyrillic: String Transform
A constant containing the transliteration of a string from Latin script to Cyrillic script.
static let latin To Greek: String Transform
A constant containing the transliteration of a string from Latin script to Greek script.
static let latin To Hangul: String Transform
A constant containing the transliteration of a string from Latin script to Hangul script.
static let latin To Hebrew: String Transform
A constant containing the transliteration of a string from Latin script to Hebrew script.
static let latin To Hiragana: String Transform
A constant containing the transliteration of a string from Latin script to Hiragana script.
static let latin To Katakana: String Transform
A constant containing the transliteration of a string from Latin script to Katakana script.
static let latin To Thai: String Transform
A constant containing the transliteration of a string from Latin script to Thai script.
static let hiragana To Katakana: String Transform
A constant containing the transliteration of a string from Hiragana script to Katakana script.
static let mandarin To Latin: String Transform
A constant containing the transliteration of a string from Han script to Latin.
static let strip Diacritics: String Transform
A constant containing the transformation of a string by removing diacritics.
static let strip Combining Marks: String Transform
A constant containing the transformation of a string by removing combining marks.
static let fullwidth To Halfwidth: String Transform
A constant containing the transformation of a string from full-width CJK characters to half-width forms.
static let to Unicode Name: String Transform
An identifier for a transform that converts characters to Unicode names.
static let to XMLHex: String Transform
A constant containing the transformation of a string from characters to XML hexadecimal escape codes.
func applying Transform(String Transform, reverse: Bool) -> String?
Returns a new string by applying a specified transform to the string.