summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-01-26 19:43:14 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-01-26 19:43:14 -0800
commitd011fda9b6b078f09027eb65d500c8beffc99414 (patch)
tree0b526083a03a6f541ed46829deecee17c9c5f50b /lib.h
parentfbe0c77a06a711bd746261406e47c16c55e660a8 (diff)
downloadtxr-d011fda9b6b078f09027eb65d500c8beffc99414.tar.gz
txr-d011fda9b6b078f09027eb65d500c8beffc99414.tar.bz2
txr-d011fda9b6b078f09027eb65d500c8beffc99414.zip
* arith.c (plus, minus): Better wording in error messages.
* eval.c (dwim_loc): Assignments to string indices and ranges supported. New arguments for this purpose. (op_modplace): Use new dwim_loc interface for returned value. (op_dwim): Support assignment to string ranges. (eval_init): replace_str registered. * lib.c (string_extend): If the argument is a number, let it specify the amount by which to extend the string. (replace_str): New function. * lib.h (replace_str): Declared. * txr.1: Updated. * txr.vim: Updated.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index f079dd25..3b03d7d2 100644
--- a/lib.h
+++ b/lib.h
@@ -420,6 +420,7 @@ val length_str(val str);
const wchar_t *c_str(val str);
val search_str(val haystack, val needle, val start_num, val from_end);
val search_str_tree(val haystack, val tree, val start_num, val from_end);
+val replace_str(val str_in, val from, val to, val items);
val sub_str(val str_in, val from_num, val to_num);
val cat_str(val list, val sep);
val split_str(val str, val sep);