diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-22 10:21:50 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-22 10:27:03 (GMT) |
commit | 2df5e148de44c6c91c5a28d197b8b2b913ca80d4 (patch) | |
tree | a2cc5567d02660e13f881ec500757347e53d46a5 /Swiften/StringPrep/StringPrep.h | |
parent | 4e244a9d1967ad416530aa3b9b07faad54097327 (diff) | |
download | swift-contrib-2df5e148de44c6c91c5a28d197b8b2b913ca80d4.zip swift-contrib-2df5e148de44c6c91c5a28d197b8b2b913ca80d4.tar.bz2 |
Moved stringprepping to a separate module.
Diffstat (limited to 'Swiften/StringPrep/StringPrep.h')
-rw-r--r-- | Swiften/StringPrep/StringPrep.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Swiften/StringPrep/StringPrep.h b/Swiften/StringPrep/StringPrep.h new file mode 100644 index 0000000..7dbb03a --- /dev/null +++ b/Swiften/StringPrep/StringPrep.h @@ -0,0 +1,17 @@ +#pragma once + +#include "Swiften/Base/String.h" + +namespace Swift { + class StringPrep { + public: + enum Profile { + NamePrep, + XMPPNodePrep, + XMPPResourcePrep, + SASLPrep, + }; + + static String getPrepared(const String& s, Profile profile); + }; +} |