Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
1015-erlang-module-doc-Improve-documentation-fo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1015-erlang-module-doc-Improve-documentation-for-erlang-a.patch of Package erlang
From 426596373bf8f9ed49e57240f55a91c2922b156e Mon Sep 17 00:00:00 2001 From: Kjell Winblad <kjellwinblad@gmail.com> Date: Mon, 31 Aug 2020 11:02:14 +0200 Subject: [PATCH 05/39] erlang module doc: Improve documentation for erlang:atom_to_list/1 * Example of atom with unicode characters * The result is a list of unicode code points --- erts/doc/src/erlang.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index c7e13548a9..60220ef29a 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -413,11 +413,17 @@ Z = erlang:adler32_combine(X,Y,iolist_size(Data2)).</code> <name name="atom_to_list" arity="1"/> <fsummary>Text representation of an atom.</fsummary> <desc> - <p>Returns a string corresponding to the text + <p>Returns a list of unicode code points corresponding to the text representation of <c><anno>Atom</anno></c>, for example:</p> <pre> > <input>atom_to_list('Erlang').</input> "Erlang"</pre> + <pre> +> <input>atom_to_list('你好').</input> +[20320,22909]</pre> + <p>See <seealso + marker="stdlib:unicode"><c>unicode(3)</c></seealso> for how to + convert the resulting list to different formats.</p> </desc> </func> -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor