diff options
author | Patrik Nyblom <[email protected]> | 2013-02-13 17:24:05 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2013-02-18 11:49:11 +0100 |
commit | 1b4280cd2e8dcab457562bbaacc4e1d16d372185 (patch) | |
tree | 20a060241b34237ac42fbdf78819d00fc3e6f272 /lib/stdlib/doc/src/io.xml | |
parent | 75238dc582f5dcf69dfc00b7719dca7d50ca9a68 (diff) | |
download | otp-1b4280cd2e8dcab457562bbaacc4e1d16d372185.tar.gz otp-1b4280cd2e8dcab457562bbaacc4e1d16d372185.tar.bz2 otp-1b4280cd2e8dcab457562bbaacc4e1d16d372185.zip |
Document +pc flag and io:printable_range/0
Diffstat (limited to 'lib/stdlib/doc/src/io.xml')
-rw-r--r-- | lib/stdlib/doc/src/io.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/io.xml b/lib/stdlib/doc/src/io.xml index 63f814ad2e..90f24c4cbc 100644 --- a/lib/stdlib/doc/src/io.xml +++ b/lib/stdlib/doc/src/io.xml @@ -211,6 +211,18 @@ </desc> </func> <func> + <name name="printable_range" arity="0"/> + <fsummary>Get user requested printable character range</fsummary> + <desc> + <p>Return the user requested range of printable Unicode characters.</p> + <p>The user can request a range of characters that are to be considered printable in heuristic detection of strings by the shell and by the formatting functions. This is done by supplying <c>+pc <range></c> when starting Erlang.</p> + <p>Currently the only valid values for <c><range></c> are <c>latin1</c> and <c>unicode</c>. <c>latin1</c> means that only code points below 256 (with the exception of control characters etc) will be considered printable. <c>unicode</c> means that all printable characters in all unicode character ranges are considered printable by the io functions.</p> + <p>By default, Erlang is started so that only the <c>latin1</c> range of characters will indicate that a list of integers is a string.</p> + <p>The simplest way to utilize the setting is to call <seealso marker="io_lib#printable_list/1">io_lib:printable_list/1</seealso>, which will use the return value of this function to decide if a list is a string of printable characters or not.</p> + <note><p>In the future, this function may return more values and ranges. It is recommended to use the io_lib:printable_list/1 function to avoid compatibility problems.</p></note> + </desc> + </func> + <func> <name name="setopts" arity="1"/> <name name="setopts" arity="2"/> <fsummary>Set options</fsummary> |