View Source str (etran v0.5.1)
Parse transform that implements str/2
{parse_transform,str}
compiler's option to use this transform. str(Fmt, Args) -> lists:flatten(io_lib:format(Fmt, Args))
throw(Fmt, Args) -> erlang:throw(lists:flatten(io_lib:format(Fmt, Args))
error(Fmt, Args) -> erlang:error(lists:flatten(io_lib:format(Fmt, Args))
i2l(Int) -> integer_to_list(Int) % Enabled with compiled with
% the `{d,str_i2l}' option
b2l(Bin) -> binary_to_list(Bin) % Enabled with compiled with
% the `{d,str_b2l}' option
str(Term) -> str:str(Term)
Link to this section Summary
Functions
Get custom float format from the process dictionary
Parse transform to be used by providing
{parse_transform, str}
option.Erase custom float format from the process dictionary
Store custom float format in the process dictionary Return previously stored format. Also see float_to_list/2 http://erlang.org/doc/man/erlang.html#float_to_list-2
Stringify an argument
Link to this section Functions
{parse_transform, str}
option.
-spec str(term()) -> string().