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
Returns a character list which represents a new line character.
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],[...],...}"
Also returns a list of characters which represents
Returns a character list which represents
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.
Tries to read
The string was read.
The string was read, but more input is needed in order
to complete the original format string.
The read operation failed and the parameter
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 string was read.
End of file has been encountered.
An error occurred and the parameter
More data is required to build a term.
Returns the list of characters needed to print the atom
Returns the list of characters needed to print
Returns the list of characters needed to print
Returns the list of characters needed to print
Returns the list of characters needed to print a character constant in the ISO-latin-1 character set.
Returns the list of characters needed to print a character constant in the Unicode character set.
Returns the list of characters needed to print a character constant in the Unicode character set. Non-Latin-1 characters are escaped.
Returns the indentation if
Returns
Returns
Returns
Returns
Returns
Returns