Type Method 型メソッド

encode(_:)

Converts from encoding-independent to encoded representation, returning nil if the scalar can’t be represented in this encoding. 符号化独立から符号化表現へと変換します、nilを返します、もしそのスカラーがこの符号化で表現されることができないならば。

Declaration 宣言

static func encode(_ source: Unicode.Scalar) -> Unicode.UTF16.EncodedScalar?

Discussion 解説