validate

fnvoid validate(S)(in S str) if (isSomeString!S) @safe pure

Checks to see if str is well-formed unicode or not.

Throws

UTFException if str is not well-formed.