Authors: Jean-Sebastien Pedron (js.pedron@meetic-corp.com).
| any_to_binary/1 | Convert any type to its binary() form. |
| any_to_list/1 | Convert any type to its string() form. |
| random_id/0 | Generate a random ID. |
| random_id/1 | Generate a random stanza ID. |
| strip/1 | Strip leading and trailing blanks. |
| strip/2 | Strip leading and/or trailing blanks, depending on the Direction. |
any_to_binary(Atom::Any) -> Binary
Convert any type to its binary() form.
erlang:atom_to_list/1 is used. For an integer,
erlang:integer_to_list/1 is used. For a string, erlang:list_to_binary/1 is used. A binary is returned as is.
any_to_list(Atom::Any) -> String
Convert any type to its string() form.
erlang:atom_to_list/1 is used. For an integer,
erlang:integer_to_list/1 is used. For a binary, erlang:binary_to_list/1 is used. A string is returned as is.
random_id() -> ID
Generate a random ID.
Use theexmpp prefix.
See also: random_id/1.
random_id(Prefix) -> ID
Generate a random stanza ID.
This function uses random:uniform/1. It's up to the caller to
seed the generator.
strip(Stream) -> Stripped
Strip leading and trailing blanks.
See also: strip/3.
strip(Stream, X2::Direction) -> Stripped
Strip leading and/or trailing blanks, depending on the Direction.
Blanks characters are \s, \t, \n and \r.
See also: strip/3.
Generated by EDoc, Feb 19 2012, 12:53:54.