1
0
forked from aniani/vim

patch 9.0.1515: reverse() does not work for a String

Problem:    reverse() does not work for a String.
Solution:   Implement reverse() for a String. (Yegappan Lakshmanan,
            closes #12179)
This commit is contained in:
Yegappan Lakshmanan
2023-05-06 14:08:21 +01:00
committed by Bram Moolenaar
parent 45fcb7928a
commit 03ff1c2dde
8 changed files with 76 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ int has_non_ascii(char_u *s);
char_u *concat_str(char_u *str1, char_u *str2);
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);