unispn

Finds the first segment of a string consisting entirely of characters from another string

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <unicode.h> 
    
   N_EXTERN_LIBRARY(size_t) unispn  ( 
      const unicode N_FAR  *s1,  
      const unicode N_FAR  *s2);
   

Pascal Syntax

   uses netwin32 
    
   Function unispn 
     (s1 : const unicode;          
      s2 : const unicode         
   ) : size_t;
   

Parameters

s1
(IN) Points to the string to test.
s2
(IN) Points to the character set.

Return Values

Returns the length of the first segment of the string pointed to by the s1 parameter that consists entirely of characters from the s2 parameter.

Remarks

unispn corresponds to the C strspn function.

For sample code, see Section 3.28, Example: unispn.

See Also

unicspn, unipbrk