summaryrefslogtreecommitdiffstats
path: root/tests/002
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-08-09 06:28:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-08-09 06:28:58 -0700
commita5e69db365a98857ac2594590614a981d5f9ae74 (patch)
treeb55fcc2b4ed6ee7bb6e645f861e0c47efaee601e /tests/002
parent9a067618e82ca2a34960376725952c3439db6fa0 (diff)
downloadtxr-a5e69db365a98857ac2594590614a981d5f9ae74.tar.gz
txr-a5e69db365a98857ac2594590614a981d5f9ae74.tar.bz2
txr-a5e69db365a98857ac2594590614a981d5f9ae74.zip
base-name: optionally remove suffix.
The base-name function now takes a second argument which is optional, specifying a suffix to be removed. The behavior is similar to that of the second argument of the POSIX basename command. * stream.c (base_name): Second argument added. If present, the returned value is adjusted by trimming the suffix, unless that would cause an empty string to be returned. (stream_init): Update registration of base-name intrinsic. * stream.h (base_name): Declaration updated. * txr.1: New base-name parameter documented.
Diffstat (limited to 'tests/002')
0 files changed, 0 insertions, 0 deletions