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
mbstrlen.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS system libraries
4
* FILE: lib/sdk/crt/mbstring/mbstrlen.c
5
* PURPOSE: Determines the length of a multi byte string, current locale
6
* PROGRAMERS:
7
* Copyright 1999 Alexandre Julliard
8
* Copyright 2000 Jon Griffths
9
*
10
*/
11
12
#include <mbstring.h>
13
#include <stdlib.h>
14
15
#ifdef _LIBCNT_
16
unsigned
short
*
NlsLeadByteInfo
;
17
#define isleadbyte(c) NlsLeadByteInfo[c]
18
#else
19
int
isleadbyte
(
int
byte
);
20
#endif
21
22
/*
23
* @implemented
24
*/
25
size_t
__cdecl
_mbstrlen
(
const
char
*
str
)
26
{
27
size_t
len
= 0;
28
while
(*
str
)
29
{
30
/* FIXME: According to the documentation we are supposed to test for
31
* multi-byte character validity. Whatever that means
32
*/
33
str
+=
isleadbyte
((
unsigned
char
)*
str
) ? 2 : 1;
34
len
++;
35
}
36
return
len
;
37
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
len
GLenum GLsizei len
Definition:
glext.h:6722
isleadbyte
#define isleadbyte(_c)
Definition:
wchar.h:598
_mbstrlen
size_t __cdecl _mbstrlen(const char *str)
Definition:
mbstrlen.c:25
str
const WCHAR * str
Definition:
rpc_transport.c:2724
NlsLeadByteInfo
PUSHORT NlsLeadByteInfo
Definition:
nls.c:26
sdk
lib
crt
mbstring
mbstrlen.c
Generated on Thu Nov 28 2024 06:13:23 for ReactOS by
1.9.6