utf8.c: mark file-local function static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
2
utf8.c
2
utf8.c
@ -163,7 +163,7 @@ static int git_wcwidth(ucs_char_t ch)
|
|||||||
* If the string was not a valid UTF-8, *start pointer is set to NULL
|
* If the string was not a valid UTF-8, *start pointer is set to NULL
|
||||||
* and the return value is undefined.
|
* and the return value is undefined.
|
||||||
*/
|
*/
|
||||||
ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p)
|
static ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p)
|
||||||
{
|
{
|
||||||
unsigned char *s = (unsigned char *)*start;
|
unsigned char *s = (unsigned char *)*start;
|
||||||
ucs_char_t ch;
|
ucs_char_t ch;
|
||||||
|
1
utf8.h
1
utf8.h
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
typedef unsigned int ucs_char_t; /* assuming 32bit int */
|
typedef unsigned int ucs_char_t; /* assuming 32bit int */
|
||||||
|
|
||||||
ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
|
|
||||||
int utf8_width(const char **start, size_t *remainder_p);
|
int utf8_width(const char **start, size_t *remainder_p);
|
||||||
int utf8_strwidth(const char *string);
|
int utf8_strwidth(const char *string);
|
||||||
int is_utf8(const char *text);
|
int is_utf8(const char *text);
|
||||||
|
Reference in New Issue
Block a user