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

This commit is contained in:
Alberto Massari 2003-01-02 19:25:44 +00:00 committed by Alexandre Julliard
parent c019f53568
commit ca70e84f7f
2 changed files with 6 additions and 14 deletions

View File

@ -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
*

View File

@ -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;