String Transformations

These constants specify transforms used by the applyTransform(_:reverse:range:updatedRange:) method.

Topics

Constants

static let latinToKatakana: StringTransform

Transliterate Latin script to Katakana script. This transformation is reversible.

static let latinToHiragana: StringTransform

Transliterate Latin script to Hiragana script. This transformation is reversible.

static let latinToHangul: StringTransform

Transliterate Latin script to Hangul script. This transformation is reversible.

static let latinToArabic: StringTransform

Transliterate Latin script to Arabic script. This transformation is reversible.

static let latinToHebrew: StringTransform

Transliterate Latin script to Hebrew script. This transformation is reversible.

static let latinToThai: StringTransform

Transliterate Latin script to Thai script. This transformation is reversible.

static let latinToCyrillic: StringTransform

Transliterate Latin script to Cyrillic script. This transformation is reversible.

static let toLatin: StringTransform

Transliterate any script to Latin script.

static let mandarinToLatin: StringTransform

Transliterate Han script to Latin.

static let hiraganaToKatakana: StringTransform

Transliterate Hiragana script to Katakana script. This transformation is reversible.

static let fullwidthToHalfwidth: StringTransform

Transform full-width CJK characters to half-width forms. This transformation is reversible.

static let toXMLHex: StringTransform

Transform characters to XML hexadecimal escape codes. This transformation is reversible.

static let toUnicodeName: StringTransform

Transform characters to Unicode names.

static let stripCombiningMarks: StringTransform

Transform characters by removing combining marks.

static let stripDiacritics: StringTransform

Transform characters by removing diacritics.