Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
784fd59e
Commit
784fd59e
authored
May 29, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
May 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First try at implementing PathGetCharType().
parent
8722373d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
path.c
dlls/shlwapi/path.c
+19
-4
shlwapi.h
include/shlwapi.h
+7
-0
No files found.
dlls/shlwapi/path.c
View file @
784fd59e
...
...
@@ -1617,8 +1617,23 @@ BOOL WINAPI PathCompactPathW(HDC hDC, LPWSTR pszPath, UINT dx)
*/
UINT
WINAPI
PathGetCharTypeA
(
UCHAR
ch
)
{
FIXME
(
"%c
\n
"
,
ch
);
return
0
;
UINT
flags
=
0
;
TRACE
(
"%c
\n
"
,
ch
);
/* We could use them in filenames, but this would confuse 'ls' */
if
(
iscntrl
(
ch
))
return
GCT_INVALID
;
if
((
ch
==
'*'
)
||
(
ch
==
'?'
))
return
GCT_WILD
;
if
((
ch
==
'\\'
)
||
(
ch
==
'/'
))
return
GCT_SEPARATOR
;
flags
=
0
;
/* all normal characters, no lower case letters */
if
((
ch
>
' '
)
&&
(
ch
<
0x7f
)
&&
!
islower
(
ch
))
flags
|=
GCT_SHORTCHAR
;
/* All other characters are valid in long filenames, even umlauts */
return
flags
|
GCT_LFNCHAR
;
}
/*************************************************************************
...
...
@@ -1626,8 +1641,8 @@ UINT WINAPI PathGetCharTypeA(UCHAR ch)
*/
UINT
WINAPI
PathGetCharTypeW
(
WCHAR
ch
)
{
FIXME
(
"%c
\n
"
,
ch
);
return
0
;
FIXME
(
"%c
, using ascii version
\n
"
,
ch
);
return
PathGetCharTypeA
(
ch
)
;
}
/*************************************************************************
...
...
include/shlwapi.h
View file @
784fd59e
...
...
@@ -8,6 +8,13 @@ extern "C" {
#endif
/* defined(__cplusplus) */
/* Mask returned by GetPathCharType */
#define GCT_INVALID 0x0000
#define GCT_LFNCHAR 0x0001
#define GCT_SHORTCHAR 0x0002
#define GCT_WILD 0x0004
#define GCT_SEPARATOR 0x0008
/*
* The URL_ defines were determined by trial and error. If they become
* documented please check them and add the missing ones including:
...
...
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