source/git-1.7.6.4/utf8.c
/*
 * This function returns the number of columns occupied by the character
 * pointed to by the variable start. The pointer is updated to point at
 * the next character. When remainder_p is not NULL, it points at the
 * location that stores the number of remaining bytes we can use to pick
 * a character (see pick_one_utf8_char() above).
 */
This function returns the number of columns occupied by the character
pointed to by the variable start. The pointer is updated to point at
the next character. When remainder_p is not NULL, it points at the
location that stores the number of remaining bytes we can use to pick
a character  above).
This function returns the number of columns occupied by the character pointed to by the variable start . The pointer is updated to point at the next character . When remainder_p is not NULL it points at the location that stores the number of remaining bytes we can use to pick a character above ) .
int utf8_width(const char **start, size_t *remainder_p)
{
	ucs_char_t ch = pick_one_utf8_char(start, remainder_p);
	if (!*start)
		return 0;
	return git_wcwidth(ch);
}
int utf8_width ( const char * * start , size_t * remainder_p ) { ucs_char_t ch = pick_one_utf8_char ( start , remainder_p ) ; if ( ! * start ) return 0 ; return git_wcwidth ( ch ) ; }
This function returns the number of columns occupied by the character
 pointed to by the variable start.
This function returns the number of columns occupied by the character pointed to by the variable start .