3 ms·
countElements(string) returns the number of Unicode code points in a string. I'm not sure about the random character, though. Swift is very much oriented towar
by JoshTheGeek 12y ago
countElements(string)
returns the number of Unicode code points in a string. I'm not sure about the random character, though. Swift is very much oriented towards Unicode rather than bytes when it comes to strings.