gloox
1.0.1
|
Functions | |
bool | nodeprep (const std::string &node, std::string &out) |
bool | nameprep (const std::string &domain, std::string &out) |
bool | resourceprep (const std::string &resource, std::string &out) |
bool | idna (const std::string &domain, std::string &out) |
This namespace offers functions to stringprep the individual parts of a JID.
You should not need to use these functions directly. All the necessary prepping is done for you if you stick to the interfaces provided. If you write your own enhancements, check with the spec.
bool idna | ( | const std::string & | domain, |
std::string & | out | ||
) |
This function applies the idna() function to a string. I.e. it transforms internationalized domain names into plain ASCII.
domain | The string to convert. |
out | The converted string. In case of an error this string is not touched. If LibIDN is not available the string is returned unchanged. |
bool nameprep | ( | const std::string & | domain, |
std::string & | out | ||
) |
This function applies the Nameprep profile of Stringprep to a string.
domain | The string to apply the profile to. |
out | The prepped string. In case of an error this string is not touched. If LibIDN is not available the string is returned unchanged. |
bool nodeprep | ( | const std::string & | node, |
std::string & | out | ||
) |
This function applies the Nodeprep profile of Stringprep to a string.
node | The string to apply the profile to. |
out | The prepped string. In case of an error this string is not touched. If LibIDN is not available the string is returned unchanged. |
bool resourceprep | ( | const std::string & | resource, |
std::string & | out | ||
) |
This function applies the Resourceprep profile of Stringprep to a std::string.
resource | The string to apply the profile to. |
out | The prepped string. In case of an error this string is not touched. If LibIDN is not available the string is returned unchanged. |