Module io_lib

An implementation of the Erlang/OTP io_lib interface.

Description

This module implements a strict subset of the Erlang/OTP io_lib interface.

Function Index

format/2 Format string and data to a string.
latin1_char_list/1 Determine if passed term is a list of ISO-8859-1 characters (0-255).

Function Details

format/2


format(Format::string(), Args::list()) -> string()

Format: format string
Args: format argument

returns: string

Format string and data to a string. Approximates features of OTP io_lib:format/2, but only supports ~p and ~n format specifiers. Raises badarg error if the number of format specifiers does not match the length of the Args.

latin1_char_list/1


latin1_char_list(Term::any()) -> boolean()

Term: term to test

returns: true if Term is a list of latin1 characters, false otherwise.

Determine if passed term is a list of ISO-8859-1 characters (0-255).