validate

Validates whether the given nwstring is a valid UTF-16 string.

This function assumes that the string is in machine-native endianess.

  1. bool validate(wchar[2] c)
  2. bool validate(nwstring str)
    @nogc
    bool
    validate
  3. bool validate(inout(wchar)[] str)

Meta