diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-06 21:31:37 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-07 23:15:53 +0300 |
commit | 171baaee93c8e257ef593b30c05405d03ac30c96 (patch) | |
tree | 61dedde22778658a32a8bfd2d4a9f00ec6482885 /src/nvim/strings.c | |
parent | 19044a15f9d41a7424e94fb3f0e257537e7afa5e (diff) | |
download | rneovim-171baaee93c8e257ef593b30c05405d03ac30c96.tar.gz rneovim-171baaee93c8e257ef593b30c05405d03ac30c96.tar.bz2 rneovim-171baaee93c8e257ef593b30c05405d03ac30c96.zip |
strings: Remove vim_strbyte
Ref #1476
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index c4bc9b204a..ada4c108cf 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -426,24 +426,6 @@ char_u *vim_strchr(const char_u *const string, const int c) } /* - * Version of strchr() that only works for bytes and handles unsigned char - * strings with characters above 128 correctly. It also doesn't return a - * pointer to the NUL at the end of the string. - */ -char_u *vim_strbyte(const char_u *string, int c) - FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE -{ - const char_u *p = string; - - while (*p != NUL) { - if (*p == c) - return (char_u *) p; - ++p; - } - return NULL; -} - -/* * Search for last occurrence of "c" in "string". * Return NULL if not found. * Does not handle multi-byte char for "c"! |