MCPcopy Index your code
hub / github.com/git/git / item_length

Function item_length

column.c:27–30  ·  view source on GitHub ↗

return length of 's' in letters, ANSI escapes stripped */

Source from the content-addressed store, hash-verified

25
26/* return length of 's' in letters, ANSI escapes stripped */
27static int item_length(const char *s)
28{
29 return utf8_strnwidth(s, strlen(s), 1);
30}
31
32/*
33 * Calculate cell width, rows and cols for a table of equal cells, given

Callers 1

display_tableFunction · 0.85

Calls 1

utf8_strnwidthFunction · 0.85

Tested by

no test coverage detected