0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3825: various comments could be improved

Problem:    Various comments could be improved.
Solution:   Improve the comments.
This commit is contained in:
Bram Moolenaar
2021-12-16 14:45:13 +00:00
parent 0e6adf8a29
commit 52797bae17
6 changed files with 15 additions and 4 deletions

View File

@@ -3847,6 +3847,11 @@ dbcs_screen_head_off(char_u *base, char_u *p)
return (q == p) ? 0 : 1;
}
/*
* Return offset from "p" to the start of a character, including composing
* characters. "base" must be the start of the string, which must be NUL
* terminated.
*/
int
utf_head_off(char_u *base, char_u *p)
{
@@ -4107,6 +4112,7 @@ mb_off_next(char_u *base, char_u *p)
/*
* Return the offset from "p" to the last byte of the character it points
* into. Can start anywhere in a stream of bytes.
* Composing characters are not included.
*/
int
mb_tail_off(char_u *base, char_u *p)