aboutsummaryrefslogtreecommitdiffstats
path: root/lib/percept/src/egd_primitives.erl
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2014-05-06 10:34:07 +0200
committerHans Bolinder <[email protected]>2015-03-10 10:21:41 +0100
commit8e7441c27485bd416abdb0253c9c92620d671065 (patch)
tree6d722b99dd0f001346450b14903e7e6f79379ecc /lib/percept/src/egd_primitives.erl
parent4037296294670e7a9bb2a3c1cdbd0236cbc15807 (diff)
downloadotp-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/percept/src/egd_primitives.erl')
0 files changed, 0 insertions, 0 deletions