From 68d53c01b0b8e9a007a6a30158c19e34b2d2a34e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= This module contains functions for converting to and from
strings (lists of characters). They are used for implementing the
- functions in the
A continuation as returned by
A continuation as returned by
+
Description:
+Where:
Returns a character list which represents a new line - character.
+For details, see
+
Returns a character list which represents
-1> lists:flatten(io_lib:write({1,[2],[3],[4,5],6,7,8,9})). -"{1,[2],[3],[4,5],6,7,8,9}" -2> lists:flatten(io_lib:write({1,[2],[3],[4,5],6,7,8,9}, 5)). -"{1,[2],[3],[...],...}"+
Returns
Also returns a list of characters which represents
-
Returns
Returns a character list which represents
Returns
If (and only if) the Unicode translation modifier is used - in the format string (i.e. ~ts or ~tc), the resulting list - may contain characters beyond the ISO-latin-1 character - range (in other words, numbers larger than 255). If so, the - result is not an ordinary Erlang string(), but can well be - used in any context where Unicode data is allowed.
- +Returns a character list that represents
If and only if the Unicode translation modifier is used in the
+ format string (that is,
Tries to read
Tries to read
The function returns:
The string was read.
The string was read.
The string was read, but more input is needed in order
- to complete the original format string.
The string was read, but more input is needed to complete the
+ original format string.
The read operation failed and the parameter
The read operation failed and parameter
Example:
+Example:
3> io_lib:fread("~f~f~f", "15.6 17.3e-6 24.5"). {ok,[15.6,1.73e-5,24.5],[]}
This is the re-entrant formatted reader. The continuation of
- the first call to the functions must be
The function returns:
The input is complete. The result is one of the - following:
+The input is complete. The result is one of the following:
The string was read.
The string was read.
End of file has been encountered. +
End of file was encountered.
An error occurred and the parameter
An error occurred and parameter
More data is required to build a term.
-
Returns the list of characters needed to print the atom
-
Returns the indentation if
Returns the list of characters needed to print
-
Returns
Returns the list of characters needed to print
-
Returns a character list that represents a new line character.
Returns the list of characters needed to print
-
Returns a list of characters that represents
+
Returns the list of characters needed to print a character - constant in the Unicode character set.
+Returns
Returns the list of characters needed to print a character - constant in the Unicode character set. Non-Latin-1 characters - are escaped.
+Returns
What is a printable character in this case is determined by
+ startup flag
Returns the list of characters needed to print a character - constant in the ISO-latin-1 character set.
+Returns
Returns a list corresponding to the given format string, +
Returns a list corresponding to the specified format string,
where control sequences have been replaced with
- corresponding tuples. This list can be passed to
A typical use of this function is to replace unbounded-size
control sequences like
See
See
For details, see
+
Returns the indentation if
Returns a character list that represents
Example:
++1> lists:flatten(io_lib:write({1,[2],[3],[4,5],6,7,8,9})). +"{1,[2],[3],[4,5],6,7,8,9}" +2> lists:flatten(io_lib:write({1,[2],[3],[4,5],6,7,8,9}, 5)). +"{1,[2],[3],[...],...}"
Returns
Returns the list of characters needed to print atom
+
Returns
Returns the list of characters needed to print a character + constant in the Unicode character set.
Returns
Returns the list of characters needed to print a character + constant in the Unicode character set. Non-Latin-1 characters + are escaped.
Returns
Returns the list of characters needed to print a character + constant in the ISO Latin-1 character set.
Returns
What is a printable character in this case is determined by the
-
Returns the list of characters needed to print
+
Returns
Returns the list of characters needed to print
+
Returns
Returns the list of characters needed to print
+