Function

Gntutil_onscreen_width

Declaration [src]

int
gnt_util_onscreen_width (
  const char* start,
  const char* end
)

Description [src]

Get the onscreen width of a string, or a substring.

Parameters

start const char*
 

The beginning of the string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
end const char*
 

The end of the string. The width returned is the width up to (but not including) end. If end is NULL, then start is considered as a NULL-terminated string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: int
 

The on-screen width of the string.