#include <prep.h>
Static Public Member Functions | |
static std::string | nodeprep (const std::string &node) |
static std::string | nameprep (const std::string &domain) |
static std::string | resourceprep (const std::string &resource) |
static std::string | idna (const std::string &domain) |
You should not need to use these functions directly. All the necessary prepping is done for if you stick to the interfaces provided. If you write your own enhancements, check with the spec.
Definition at line 38 of file prep.h.
std::string nodeprep | ( | const std::string & | node | ) | [static] |
This function applies the Nodeprep profile of Stringprep to a string.
node | The string to apply the profile to. |
Definition at line 35 of file prep.cpp.
Referenced by Registration::createAccount(), JID::setJID(), and JID::setUsername().
std::string nameprep | ( | const std::string & | domain | ) | [static] |
This function applies the Nameprep profile of Stringprep to a string.
domain | The string to apply the profile to. |
Definition at line 67 of file prep.cpp.
Referenced by JID::setJID(), and JID::setServer().
std::string resourceprep | ( | const std::string & | resource | ) | [static] |
This function applies the Resourceprep profile of Stringprep to a std::string.
resource | The string to apply the profile to. |
Definition at line 99 of file prep.cpp.
Referenced by JID::setJID(), and JID::setResource().
std::string idna | ( | const std::string & | domain | ) | [static] |
This function applies the idna() function to a string. I.e. it transform internationalized domain names into plain ASCII.
domain | The string to convert. |