mirror of
https://github.com/vim/vim.git
synced 2025-11-07 10:17:28 -05:00
patch 9.1.1016: Not possible to convert string2blob and blob2string
Problem: Not possible to convert string2blob and blob2string Solution: add support for the blob2str() and str2blob() functions closes: #16373 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1ac53b84ad
commit
1aefe1de0b
11
src/mbyte.c
11
src/mbyte.c
@@ -2106,6 +2106,17 @@ utf_byte2len(int b)
|
||||
return utf8len_tab[b];
|
||||
}
|
||||
|
||||
/*
|
||||
* Return length of UTF-8 character, obtained from the first byte.
|
||||
* "b" must be between 0 and 255!
|
||||
* Returns 0 for an invalid first byte value.
|
||||
*/
|
||||
int
|
||||
utf_byte2len_zero(int b)
|
||||
{
|
||||
return utf8len_tab_zero[b];
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the length of UTF-8 byte sequence "p[size]". Does not include any
|
||||
* following composing characters.
|
||||
|
||||
Reference in New Issue
Block a user