Added strspnW and strcspnW.

This commit is contained in:
Alexandre Julliard 2003-09-27 03:48:40 +00:00
parent c4bba67a9a
commit 30784603ee
1 changed files with 14 additions and 0 deletions

View File

@ -251,6 +251,20 @@ static inline WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept )
return NULL;
}
static inline size_t strspnW( const WCHAR *str, const WCHAR *accept )
{
const WCHAR *ptr;
for (ptr = str; *ptr; ptr++) if (!strchrW( accept, *ptr )) break;
return ptr - str;
}
static inline size_t strcspnW( const WCHAR *str, const WCHAR *reject )
{
const WCHAR *ptr;
for (ptr = str; *ptr; ptr++) if (strchrW( reject, *ptr )) break;
return ptr - str;
}
static inline WCHAR *strlwrW( WCHAR *str )
{
WCHAR *ret = str;