diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-10-18 07:36:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-10-18 07:36:43 -0700 |
commit | 3155a0ff116255c07985d568980b802a7fe22385 (patch) | |
tree | 01e77f8855756a846766c760dae23be2e74ae8df /stdlib/doc-syms.tl | |
parent | 400f0117b316015b806eafb71bf9c020d6413204 (diff) | |
download | txr-3155a0ff116255c07985d568980b802a7fe22385.tar.gz txr-3155a0ff116255c07985d568980b802a7fe22385.tar.bz2 txr-3155a0ff116255c07985d568980b802a7fe22385.zip |
pic: new feature: digit-separating commas.
This allows for pic patterns like #,###,###.###
which incorporate digit separating commas into the output.
* stdlib/pic.tl (comma-positions, insert-commas,
expand-pic-num-commas): New system functions.
(expand-pic): Recogize comma as a character which can be
escaped using the tilde. Recognize a more complicated numeric
pattern with commas. If the matched token contains commas,
treat it using expand-pic-num-commas.
(pic): Propagate a copy of the new numeric pattern here, where
it is used for separation into tokens.
* txr.1: Documented.
Diffstat (limited to 'stdlib/doc-syms.tl')
0 files changed, 0 insertions, 0 deletions