Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (29 loc) · 1.16 KB

snatch_jid.md

File metadata and controls

51 lines (29 loc) · 1.16 KB

Module snatch_jid

Function Index

is_full/1returns true if the JID is a full JID, false otherwise.
parse/1parse a binary to a {node, server, resource} tuple.
to_bare/1converts JID to a bare JID in binary format.

Function Details

is_full/1


is_full(JID::binary()) -> boolean()

returns true if the JID is a full JID, false otherwise.

parse/1


parse(JID::binary()) -> {binary(), binary(), binary()} | {error, enojid}

parse a binary to a {node, server, resource} tuple.

to_bare/1


to_bare(JID::binary()) -> binary()

converts JID to a bare JID in binary format.