diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-31 02:05:02 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-31 02:05:02 +0300 |
commit | fbe60af538aa6c723779ae7a816de845460619ae (patch) | |
tree | b541ffeeaa5046de170cac688c72aeb891c61ebb /src/nvim/mbyte.c | |
parent | 1011462b40502e6039494e70a870f0360f152b1b (diff) | |
parent | 13e8356f52d9dc1da96179ee425168740874c8c7 (diff) | |
download | rneovim-fbe60af538aa6c723779ae7a816de845460619ae.tar.gz rneovim-fbe60af538aa6c723779ae7a816de845460619ae.tar.bz2 rneovim-fbe60af538aa6c723779ae7a816de845460619ae.zip |
Merge branch 'master' into colored-cmdline
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 4aee1c8e68..b24770a409 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -932,12 +932,12 @@ int utf_char2len(int c) return 6; } -/* - * Convert Unicode character "c" to UTF-8 string in "buf[]". - * Returns the number of bytes. - * This does not include composing characters. - */ -int utf_char2bytes(int c, char_u *buf) +/// Convert Unicode character to UTF-8 string +/// +/// @param c character to convert to \p buf +/// @param[out] buf UTF-8 string generated from \p c, does not add \0 +/// @return Number of bytes (1-6). Does not include composing characters. +int utf_char2bytes(int c, char_u *const buf) { if (c < 0x80) { /* 7 bits */ buf[0] = c; |