summaryrefslogtreecommitdiffstats
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-16 14:45:13 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-16 14:45:13 +0000
commit52797bae1710621926c03a2611c40a692c96fb44 (patch)
tree3cf4bedc9079f69fb3adb8ebf61361451fa04c1a /src/mbyte.c
parent0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471 (diff)
patch 8.2.3825: various comments could be improvedv8.2.3825
Problem: Various comments could be improved. Solution: Improve the comments.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index 759be8bd7a..0e9c926534 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -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)