Classes
The following classes are available globally.
-
Puny class provides methods to encode and decode strings using Punycode (RFC 3492). It allows for the conversion of Unicode strings into ASCII-compatible encoding, which is essential for domain names and other applications that require ASCII representation.
Note
This implementation follows the specifications outlined in RFC 3492.- Usage: Create an instance of Puny and call the appropriate methods for encoding or decoding.
Declaration
Swift
public class Puny