diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-01-26 19:43:14 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-01-26 19:43:14 -0800 |
commit | d011fda9b6b078f09027eb65d500c8beffc99414 (patch) | |
tree | 0b526083a03a6f541ed46829deecee17c9c5f50b /lib.h | |
parent | fbe0c77a06a711bd746261406e47c16c55e660a8 (diff) | |
download | txr-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |