summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-22 19:57:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-22 19:57:42 -0700
commite0092558ad119f9a3c16b9f357e7ca0dcdf1044c (patch)
tree26fd17118ef8a6cb0b3410cb93cc70cad9eb0978 /lib.c
parent9c2fcf3aeae6cd112a1e5b5e8374a03cf5217c9b (diff)
downloadtxr-e0092558ad119f9a3c16b9f357e7ca0dcdf1044c.tar.gz
txr-e0092558ad119f9a3c16b9f357e7ca0dcdf1044c.tar.bz2
txr-e0092558ad119f9a3c16b9f357e7ca0dcdf1044c.zip
New sspl function.
* eval (eval_init): Register sspl, an argument-reversed interface to split-str-set. * lib.c (sspl): New function. * lib.h (sspl): Declared. * txr.1: Documented.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 4fcd12cc..fb9b24fc 100644
--- a/lib.c
+++ b/lib.c
@@ -5060,6 +5060,11 @@ val split_str_set(val str, val set)
return out;
}
+val sspl(val set, val str)
+{
+ return split_str_set(str, set);
+}
+
val tok_str(val str, val tok_regex, val keep_sep)
{
list_collect_decl (out, iter);