diff options
| author | ckelsel <ckelsel@hotmail.com> | 2017-07-29 09:33:29 +0800 |
|---|---|---|
| committer | ckelsel <ckelsel@hotmail.com> | 2017-07-29 09:33:29 +0800 |
| commit | 973bc2b7e0ef1ca33764410ba0a22fc57bd42366 (patch) | |
| tree | 5add9a29ea124d8012d11b11095faca28a623f84 /src/nvim/mbyte.c | |
| parent | 3e0536eb295309c728acca386ec35756b7e034f6 (diff) | |
| parent | 707bb3749459fb30c02701b63553af7a3460f980 (diff) | |
| download | rneovim-973bc2b7e0ef1ca33764410ba0a22fc57bd42366.tar.gz rneovim-973bc2b7e0ef1ca33764410ba0a22fc57bd42366.tar.bz2 rneovim-973bc2b7e0ef1ca33764410ba0a22fc57bd42366.zip | |
Merge remote-tracking branch 'upstream/master'
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 2acfb896d8..3fad6c789d 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; |
