From 5b68f914f08479759d36557282aee29f44683d97 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Fri, 25 Jan 2013 10:36:57 +0100 Subject: [stdlib] Remove documentation of ~tp There seems to be a need for a more elaborate solution when it comes to recognizing printable Unicode characters. The ~tp syntax is experimental, and may be removed in R16B. --- lib/stdlib/doc/src/io.xml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'lib/stdlib/doc') diff --git a/lib/stdlib/doc/src/io.xml b/lib/stdlib/doc/src/io.xml index 67edc013d4..fa475804eb 100644 --- a/lib/stdlib/doc/src/io.xml +++ b/lib/stdlib/doc/src/io.xml @@ -493,9 +493,8 @@ ok ~w, but breaks terms whose printed representation is longer than one line into many lines and indents each line sensibly. It also tries to detect lists of - printable characters and to output these as strings. The - Unicode translation modifier is used for determining - what characters are printable. For example:

+ printable characters and to output these as strings. + For example:

 5> T = [{attributes,[[{id,age,1.50000},{mode,explicit},
 {typename,"INTEGER"}], [{id,cho},{mode,explicit},{typename,'Cho'}]]},
@@ -533,19 +532,6 @@ Here T = [{attributes,[[{id,age,1.5},
           {typename,'Person'},
           {tag,{'PRIVATE',3}},
           {mode,implicit}]
-ok
-

Binaries that look like UTF-8 encoded strings will be - output with the string syntax if the Unicode translation - modifier is given:

-
-9> io:fwrite("~p~n",[[1024]]).
-[1024]
-10> io:fwrite("~tp~n",[[1024]]).
-"\x{400}"
-11> io:fwrite("~tp~n", [<<128,128>>]).
-<<128,128>>
-12> io:fwrite("~tp~n", [<<208,128>>]).
-<<"\x{400}"/utf8>>
 ok
W -- cgit v1.2.3