Mercurial > vim
comparison src/proto/strings.pro @ 32856:06562c9307dd v9.0.1738
patch 9.0.1738: Duplicate code to reverse a string
Commit: https://github.com/vim/vim/commit/4dd266cb66d901cf5324f09405cfea3f004bd29f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Aug 19 11:35:03 2023 +0200
patch 9.0.1738: Duplicate code to reverse a string
Problem: Duplicate code to reverse a string
Solution: Move reverse_text() to strings.c and remove string_reverse().
closes: #12847
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Aug 2023 11:45:04 +0200 |
parents | 695b50472e85 |
children | f36c3455e686 |
comparison
equal
deleted
inserted
replaced
32855:2bf128c65a66 | 32856:06562c9307dd |
---|---|
19 char_u *vim_strbyte(char_u *string, int c); | 19 char_u *vim_strbyte(char_u *string, int c); |
20 char_u *vim_strrchr(char_u *string, int c); | 20 char_u *vim_strrchr(char_u *string, int c); |
21 void sort_strings(char_u **files, int count); | 21 void sort_strings(char_u **files, int count); |
22 int has_non_ascii(char_u *s); | 22 int has_non_ascii(char_u *s); |
23 char_u *concat_str(char_u *str1, char_u *str2); | 23 char_u *concat_str(char_u *str1, char_u *str2); |
24 char_u *reverse_text(char_u *s); | |
24 char_u *string_quote(char_u *str, int function); | 25 char_u *string_quote(char_u *str, int function); |
25 long string_count(char_u *haystack, char_u *needle, int ic); | 26 long string_count(char_u *haystack, char_u *needle, int ic); |
26 void string_reverse(char_u *str, typval_T *rettv); | |
27 void string_filter_map(char_u *str, filtermap_T filtermap, typval_T *expr, typval_T *rettv); | 27 void string_filter_map(char_u *str, filtermap_T filtermap, typval_T *expr, typval_T *rettv); |
28 void string_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv); | 28 void string_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv); |
29 void f_byteidx(typval_T *argvars, typval_T *rettv); | 29 void f_byteidx(typval_T *argvars, typval_T *rettv); |
30 void f_byteidxcomp(typval_T *argvars, typval_T *rettv); | 30 void f_byteidxcomp(typval_T *argvars, typval_T *rettv); |
31 void f_charidx(typval_T *argvars, typval_T *rettv); | 31 void f_charidx(typval_T *argvars, typval_T *rettv); |