diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-05-06 14:08:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-06 14:08:21 +0100 |
commit | 03ff1c2dde7f15eca5c9baa6dafbda9b49bedc3b (patch) | |
tree | 9d9a4484cd2fb33dacf9322e648cf2299a88ea7f /src/proto/strings.pro | |
parent | 45fcb7928af8ac9bc5685ce7c804b8250866a874 (diff) |
patch 9.0.1515: reverse() does not work for a Stringv9.0.1515
Problem: reverse() does not work for a String.
Solution: Implement reverse() for a String. (Yegappan Lakshmanan,
closes #12179)
Diffstat (limited to 'src/proto/strings.pro')
-rw-r--r-- | src/proto/strings.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/strings.pro b/src/proto/strings.pro index a72e1ff5ed..8924a25715 100644 --- a/src/proto/strings.pro +++ b/src/proto/strings.pro @@ -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); |