Module DomainName::Punycode
In: lib/domain_name/punycode.rb

Methods

Classes and Modules

Class DomainName::Punycode::BufferOverflowError
Class DomainName::Punycode::Error

Constants

BASE = 36
TMIN = 1
TMAX = 26
SKEW = 38
DAMP = 700
INITIAL_BIAS = 72
INITIAL_N = 0x80
DELIMITER = '-'
MAXINT = (1 << 64) - 1   The maximum value of an DWORD variable
LOBASE = BASE - TMIN   Used in the calculation of bias:
CUTOFF = LOBASE * TMAX / 2   Used in the calculation of bias:

Public Instance methods

Main encode function

Returns the basic code point whose value (when used for representing integers) is d, which must be in the range 0 to BASE-1. The lowercase form is used unless flag is true, in which case the uppercase form is used. The behavior is undefined if flag is nonzero and digit d has no uppercase form.

[Validate]