diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-14 20:00:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-14 20:00:48 -0700 |
commit | 28c6225fec6ce999806e9c077f08ed0e668646c4 (patch) | |
tree | 653d4b5c57e9eef7d37bd5fc06b2a5cfc83ff3ad /txr.1 | |
parent | dc0f9b2d38c58f7058d44e07ae04fde94356473b (diff) | |
download | txr-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.1 | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 |