isValid

fnbool isValid(E)(const(E)[] s)

Returns true if the string is encoded correctly

Supersedes: This function supersedes std.utf.validate(), however note that this function returns a bool indicating whether the input was valid or not, whereas the older function would throw an exception.

Standards

Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,

WINDOWS-1251, WINDOWS-1252

Parameters

sthe string to be tested