summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-06-14 20:00:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-06-14 20:00:48 -0700
commit28c6225fec6ce999806e9c077f08ed0e668646c4 (patch)
tree653d4b5c57e9eef7d37bd5fc06b2a5cfc83ff3ad /txr.1
parentdc0f9b2d38c58f7058d44e07ae04fde94356473b (diff)
downloadtxr-28c6225fec6ce999806e9c077f08ed0e668646c4.tar.gz
txr-28c6225fec6ce999806e9c077f08ed0e668646c4.tar.bz2
txr-28c6225fec6ce999806e9c077f08ed0e668646c4.zip
cat-str, split-str: sep can be character.
* lib.c (cat_str, split_str_keep): Support single character separator. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 7 insertions, 5 deletions
diff --git a/txr.1 b/txr.1
index ad3b2ee7..51c0f39f 100644
--- a/txr.1
+++ b/txr.1
@@ -22030,7 +22030,7 @@ function.
.coNP Function @ cat-str
.synb
-.mets (cat-str < string-list <> [ sep-string ])
+.mets (cat-str < string-list <> [ sep ])
.syne
.desc
The
@@ -22039,9 +22039,10 @@ function catenates a list of strings given by
.meta string-list
into a
single string. The optional
-.meta sep-string
-argument specifies a separator string
+.meta sep
+argument specifies a separator
which is interposed between the catenated strings.
+It must be either a character or a string.
.coNP Function @ split-str
.synb
@@ -22055,8 +22056,9 @@ function breaks the
into pieces, returning a list
thereof. The
.meta sep
-argument must be either a string or a regular expression.
-It specifies the separator character sequence within
+argument must be one of three types: a string, a character
+or a regular expression. It determines the separator character
+sequences within
.metn string .
All non-overlapping matches for