Moved implementation of strpbrkW from filedlg95.c to wine/unicode.h.
This commit is contained in:
parent
c019f53568
commit
ca70e84f7f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue