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
24dbdf8f
Commit
24dbdf8f
authored
Feb 05, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Feb 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement _mbbtype according to MSDN.
parent
dbef32e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
mbcs.c
dlls/msvcrt/mbcs.c
+26
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/mbcs.c
View file @
24dbdf8f
...
...
@@ -26,6 +26,7 @@
#include "msvcrt.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "msvcrt/mbctype.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
...
...
@@ -740,6 +741,31 @@ unsigned int CDECL _mbbtombc(unsigned int c)
}
/*********************************************************************
* _mbbtype(MSVCRT.@)
*/
int
CDECL
_mbbtype
(
unsigned
char
c
,
int
type
)
{
if
(
type
==
1
)
{
if
((
c
>=
0x20
&&
c
<=
0x7e
)
||
(
c
>=
0xa1
&&
c
<=
0xdf
))
return
_MBC_SINGLE
;
else
if
((
c
>=
0x40
&&
c
<=
0x7e
)
||
(
c
>=
0x80
&&
c
<=
0xfc
))
return
_MBC_TRAIL
;
else
return
_MBC_ILLEGAL
;
}
else
{
if
((
c
>=
0x20
&&
c
<=
0x7e
)
||
(
c
>=
0xa1
&&
c
<=
0xdf
))
return
_MBC_SINGLE
;
else
if
((
c
>=
0x81
&&
c
<=
0x9f
)
||
(
c
>=
0xe0
&&
c
<=
0xfc
))
return
_MBC_LEAD
;
else
return
_MBC_ILLEGAL
;
}
}
/*********************************************************************
* _ismbbkana(MSVCRT.@)
*/
int
CDECL
_ismbbkana
(
unsigned
int
c
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
24dbdf8f
...
...
@@ -338,7 +338,7 @@
@ cdecl _makepath(str str str str str)
@ cdecl _matherr(ptr) MSVCRT__matherr
@ cdecl _mbbtombc(long)
@
stub _mbbtype #
(long long)
@
cdecl _mbbtype
(long long)
# extern _mbcasemap
@ cdecl _mbccpy (str str)
@ stub _mbcjistojms #(long)
...
...
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