Mercurial > vim
comparison src/proto/eval.pro @ 21823:b1f3d8a44ab6 v8.2.1461
patch 8.2.1461: Vim9: string indexes are counted in bytes
Commit: https://github.com/vim/vim/commit/e3c37d8ebf9dbbf210fde4a5fb28eb1f2a492a34
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 15 18:39:05 2020 +0200
patch 8.2.1461: Vim9: string indexes are counted in bytes
Problem: Vim9: string indexes are counted in bytes.
Solution: Use character indexes. (closes https://github.com/vim/vim/issues/6574)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Aug 2020 18:45:04 +0200 |
parents | 81c47a694479 |
children | ccad66ac6c3e |
comparison
equal
deleted
inserted
replaced
21822:1ff3fa258bf9 | 21823:b1f3d8a44ab6 |
---|---|
57 int get_name_len(char_u **arg, char_u **alias, int evaluate, int verbose); | 57 int get_name_len(char_u **arg, char_u **alias, int evaluate, int verbose); |
58 char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags); | 58 char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags); |
59 int eval_isnamec(int c); | 59 int eval_isnamec(int c); |
60 int eval_isnamec1(int c); | 60 int eval_isnamec1(int c); |
61 int eval_isdictc(int c); | 61 int eval_isdictc(int c); |
62 char_u *char_from_string(char_u *str, varnumber_T index); | |
62 int handle_subscript(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose); | 63 int handle_subscript(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose); |
63 int item_copy(typval_T *from, typval_T *to, int deep, int copyID); | 64 int item_copy(typval_T *from, typval_T *to, int deep, int copyID); |
64 void echo_one(typval_T *rettv, int with_space, int *atstart, int *needclr); | 65 void echo_one(typval_T *rettv, int with_space, int *atstart, int *needclr); |
65 void ex_echo(exarg_T *eap); | 66 void ex_echo(exarg_T *eap); |
66 void ex_echohl(exarg_T *eap); | 67 void ex_echohl(exarg_T *eap); |