diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-26 17:50:03 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-02 15:36:13 -0300 |
commit | 7a4d24d4cc29ecd172b2848d97b0afca25c34973 (patch) | |
tree | e7f566fd21acb56911cd97fa2bd97de93580fde9 /src/strings.h | |
parent | 018bb73296eae20d608e068a500eaafe6e69876f (diff) | |
download | rneovim-7a4d24d4cc29ecd172b2848d97b0afca25c34973.tar.gz rneovim-7a4d24d4cc29ecd172b2848d97b0afca25c34973.tar.bz2 rneovim-7a4d24d4cc29ecd172b2848d97b0afca25c34973.zip |
Extract strings.c from misc2.c
Diffstat (limited to 'src/strings.h')
-rw-r--r-- | src/strings.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/strings.h b/src/strings.h new file mode 100644 index 0000000000..bd34d870ea --- /dev/null +++ b/src/strings.h @@ -0,0 +1,26 @@ +#ifndef NEOVIM_STRINGS_H +#define NEOVIM_STRINGS_H +char_u *vim_strsave(char_u *string); +char_u *vim_strnsave(char_u *string, int len); +char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars); +char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, + int cc, + int bsl); +char_u *vim_strsave_shellescape(char_u *string, bool do_special, bool do_newline); +char_u *vim_strsave_up(char_u *string); +char_u *vim_strnsave_up(char_u *string, int len); +void vim_strup(char_u *p); +char_u *strup_save(char_u *orig); +void copy_spaces(char_u *ptr, size_t count); +void copy_chars(char_u *ptr, size_t count, int c); +void del_trailing_spaces(char_u *ptr); +void vim_strncpy(char_u *to, char_u *from, size_t len); +void vim_strcat(char_u *to, char_u *from, size_t tosize); +int vim_stricmp(char *s1, char *s2); +int vim_strnicmp(char *s1, char *s2, size_t len); +char_u *vim_strchr(char_u *string, int c); +char_u *vim_strbyte(char_u *string, int c); +char_u *vim_strrchr(char_u *string, int c); +int vim_isspace(int x); +void sort_strings(char_u **files, int count); +#endif |