ReactOS
0.4.16-dev-300-g2aadf2e
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
jmstojis.c
Go to the documentation of this file.
1
#include <precomp.h>
2
#include <mbstring.h>
3
#include <locale.h>
4
5
/*
6
* @implemented
7
*/
8
unsigned
int
__cdecl
_mbcjmstojis
(
unsigned
int
c
)
9
{
10
/* Conversion takes place only when codepage is 932.
11
In all other cases, c is returned unchanged */
12
if
(
get_mbcinfo
()->mbcodepage == 932)
13
{
14
if
(
_ismbclegal
(
c
) &&
HIBYTE
(
c
) < 0xf0)
15
{
16
if
(
HIBYTE
(
c
) >= 0xe0)
17
c
-= 0x4000;
18
19
c
= (((
HIBYTE
(
c
) - 0x81)*2 + 0x21) << 8) |
LOBYTE
(
c
);
20
21
if
(
LOBYTE
(
c
) > 0x7f)
22
c
-= 0x1;
23
24
if
(
LOBYTE
(
c
) > 0x9d)
25
c
+= 0x83;
26
else
27
c
-= 0x1f;
28
}
29
else
30
return
0;
/* Codepage is 932, but c can't be converted */
31
}
32
33
return
c
;
34
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
c
const GLubyte * c
Definition:
glext.h:8905
_ismbclegal
_Check_return_ _CRTIMP int __cdecl _ismbclegal(_In_ unsigned int _Ch)
LOBYTE
#define LOBYTE(W)
Definition:
jmemdos.c:487
HIBYTE
#define HIBYTE(W)
Definition:
jmemdos.c:486
_mbcjmstojis
unsigned int __cdecl _mbcjmstojis(unsigned int c)
Definition:
jmstojis.c:8
c
#define c
Definition:
ke_i.h:80
get_mbcinfo
MSVCRT_pthreadmbcinfo get_mbcinfo(void)
Definition:
locale.c:366
sdk
lib
crt
mbstring
jmstojis.c
Generated on Thu Nov 28 2024 06:13:23 for ReactOS by
1.9.6