#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 37 of file prep.h.
|
This function applies the idna() function to a string. I.e. it transform internationalized domain names into plain ASCII.
|
|
This function applies the Nameprep profile of Stringprep to a string.
Definition at line 66 of file prep.cpp. Referenced by JID::setJID(), and JID::setServer(). |
|
This function applies the Nodeprep profile of Stringprep to a string.
Definition at line 34 of file prep.cpp. Referenced by Registration::createAccount(), JID::setJID(), and JID::setUsername(). |
|
This function applies the Resourceprep profile of Stringprep to a std::string.
Definition at line 98 of file prep.cpp. Referenced by JID::setJID(), and JID::setResource(). |