diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-19 11:35:03 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-19 11:35:03 +0200 |
commit | 4dd266cb66d901cf5324f09405cfea3f004bd29f (patch) | |
tree | 107f870fe1c042d11466e459c3aaa1988b2d3bcf /src/proto/strings.pro | |
parent | b102728c204430b16a5d9e6720c882e12a687570 (diff) |
patch 9.0.1738: Duplicate code to reverse a stringv9.0.1738
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>
Diffstat (limited to 'src/proto/strings.pro')
-rw-r--r-- | src/proto/strings.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/strings.pro b/src/proto/strings.pro index 8924a25715..aa8b374c34 100644 --- a/src/proto/strings.pro +++ b/src/proto/strings.pro @@ -21,9 +21,9 @@ char_u *vim_strrchr(char_u *string, int c); void sort_strings(char_u **files, int count); int has_non_ascii(char_u *s); char_u *concat_str(char_u *str1, char_u *str2); +char_u *reverse_text(char_u *s); char_u *string_quote(char_u *str, int function); long string_count(char_u *haystack, char_u *needle, int ic); -void string_reverse(char_u *str, typval_T *rettv); void string_filter_map(char_u *str, filtermap_T filtermap, typval_T *expr, typval_T *rettv); void string_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv); void f_byteidx(typval_T *argvars, typval_T *rettv); |