Module exmpp_stringprep

The module exmpp_stringprep provides functions to use NODEPREP, NAMEPREP and RESOURCEPREP stringprep profiles.

Behaviours: gen_server.

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

Description

The module exmpp_stringprep provides functions to use NODEPREP, NAMEPREP and RESOURCEPREP stringprep profiles.

It's not intended to be used directly.

Function Index

is_name/1Tell if String conforms the NAMEPREP stringprep profile.
is_node/1Tell if String conforms the NODEPREP stringprep profile.
is_resource/1Tell if String conforms the RESOURCEPREP stringprep profile.
nameprep/1Apply the NAMEPREP stringprep profile to String.
nodeprep/1Apply the NODEPREP stringprep profile to String.
resourceprep/1Apply the RESOURCEPREP stringprep profile to String.
to_lower/1Convert String to lowercase.

Function Details

is_name/1

is_name(String) -> bool()

throws {stringprep, nameprep, exmpp_not_started, String}

Tell if String conforms the NAMEPREP stringprep profile.

is_node/1

is_node(String) -> bool()

throws {stringprep, nodeprep, exmpp_not_started, String}

Tell if String conforms the NODEPREP stringprep profile.

is_resource/1

is_resource(String) -> bool()

throws {stringprep, resourceprep, exmpp_not_started, String}

Tell if String conforms the RESOURCEPREP stringprep profile.

nameprep/1

nameprep(String) -> Prepd_String

throws {stringprep, nameprep, exmpp_not_started, String} | {stringprep, nameprep, invalid_string, String}

Apply the NAMEPREP stringprep profile to String.

nodeprep/1

nodeprep(String) -> Prepd_String

throws {stringprep, nodeprep, exmpp_not_started, String} | {stringprep, nodeprep, invalid_string, String}

Apply the NODEPREP stringprep profile to String.

resourceprep/1

resourceprep(String) -> Prepd_String

throws {stringprep, resourceprep, exmpp_not_started, String} | {stringprep, resourceprep, invalid_string, String}

Apply the RESOURCEPREP stringprep profile to String.

to_lower/1

to_lower(String) -> Lowered_String

throws {stringprep, lowercase, exmpp_not_started, String} | {stringprep, lowercase, invalid_string, String}

Convert String to lowercase.


Generated by EDoc, Jan 21 2011, 01:43:53.