Commit ca70e84f authored by Alberto Massari's avatar Alberto Massari Committed by Alexandre Julliard

Moved implementation of strpbrkW from filedlg95.c to wine/unicode.h.

parent c019f535
......@@ -219,20 +219,6 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCount, UINT sizeUsed);
static BOOL BrowseSelectedFolder(HWND hwnd);
LPWSTR strpbrkW(LPWSTR str, LPCWSTR clist)
{
LPCWSTR p;
while(str && *str)
{
for(p = clist; *p; p++ )
if(*p == *str)
return str;
str++;
}
return NULL;
}
/***********************************************************************
* GetFileName95
*
......
......@@ -236,6 +236,12 @@ static inline WCHAR *strrchrW( const WCHAR *str, WCHAR ch )
return ret;
}
static inline WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept )
{
for ( ; *str; str++) if (strchrW( accept, *str )) return (WCHAR *)str;
return NULL;
}
static inline WCHAR *strlwrW( WCHAR *str )
{
WCHAR *ret = str;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment