gloox
0.9.9.12
|
Functions | |
std::string | nodeprep (const std::string &node) |
std::string | nameprep (const std::string &domain) |
std::string | resourceprep (const std::string &resource) |
std::string | idna (const std::string &domain) |
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.
std::string idna | ( | const std::string & | domain | ) |
This function applies the idna() function to a string. I.e. it transforms internationalized domain names into plain ASCII.
domain | The string to convert. |
std::string nameprep | ( | const std::string & | domain | ) |
This function applies the Nameprep profile of Stringprep to a string.
domain | The string to apply the profile to. |
std::string nodeprep | ( | const std::string & | node | ) |
This function applies the Nodeprep profile of Stringprep to a string.
node | The string to apply the profile to. |
std::string resourceprep | ( | const std::string & | resource | ) |
This function applies the Resourceprep profile of Stringprep to a std::string.
resource | The string to apply the profile to. |