count

fnsize_t count(C)(const(C)[] str) if (isSomeChar!C) @safe pure nothrow @nogc

Returns the total number of code points encoded in str.

Supercedes: This function supercedes toUCSindex.

Standards

Unicode 5.0, ASCII, ISO-8859-1, WINDOWS-1252

Throws

UTFException if str is not well-formed.