mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
vim-patch:8.2.3825: various comments could be improved
Problem: Various comments could be improved.
Solution: Improve the comments.
52797bae17
This commit is contained in:
@@ -1609,7 +1609,8 @@ void show_utf8(void)
|
||||
msg((char *)IObuff);
|
||||
}
|
||||
|
||||
/// Return offset from "p" to the first byte of the character it points into.
|
||||
/// 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.
|
||||
/// If "p" points to the NUL at the end of the string return 0.
|
||||
/// Returns 0 when already at the first byte of a character.
|
||||
int utf_head_off(const char_u *base, const char_u *p)
|
||||
@@ -1850,10 +1851,9 @@ int mb_off_next(char_u *base, char_u *p)
|
||||
return i;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the offset from "p" to the last byte of the character it points
|
||||
* into. Can start anywhere in a stream of bytes.
|
||||
*/
|
||||
/// 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)
|
||||
{
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user