vendor/bundle/ruby/2.7.0/gems/simpleidn-0.2.1/lib/simpleidn.rb
# encode_digit(d) returns the basic code point whose value
# (when used for representing integers) is d, which needs to be in
# the range 0 to base-1.
encode_digit(d) returns the basic code point whose value
(when used for representing integers) is d, which needs to be in
the range 0 to base-1.
encode_digit ( d ) returns the basic code point whose value ( when used for representing integers ) is d which needs to be in the range 0 to base - 1 .
def encode_digit(d)
      d + 22 + 75 * (d < 26 ? 1 : 0)
    end
def encode_digit ( d ) d + 22 + 75 * ( d < 26 ? 1 : 0 ) end
encode_digit(d) returns the basic code point whose value
(when used for representing integers) is d, which needs to be in
the range 0 to base-1.
encode_digit ( d ) returns the basic code point whose value ( when used for representing integers ) is d which needs to be in the range 0 to base - 1 .
#  0..25 map to ASCII a..z # 26..35 map to ASCII 0..9
d
<not_specific>