Type Method

isSurrogate(_:)

Returns a Boolean value indicating whether the specified code unit is a high or low surrogate code unit.

Declaration

static func isSurrogate(_ x: Unicode.UTF16.CodeUnit) -> Bool