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
c3feebb6
Commit
c3feebb6
authored
Feb 26, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More portable CRTDLL_iswctype.
parent
93e99127
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
28 deletions
+22
-28
wcstring.c
dlls/crtdll/wcstring.c
+22
-28
No files found.
dlls/crtdll/wcstring.c
View file @
c3feebb6
...
...
@@ -449,34 +449,6 @@ int CRTDLL_iswcntrl( WCHAR wc )
}
/*********************************************************************
* CRTDLL_iswctype (CRTDLL.409)
*/
int
CRTDLL_iswctype
(
WCHAR
wc
,
WCHAR
wct
)
{
#ifdef HAVE_WCTYPE_H
wctype_t
mask
=
0
;
if
(
wct
&
0x0001
)
mask
|=
_ISwupper
;
if
(
wct
&
0x0002
)
mask
|=
_ISwlower
;
if
(
wct
&
0x0004
)
mask
|=
_ISwdigit
;
if
(
wct
&
0x0008
)
mask
|=
_ISwspace
;
if
(
wct
&
0x0010
)
mask
|=
_ISwpunct
;
if
(
wct
&
0x0020
)
mask
|=
_ISwcntrl
;
if
(
wct
&
0x0040
)
mask
|=
_ISwblank
;
if
(
wct
&
0x0080
)
mask
|=
_ISwxdigit
;
if
(
wct
&
0x0100
)
mask
|=
_ISwalpha
;
if
(
wct
&
0x8000
)
FIXME
(
": iswctype(%04hx,_LEADBYTE|...) requested
\n
"
,
wc
);
#undef iswctype
return
iswctype
(
wc
,
mask
);
#else
FIXME
(
":iswctype() not supported
\n
"
);
return
0
;
#endif
}
/*********************************************************************
* CRTDLL_iswdigit (CRTDLL.410)
*/
int
CRTDLL_iswdigit
(
WCHAR
wc
)
...
...
@@ -579,3 +551,25 @@ int CRTDLL_iswxdigit( WCHAR wc )
return
isxdigit
(
LOBYTE
(
wc
)
);
/* FIXME */
#endif
}
/*********************************************************************
* CRTDLL_iswctype (CRTDLL.409)
*/
int
CRTDLL_iswctype
(
WCHAR
wc
,
WCHAR
wct
)
{
int
res
=
0
;
if
(
wct
&
0x0001
)
res
|=
CRTDLL_iswupper
(
wc
);
if
(
wct
&
0x0002
)
res
|=
CRTDLL_iswlower
(
wc
);
if
(
wct
&
0x0004
)
res
|=
CRTDLL_iswdigit
(
wc
);
if
(
wct
&
0x0008
)
res
|=
CRTDLL_iswspace
(
wc
);
if
(
wct
&
0x0010
)
res
|=
CRTDLL_iswpunct
(
wc
);
if
(
wct
&
0x0020
)
res
|=
CRTDLL_iswcntrl
(
wc
);
if
(
wct
&
0x0080
)
res
|=
CRTDLL_iswxdigit
(
wc
);
if
(
wct
&
0x0100
)
res
|=
CRTDLL_iswalpha
(
wc
);
if
(
wct
&
0x0040
)
FIXME
(
": iswctype(%04hx,_BLANK|...) requested
\n
"
,
wc
);
if
(
wct
&
0x8000
)
FIXME
(
": iswctype(%04hx,_LEADBYTE|...) requested
\n
"
,
wc
);
return
res
;
}
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