Module exmpp_jid

The module exmpp_jid provides functions to handle JID.

Authors: Jean-Sébastien Pédron (js.pedron@meetic-corp.com).

Description

The module exmpp_jid provides functions to handle JID.

Data Types

jid()

jid() = {jid, Orig_Jid, Prepd_Node, Prepd_Domain, Prepd_Resource}

Represents a JID.

jid() is an internal type and the structure documented herein may be changed without notice. Please use only the accessors exported by this module to get each component of a JID.

Prepd_Node is set to the value of Node passed through the NODEPREP stringprep profile.

Prepd_Domain is set to the value of Domain passed through the NAMEPREP stringprep profile.

Prepd_Resource is set to the value of Resource passed through the RESOURCEPREP stringprep profile.

Function Index

bare/1Convert a full JID to its bare version.
bare_compare/2Compare bare JIDs.
bare_to_binary/1Stringify a bare JID.
bare_to_binary/2Stringify a full JID.
bare_to_list/1Stringify a bare JID.
bare_to_list/2Stringify a full JID.
binary_split/2
compare/2Compare full JIDs.
compare_domains/2Compare JID's domain.
domain/1Return the domain part of a JID.
domain_as_list/1Return the domain part of a JID as a list.
full/2Convert a bare JID to its full version.
full_compare/2Compare full JIDs.
is_jid/1Tell if the argument is a JID.
make/0Create a blank JID.
make/1