aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-14 13:44:18 +0100
committerGitHub <noreply@github.com>2021-11-14 13:44:18 +0100
commit27f8b04f1791c29825bbe4b10e4a8db9472ecaee (patch)
tree1d8e2cd43baaca7f94ca08689b11231a128ec7cc /src/nvim/mbyte.c
parentee3a58d42e7fce666eef570db6f2944c29303d98 (diff)
parent71a4d275dc3fa71c656c0d2423f60904822aa223 (diff)
downloadrneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.tar.gz
rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.tar.bz2
rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.zip
Merge pull request #16315 from bfredl/multibytes
refactor(multibyte): eliminate mb_* aliases for utf_* functions
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r--src/nvim/mbyte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index cc488d486f..b10e33d0c2 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -564,7 +564,7 @@ size_t mb_string2cells(const char_u *str)
{
size_t clen = 0;
- for (const char_u *p = str; *p != NUL; p += (*mb_ptr2len)(p)) {
+ for (const char_u *p = str; *p != NUL; p += utfc_ptr2len(p)) {
clen += utf_ptr2cells(p);
}
@@ -705,7 +705,7 @@ int mb_ptr2char_adv(const char_u **const pp)
int c;
c = utf_ptr2char(*pp);
- *pp += (*mb_ptr2len)(*pp);
+ *pp += utfc_ptr2len(*pp);
return c;
}
@@ -2054,7 +2054,7 @@ int mb_charlen(char_u *str)
}
for (count = 0; *p != NUL; count++) {
- p += (*mb_ptr2len)(p);
+ p += utfc_ptr2len(p);
}
return count;
@@ -2069,7 +2069,7 @@ int mb_charlen_len(char_u *str, int len)
int count;
for (count = 0; *p != NUL && p < str + len; count++) {
- p += (*mb_ptr2len)(p);
+ p += utfc_ptr2len(p);
}
return count;