From b553664f54034e8c04ae6f9cc44f16b7f516518b Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
+enum erlang_char_encoding {
+ ERLANG_ASCII, ERLANG_LATIN1, ERLANG_UTF8, ERLANG_WHATEVER
+};
+
+ The character encoding used for atoms.
+Encodes an atom in the binary format. The
Encodes an atom in the binary format with character encoding
+
The encoding will fail if the atom is too long or if it can not be represented
+ with character encoding
These functions were introduced in R16 release of Erlang/OTP as part of a first step
+ to support UTF8 atoms. Atoms encoded with
This function decodes an atom from the binary format. The
- name of the atom is placed at
This function decodes an atom from the binary format. The
+ null terminated name of the atom is placed in buffer at
The wanted string encoding is specified by
This function fails if the atom is too long for the buffer
+ or if it can not be represented with encoding
This functions was introduced in R16 release of Erlang/OTP as part of a first step + to support UTF8 atoms.
+Creates an atom.
@@ -305,10 +309,12 @@ iohead ::= BinaryReturns an Erlang term containing an atom. Note that it is
the callers responsibility to make sure that
Note that the UTF8 variants were introduced in Erlang/OTP releases R16
+ and the string returned by
The character encoding used for atoms.
+The character encoding used for atoms.
Encodes an atom in the binary format with character encoding
The encoding will fail if the atom is too long or if it can not be represented
- with character encoding
The encoding will fail if
These functions were introduced in R16 release of Erlang/OTP as part of a first step
to support UTF8 atoms. Atoms encoded with
enum erlang_char_encoding {
- ERLANG_ASCII, ERLANG_LATIN1, ERLANG_UTF8, ERLANG_WHATEVER
+ ERLANG_ASCII, ERLANG_LATIN1, ERLANG_UTF8
};
The character encoding used for atoms.
This function fails if the atom is too long for the buffer
or if it can not be represented with encoding
This functions was introduced in R16 release of Erlang/OTP as part of a first step +
This function was introduced in R16 release of Erlang/OTP as part of a first step to support UTF8 atoms.