diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-07-10 08:44:16 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-07-10 08:44:16 -0700 |
commit | 91d1a70c1d64c67bbaa5dc94dabf7461ad97bb8d (patch) | |
tree | 08f93715512867f64d942fcecaddece9e2d7b141 /stdlib | |
parent | 44fc04addc852cd4d0bbfa53a44b69679aaa29c2 (diff) | |
download | txr-91d1a70c1d64c67bbaa5dc94dabf7461ad97bb8d.tar.gz txr-91d1a70c1d64c67bbaa5dc94dabf7461ad97bb8d.tar.bz2 txr-91d1a70c1d64c67bbaa5dc94dabf7461ad97bb8d.zip |
New functions: trim-short-suffix, trim-long-suffix.
* lib.c, lib.h (chk_substrdup): New function.
* stream.c, stream.h (trim_short_suffix, trim_long_suffix):
New functions.
(stream_init): trim-short-suffix and trim-long-suffix
intrinsics registered.
* tests/018/path.tl: New tests.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/doc-syms.tl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl index b2bfa33e..c4a116c4 100644 --- a/stdlib/doc-syms.tl +++ b/stdlib/doc-syms.tl @@ -1922,7 +1922,9 @@ ("trie-lookup-feed-char" "N-014E6D7B") ("trie-value-at" "N-012A1BAD") ("trim-left" "N-00CF29CC") + ("trim-long-suffix" "N-03CAC692") ("trim-right" "N-00CF29CC") + ("trim-short-suffix" "N-03CAC692") ("trim-str" "N-00E6E63B") ("true" "N-00373D97") ("trunc" "D-005C") |