From acd0ee9d1301a96f6f2fe1b19c12b3639c77c59e Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Tue, 15 Jan 2013 08:41:05 +0100 Subject: [stdlib] Introduce new functions epp:read_encoding_from_binary/1,2 --- lib/stdlib/doc/src/epp.xml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lib/stdlib/doc') diff --git a/lib/stdlib/doc/src/epp.xml b/lib/stdlib/doc/src/epp.xml index 3e8aba2e5f..df7bf883fc 100644 --- a/lib/stdlib/doc/src/epp.xml +++ b/lib/stdlib/doc/src/epp.xml @@ -4,7 +4,7 @@
- 19962012 + 19962013 Ericsson AB. All Rights Reserved. @@ -109,7 +109,8 @@ Return a string representation of an encoding

Returns a string representation of an encoding. The string - is recognized by read_encoding/1,2 and + is recognized by read_encoding/1,2, + read_encoding_from_binary/1,2, and set_encoding/1 as a valid encoding.

@@ -127,6 +128,20 @@ occur in a comment.

+ + + + Read the encoding from a binary + +

Read the encoding from + a binary. Returns the read encoding, or none if no + valid encoding was found.

+

The option in_comment_only is true by + default, which is correct for Erlang source files. If set to + false the encoding string does not necessarily have to + occur in a comment.

+
+
Read and set the encoding of an IO device -- cgit v1.2.3