stringprep_xmpp

Name

stringprep_xmpp -- Stringprep Profiles for XMPP Node and Resource Identifiers

Synopsis



#define     stringprep_xmpp_nodeprep        (in, maxlen)
#define     stringprep_xmpp_resourceprep    (in, maxlen)

Description

This specifies processing rules that will enable users to enter internationalized node identifiers in XMPP (see XMPP Core [2]) and have the highest chance of getting the content of the strings correct. These processing rules are intended for XMPP node identifiers only, and not for arbitrary text.

Details

stringprep_xmpp_nodeprep()

#define     stringprep_xmpp_nodeprep(in, maxlen)

Prepare the input UTF-8 string according to the draft XMPP node identifier profile. Returns 0 iff successful, or an error code.

in :

input/ouput array with string to prepare.

maxlen :

maximum length of input/output array.


stringprep_xmpp_resourceprep()

#define     stringprep_xmpp_resourceprep(in, maxlen)

Prepare the input UTF-8 string according to the draft XMPP resource identifier profile. Returns 0 iff successful, or an error code.

in :

input/ouput array with string to prepare.

maxlen :

maximum length of input/output array.