prep.h
/*
Copyright (c) 2004-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef PREP_H__
#define PREP_H__
#include "macros.h"
#include <string>
namespace gloox
{
namespace prep
{
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 saslprep( const std::string& input, std::string& out );
bool idna( const std::string& domain, std::string& out );
}
}
#endif // PREP_H__
gloox::prep
This namespace offers functions to stringprep the individual parts of a JID.
Definition prep.cpp:33
gloox::prep::saslprep
bool saslprep(const std::string &input, std::string &out)
Definition prep.cpp:95
gloox::prep::idna
bool idna(const std::string &domain, std::string &out)
Definition prep.cpp:107
gloox::prep::resourceprep
bool resourceprep(const std::string &resource, std::string &out)
Definition prep.cpp:83
gloox::prep::nodeprep
bool nodeprep(const std::string &node, std::string &out)
Definition prep.cpp:59
gloox::prep::nameprep
bool nameprep(const std::string &domain, std::string &out)
Definition prep.cpp:71
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28