unicspn

Scans a specified string for the initial segment not containing any subset of the given set of characters

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) unicspn  ( 
      const unicode N_FAR  *s1,  
      const unicode N_FAR  *s2);
   

Pascal Syntax

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

Parameters

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

Return Values

Returns the length of the initial segment of s1 consisting entirely of characters not from s2.

Remarks

unicspn corresponds to the C strcspn function.

For sample code, see Section 3.15, Example: unicspn.

See Also

unispn, unipbrk