Module egtm_string

General purpose string encoding library.

Description

General purpose string encoding library. This library is used internally for egtm string encoding from/to egtm's "native" encoding (depends on GT.M settings). Such a transformation is driven by priv/egtm.conf config of [egtm, string_conversion, encode] and [egtm, string_conversion, decode].

Using this library, it is also very easy to encrypt/decrypt strings before saving/loading to/from database.

Function Index

decode/1Decode string using function referred in config.
encode/1Encode string using function referred in config.
erl2utf/1Convertor from Erlang's native encoding to Unicode.
utf2erl/1Convertor from Unicode to Erlang's native encoding.

Function Details

decode/1

decode(X) -> any()

Decode string using function referred in config.

encode/1

encode(X) -> any()

Encode string using function referred in config.

erl2utf/1

erl2utf(S) -> any()

Convertor from Erlang's native encoding to Unicode. Erlang's native encoding is "encoding-agnostic" Latin1-friendly list of bytes.

utf2erl/1

utf2erl(S) -> any()

Convertor from Unicode to Erlang's native encoding. Erlang's native encoding is "encoding-agnostic" Latin1-friendly list of bytes.


Generated by EDoc, Aug 19 2012, 02:27:27.