diff options
author | Richard Carlsson <[email protected]> | 2014-05-06 10:34:07 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-03-10 10:21:41 +0100 |
commit | 8e7441c27485bd416abdb0253c9c92620d671065 (patch) | |
tree | 6d722b99dd0f001346450b14903e7e6f79379ecc /lib/stdlib/test/random_iolist.erl | |
parent | 4037296294670e7a9bb2a3c1cdbd0236cbc15807 (diff) | |
download | otp-8e7441c27485bd416abdb0253c9c92620d671065.tar.gz otp-8e7441c27485bd416abdb0253c9c92620d671065.tar.bz2 otp-8e7441c27485bd416abdb0253c9c92620d671065.zip |
Make the scanned form of the io_lib format strings available for processing
This adds three new functions to io_lib - scan_format/2, unscan_format/1,
and build_text/1 - which expose the parsed form of the format control
sequences to make it possible to easily modify or filter the input to
io_lib:format/2. This can e.g. be used in order to replace unbounded-size
control sequences like ~w or ~p with corresponding depth-limited ~W and ~P
before doing the actual formatting.
Diffstat (limited to 'lib/stdlib/test/random_iolist.erl')
0 files changed, 0 insertions, 0 deletions