Skip to content
Snippets Groups Projects
Commit 30784603 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Added strspnW and strcspnW.

parent c4bba67a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment