Pike v8.0 release 1738

Method Standards.IDNA.nameprep()


Method nameprep

string nameprep(string s, bool|void allow_unassigned)

Description

Prepare a Unicode string for ACE transcoding. Used by to_ascii. Nameprep is a profile of Stringprep, which is described in RFC 3454.

Parameter s

The string to prep.

Parameter allow_unassigned

Set this flag the the string to transform is a "query string", and not a "stored string". See RFC 3454.