Implements a representation of Unicode with the limited ASCII character subset.
Types
PunyError = object of ValueError
- Source Edit
Procs
proc encode(prefix, s: string): string {...}{.raises: [PunyError], tags: [].}
- Encode a string that may contain Unicode. Prepend prefix to the result Source Edit
proc encode(s: string): string {...}{.raises: [PunyError], tags: [].}
- Encode a string that may contain Unicode. Prefix is empty. Source Edit
proc decode(encoded: string): string {...}{.raises: [PunyError], tags: [].}
- Decode a Punycode-encoded string Source Edit