Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
16cc2b87
Commit
16cc2b87
authored
Dec 20, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Implement IsCharSpaceA().
parent
83e87a32
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
19 deletions
+30
-19
ordinal.c
dlls/shlwapi/ordinal.c
+0
-19
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-0
string.c
dlls/shlwapi/string.c
+25
-0
shlwapi.h
include/shlwapi.h
+4
-0
No files found.
dlls/shlwapi/ordinal.c
View file @
16cc2b87
...
...
@@ -638,25 +638,6 @@ INT WINAPI SHStringFromGUIDW(REFGUID guid, LPWSTR lpszDest, INT cchMax)
}
/*************************************************************************
* @ [SHLWAPI.29]
*
* Determine if a Unicode character is a space.
*
* PARAMS
* wc [I] Character to check.
*
* RETURNS
* TRUE, if wc is a space,
* FALSE otherwise.
*/
BOOL
WINAPI
IsCharSpaceW
(
WCHAR
wc
)
{
WORD
CharType
;
return
GetStringTypeW
(
CT_CTYPE1
,
&
wc
,
1
,
&
CharType
)
&&
(
CharType
&
C1_SPACE
);
}
/*************************************************************************
* @ [SHLWAPI.30]
*
* Determine if a Unicode character is a blank.
...
...
dlls/shlwapi/shlwapi.spec
View file @
16cc2b87
...
...
@@ -566,6 +566,7 @@
@ stdcall HashData (ptr long ptr long)
@ stdcall IntlStrEqWorkerA(long str str long) StrIsIntlEqualA
@ stdcall IntlStrEqWorkerW(long wstr wstr long) StrIsIntlEqualW
@ stdcall IsCharSpaceA(long)
@ stdcall PathAddBackslashA (str)
@ stdcall PathAddBackslashW (wstr)
@ stdcall PathAddExtensionA (str str)
...
...
dlls/shlwapi/string.c
View file @
16cc2b87
...
...
@@ -2824,3 +2824,28 @@ end:
HeapFree
(
GetProcessHeap
(),
0
,
dllname
);
return
hr
;
}
BOOL
WINAPI
IsCharSpaceA
(
CHAR
c
)
{
WORD
CharType
;
return
GetStringTypeA
(
GetSystemDefaultLCID
(),
CT_CTYPE1
,
&
c
,
1
,
&
CharType
)
&&
(
CharType
&
C1_SPACE
);
}
/*************************************************************************
* @ [SHLWAPI.29]
*
* Determine if a Unicode character is a space.
*
* PARAMS
* wc [I] Character to check.
*
* RETURNS
* TRUE, if wc is a space,
* FALSE otherwise.
*/
BOOL
WINAPI
IsCharSpaceW
(
WCHAR
wc
)
{
WORD
CharType
;
return
GetStringTypeW
(
CT_CTYPE1
,
&
wc
,
1
,
&
CharType
)
&&
(
CharType
&
C1_SPACE
);
}
include/shlwapi.h
View file @
16cc2b87
...
...
@@ -935,6 +935,10 @@ HRESULT WINAPI StrRetToBufW(STRRET*,LPCITEMIDLIST,LPWSTR,UINT);
HRESULT
WINAPI
StrRetToBSTR
(
STRRET
*
,
LPCITEMIDLIST
,
BSTR
*
);
BOOL
WINAPI
IsCharSpaceA
(
CHAR
);
BOOL
WINAPI
IsCharSpaceW
(
WCHAR
);
#define IsCharSpace WINELIB_NAME_AW(IsCharSpace)
#endif
/* NO_SHLWAPI_STRFCNS */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment