utf8cspn

Computes the length of a string consisting of characters not from a given set.

Library:LibC
Classification:Novell
Service:Characters and Strings

Syntax

  #include <utf8.h> 
   
  size_t   utf8cspn (
     const utf8_t   *string,
     const utf8_t   *charset);
  

Parameters

string

(IN) Points to a null-terminated string to scan.

charset

(IN) Points to a null-terminated set of characters to exclude from the length.

Return Values

Returns the length of the computed string segment.

Remarks

The utf8cspn function computes the length of the initial segment of the string pointed to by string, which consists entirely of characters not from the string pointed to by charset. The null-terminating character is not considered part of string.

See Also

utf8spn