From b2b0feab152063f71c4bf58f985cd52fc9e0105a Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Fri, 11 Jan 2013 14:42:54 +0100 Subject: Extend char() to Unicode characters The code related to the introduction of unicode_string() and unicode_char() has been removed. The types char() and string() have been extended to include Unicode characters. In fact char() was changed some time ago; this commit is about cleaning up the documentation and introduce better names for some functions. --- lib/stdlib/doc/src/io_lib.xml | 67 ++++++++++++++++++++++++++++++++++++++++-- lib/stdlib/doc/src/unicode.xml | 20 +++---------- 2 files changed, 68 insertions(+), 19 deletions(-) (limited to 'lib/stdlib/doc') diff --git a/lib/stdlib/doc/src/io_lib.xml b/lib/stdlib/doc/src/io_lib.xml index 7487cb5740..001d34a7c2 100644 --- a/lib/stdlib/doc/src/io_lib.xml +++ b/lib/stdlib/doc/src/io_lib.xml @@ -4,7 +4,7 @@
- 19962012 + 19962013 Ericsson AB. All Rights Reserved. @@ -53,6 +53,9 @@ + + + @@ -207,13 +210,47 @@ Write a string -

Returns the list of characters needed to print String - as a string.

+

Returns the list of characters needed to print + String as a string.

+
+
+ + + Write a string + +

Returns the list of characters needed to print + String as a string. Non-Latin-1 + characters are escaped.

+
+
+ + + Write an ISO-latin-1 string + +

Returns the list of characters needed to print + Latin1String as a string.

Write a character + +

Returns the list of characters needed to print a character + constant in the Unicode character set.

+
+
+ + + Write a character + +

Returns the list of characters needed to print a character + constant in the Unicode character set. Non-Latin-1 characters + are escaped.

+
+
+ + + Write an ISO-latin-1 character

Returns the list of characters needed to print a character constant in the ISO-latin-1 character set.

@@ -230,6 +267,14 @@ Test for a list of characters + +

Returns true if Term is a flat list of + characters in the Unicode range, otherwise it returns false.

+
+
+ + + Test for a list of ISO-latin-1 characters

Returns true if Term is a flat list of characters in the ISO-latin-1 range, otherwise it returns false.

@@ -238,6 +283,14 @@ Test for a deep list of characters + +

Returns true if Term is a, possibly deep, list + of characters in the Unicode range, otherwise it returns false.

+
+
+ + + Test for a deep list of characters

Returns true if Term is a, possibly deep, list of characters in the ISO-latin-1 range, otherwise it returns false.

@@ -245,6 +298,14 @@
+ Test for a list of printable characters + +

Returns true if Term is a flat list of + printable Unicode characters, otherwise it returns false.

+
+
+ + Test for a list of printable ISO-latin-1 characters

Returns true if Term is a flat list of diff --git a/lib/stdlib/doc/src/unicode.xml b/lib/stdlib/doc/src/unicode.xml index d235f3e180..deba6adb11 100644 --- a/lib/stdlib/doc/src/unicode.xml +++ b/lib/stdlib/doc/src/unicode.xml @@ -5,7 +5,7 @@

1996 - 2012 + 2013 Ericsson AB, All Rights Reserved @@ -51,20 +51,11 @@

A binary() with characters encoded in the UTF-8 coding standard.

- - - -

An integer() representing a valid Unicode codepoint.

-
-
- -

A unicode_binary() is allowed as the tail of the list.

-
@@ -78,10 +69,6 @@ - -

An external_unicode_binary() is allowed as the tail - of the list.

-
@@ -96,11 +83,12 @@ +

The same as iodata().

+
-

A latin1_binary() is allowed as the tail of - the list.

+

The same as iolist().

-- cgit v1.2.3