Function Domain.checkLabel

Verify that a label only contains allowed character

static ushort checkLabel (
  scope const(char)[] label
) pure nothrow @nogc @safe;

Returns

The index at which the first error was encountered, or label.length if the label is valid.