Module: IDNFFI::Methods

Included in:
IDNFFI
Defined in:
lib/idn_ffi/methods.rb

Instance Method Summary collapse

Instance Method Details

#to_ascii(str, flags = IDNFFI::IDNA_ALLOW_UNASSIGNED) ⇒ Object



3
4
5
# File 'lib/idn_ffi/methods.rb', line 3

def to_ascii(str, flags = IDNFFI::IDNA_ALLOW_UNASSIGNED)
  transform(:idna_to_ascii_8z, str, flags)
end

#to_unicode(str, flags = IDNFFI::IDNA_ALLOW_UNASSIGNED) ⇒ Object



7
8
9
# File 'lib/idn_ffi/methods.rb', line 7

def to_unicode(str, flags = IDNFFI::IDNA_ALLOW_UNASSIGNED)
  transform(:idna_to_unicode_8z8z, str, flags)
end