blob: 70ddfbd48df47aa344d6ea9d080173ac5d2be749 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001OPTIONAL
2SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01003 #include <idn.h>
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstrad59c3892019-11-28 20:53:39 +01005 string idna_stringprep(string str, int profile, int flags)
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007DESCRIPTION
8 Prepare the UTF-8 string <str> according to the stringprep
9 <profile> (see also libidn stringprep(3)).
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011 <profile> and <flags> are one of the values defined in <idn.h>.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013 If an error occurs, an exception is thrown.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015 The efun is available only if the system supports libidn - in
16 that case __IDNA__ is defined.
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018HISTORY
MG Mud User88f12472016-06-24 23:31:02 +020019 Introduced in LDMud 3.3.713.
20
Zesstra715ec202025-07-09 22:18:31 +020021SEE ALSO
Zesstrad59c3892019-11-28 20:53:39 +010022 idna_to_ascii(E), idna_to_unicode(E)