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)
  3. bool validate(inout(wchar)[] str)
    @nogc
    bool
    validate
    (
    inout(wchar)[] str
    )

Meta