summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-08-07 13:09:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-08-07 13:09:42 -0700
commitbde7b8dfe688ce05f445b5ed18f22d6b2a526c3a (patch)
tree51cdb9bd8ab7673dda15cbcbc5ac65be59ceb478 /lib.h
parent1a18561313f4a66e5e454b48c08be160d9fe6c18 (diff)
downloadtxr-bde7b8dfe688ce05f445b5ed18f22d6b2a526c3a.tar.gz
txr-bde7b8dfe688ce05f445b5ed18f22d6b2a526c3a.tar.bz2
txr-bde7b8dfe688ce05f445b5ed18f22d6b2a526c3a.zip
New spl and tok: variants of tok-str and split-str.
* eval.c (eval_init): Register spl and tok intrinsics. * lib.c (spl, tok): New functions. * txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 39ac5175..cc0a65d4 100644
--- a/lib.h
+++ b/lib.h
@@ -769,8 +769,10 @@ val cat_str(val list, val sep);
val scat(val sep, ...);
val split_str(val str, val sep);
val split_str_keep(val str, val sep, val keep_sep);
+val spl(val sep, val arg1, val arg2);
val split_str_set(val str, val set);
val tok_str(val str, val tok_regex, val keep_sep);
+val tok(val tok_regex, val arg1, val arg2);
val tok_where(val str, val tok_regex);
val list_str(val str);
val trim_str(val str);