#include <JID.hh>
Static Public Member Functions | |
std::string | getResource (const std::string &jid) |
Get the resource part of a JabberID. | |
std::string | getUserHost (const std::string &jid) |
Get the username and the server (host) from a JabberID. | |
std::string | getHost (const std::string &jid) |
Get the server from a JabberID. | |
std::string | getUser (const std::string &jid) |
Get the username from a JabberID. | |
bool | isValidUser (const std::string &user) |
Determine whether the username is valid. | |
bool | isValidHost (const std::string &host) |
Determine whether the hostname is valid. | |
int | compare (const std::string &ljid, const std::string &rjid) |
Compare two JabberIDs. |
This class provides functionality for obtaining the strings of the pieces. Currently the format is user/resource.
Definition at line 45 of file JID.hh.
|
Compare two JabberIDs. Since the username and server (host) are not case sensitive, but the resource is, this function is available to compare JabberIDs.
Definition at line 113 of file jabberoo-JID.cpp. |
|
Get the server from a JabberID.
Definition at line 56 of file jabberoo-JID.cpp. |
|
Get the resource part of a JabberID.
Definition at line 35 of file jabberoo-JID.cpp. |
|
Get the username from a JabberID.
Definition at line 71 of file jabberoo-JID.cpp. |
|
Get the username and the server (host) from a JabberID.
Definition at line 45 of file jabberoo-JID.cpp. |
|
Determine whether the hostname is valid.
Definition at line 97 of file jabberoo-JID.cpp. |
|
Determine whether the username is valid.
Definition at line 80 of file jabberoo-JID.cpp. |