diff options
Diffstat (limited to 'lib/stdlib/doc/src/binary.xml')
-rw-r--r-- | lib/stdlib/doc/src/binary.xml | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/stdlib/doc/src/binary.xml b/lib/stdlib/doc/src/binary.xml index 220caaaaee..07f55ed30e 100644 --- a/lib/stdlib/doc/src/binary.xml +++ b/lib/stdlib/doc/src/binary.xml @@ -5,7 +5,7 @@ <header> <copyright> <year>2009</year> - <year>2021</year> + <year>2023</year> <holder>Ericsson AB, All Rights Reserved</holder> </copyright> <legalnotice> @@ -244,15 +244,23 @@ <func> <name name="encode_hex" arity="1" since="OTP 24.0"/> - <fsummary>Encodes a binary into a hex encoded binary.</fsummary> + <name name="encode_hex" arity="2" since="OTP @OTP-18354@"/> + <fsummary>Encodes a binary into a hex encoded binary with specified case</fsummary> <desc> - <p>Encodes a binary into a hex encoded binary.</p> + <p>Encodes a binary into a hex encoded binary using the specified case for the hexadecimal digits "a" to "f".</p> + <p>The default case is <c>uppercase</c>.</p> + <p><em>Example:</em></p> - <p><em>Example:</em></p> - - <code> + <code> 1> binary:encode_hex(<<"f">>). -<<"66">></code> +<<"66">> +2> binary:encode_hex(<<"/">>). +<<"2F">> +3> binary:encode_hex(<<"/">>, lowercase). +<<"2f">> +4> binary:encode_hex(<<"/">>, uppercase). +<<"2F">> + </code> </desc> </func> |