forked from aniani/vim
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>
This commit is contained in:
committed by
Christian Brabandt
parent
b102728c20
commit
4dd266cb66
@@ -1,7 +1,6 @@
|
||||
/* search.c */
|
||||
int search_regcomp(char_u *pat, char_u **used_pat, int pat_save, int pat_use, int options, regmmatch_T *regmatch);
|
||||
char_u *get_search_pat(void);
|
||||
char_u *reverse_text(char_u *s);
|
||||
void save_re_pat(int idx, char_u *pat, int magic);
|
||||
void save_search_patterns(void);
|
||||
void restore_search_patterns(void);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user