utf8width

Computes the width of a UTF-8 character.

Library:LibC
Classification:Novell
Service:Characters and Strings

Syntax

  #include <utf8.h> 
   
  size_t   utf8width   (
     const utf8_t   *ch);
  

Parameters

ch

(IN) Points to the character whose width in bytes is to be calculated.

Return Values

Returns the number of bytes used by the UTF-8 character or 0 if the character is not a valid UTF-8 character.

See Also

utf8len