validateUnicodeLabel

private fnvoid validateUnicodeLabel(string lab, IdnaOptions opt) @safe

Validate a Unicode label under IDNA options.

In non-strict mode this is a no-op; in strict mode it enforces additional constraints.

Parameters

labLabel to validate.
optIDNA options.

Throws

Exception in strict mode when the label violates constraints.