Mercurial > vim
comparison src/proto/vim9execute.pro @ 23604:1816ea68c022 v8.2.2344
patch 8.2.2344: using inclusive index for slice is not always desired
Commit: https://github.com/vim/vim/commit/6601b62943a19d4f8818c3638440663d67a17b6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 13 21:47:15 2021 +0100
patch 8.2.2344: using inclusive index for slice is not always desired
Problem: Using inclusive index for slice is not always desired.
Solution: Add the slice() method, which has an exclusive index. (closes
#7408)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 Jan 2021 22:00:04 +0100 |
parents | 1bb7fa4f9b35 |
children | f293bb501b30 |
comparison
equal
deleted
inserted
replaced
23603:483d395694b0 | 23604:1816ea68c022 |
---|---|
1 /* vim9execute.c */ | 1 /* vim9execute.c */ |
2 void to_string_error(vartype_T vartype); | 2 void to_string_error(vartype_T vartype); |
3 void funcstack_check_refcount(funcstack_T *funcstack); | 3 void funcstack_check_refcount(funcstack_T *funcstack); |
4 char_u *char_from_string(char_u *str, varnumber_T index); | 4 char_u *char_from_string(char_u *str, varnumber_T index); |
5 char_u *string_slice(char_u *str, varnumber_T first, varnumber_T last); | 5 char_u *string_slice(char_u *str, varnumber_T first, varnumber_T last, int exclusive); |
6 int fill_partial_and_closure(partial_T *pt, ufunc_T *ufunc, ectx_T *ectx); | 6 int fill_partial_and_closure(partial_T *pt, ufunc_T *ufunc, ectx_T *ectx); |
7 int call_def_function(ufunc_T *ufunc, int argc_arg, typval_T *argv, partial_T *partial, typval_T *rettv); | 7 int call_def_function(ufunc_T *ufunc, int argc_arg, typval_T *argv, partial_T *partial, typval_T *rettv); |
8 void ex_disassemble(exarg_T *eap); | 8 void ex_disassemble(exarg_T *eap); |
9 int tv2bool(typval_T *tv); | 9 int tv2bool(typval_T *tv); |
10 void emsg_using_string_as(typval_T *tv, int as_number); | 10 void emsg_using_string_as(typval_T *tv, int as_number); |