Check bidirectional text rules across all labels in a domain. If any label contains right-to-left characters, all labels must satisfy bidirectional text constraints.
Normalize a codepoint sequence to Unicode NFC (Normalization Form C). Applies canonical decomposition, canonical ordering of combining marks, and canonical composition including Hangul syllables.
Convert a domain name to its ASCII-compatible form (UTS #46 Nontransitional). Maps, normalizes to NFC, splits on dots, validates, and Punycode-encodes non-ASCII labels. Returns the ASCII domain or an error.
Convert a domain name to its Unicode form (UTS #46 Nontransitional). Maps, normalizes to NFC, splits on dots, validates, and Punycode-decodes xn-- labels. Returns the Unicode domain or an error.