Module IDN::Stringprep
In: stringprep.c

The Stringprep module of LibIDN Ruby Bindings.

Example usage

  require 'idn'
  include IDN

  str = Stringprep.with_profile('FOO', 'Nameprep')

Methods

Classes and Modules

Class IDN::Stringprep::StringprepError

Public Class methods

Prepares a string in UTF-8 format according to the ‘Nameprep’ profile.

Raises IDN::Stringprep::StringprepError on failure.

Converts a string in UTF-8 format into canonical form, standardizing such issues as whether a character with an accent is represented as a base character and combining accent or as a single precomposed character.

Prepares a string in UTF-8 format according to the ‘Nodeprep’ profile.

Raises IDN::Stringprep::StringprepError on failure.

Prepares a string in UTF-8 format according to the ‘Resourceprep’ profile.

Raises IDN::Stringprep::StringprepError on failure.

Prepares a string in UTF-8 format according to the given stringprep profile name which must be one of the internally supported stringprep profiles (for details see IANA’s Profile Names in RFC3454).

Raises IDN::Stringprep::StringprepError on failure.

[Validate]