canBeConverted(to:)
Returns a Boolean value that indicates whether the string can be converted to the specified encoding without loss of information.
Declaration
func canBeConverted(to encoding: String.Encoding) -> BoolParameters
- encoding:
A string encoding.
Return Value
true if the string can be encoded in encoding without loss of information; otherwise, false.