RosettaCodeData/Task/String-length/Swift/string-length-11.swift

2 lines
67 B
Swift

let numberOfBytesUTF16 = count("møøse".utf16) * 2 // 10