ReactOS
0.4.16-dev-1040-g85afe48
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
m
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
_
a
b
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
lexcmp_test.cpp
Go to the documentation of this file.
1
#include <vector>
2
#include <algorithm>
3
#include <functional>
4
5
#include "
cppunit/cppunit_proxy.h
"
6
7
#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8
using namespace
std
;
9
#endif
10
11
//
12
// TestCase class
13
//
14
class
LexcmpTest
:
public
CPPUNIT_NS::TestCase
15
{
16
CPPUNIT_TEST_SUITE
(
LexcmpTest
);
17
CPPUNIT_TEST
(
lexcmp1
);
18
CPPUNIT_TEST
(
lexcmp2
);
19
CPPUNIT_TEST_SUITE_END
();
20
21
protected
:
22
void
lexcmp1
();
23
void
lexcmp2
();
24
};
25
26
CPPUNIT_TEST_SUITE_REGISTRATION
(
LexcmpTest
);
27
28
//
29
// tests implementation
30
//
31
void
LexcmpTest::lexcmp1
()
32
{
33
const
unsigned
size
= 6;
34
char
n1
[
size
] =
"shoe"
;
35
char
n2
[
size
] =
"shine"
;
36
37
bool
before
=
lexicographical_compare
(
n1
,
n1
+
size
,
n2
,
n2
+
size
);
38
CPPUNIT_ASSERT
(!
before
);
39
}
40
void
LexcmpTest::lexcmp2
()
41
{
42
const
unsigned
size
= 6;
43
char
n1
[
size
] =
"shoe"
;
44
char
n2
[
size
] =
"shine"
;
45
46
bool
before
=
lexicographical_compare
(
n1
,
n1
+
size
,
n2
,
n2
+
size
,
greater<char>
());
47
CPPUNIT_ASSERT
(
before
);
48
}
lexicographical_compare
_STLP_BEGIN_NAMESPACE bool lexicographical_compare(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2)
Definition:
_algobase.c:39
LexcmpTest
Definition:
lexcmp_test.cpp:15
LexcmpTest::lexcmp1
void lexcmp1()
Definition:
lexcmp_test.cpp:31
LexcmpTest::CPPUNIT_TEST
CPPUNIT_TEST(lexcmp1)
LexcmpTest::lexcmp2
void lexcmp2()
Definition:
lexcmp_test.cpp:40
LexcmpTest::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
LexcmpTest::CPPUNIT_TEST
CPPUNIT_TEST(lexcmp2)
LexcmpTest::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(LexcmpTest)
CPPUNIT_TEST_SUITE_REGISTRATION
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition:
cppunit_mini.h:193
CPPUNIT_ASSERT
#define CPPUNIT_ASSERT(X)
Definition:
cppunit_mini.h:200
cppunit_proxy.h
size
GLsizeiptr size
Definition:
glext.h:5919
std
Definition:
features.h:417
n2
int n2
Definition:
dwarfget.c:147
n1
int n1
Definition:
dwarfget.c:147
greater
Definition:
_function.h:49
before
__inline int before(__u32 seq1, __u32 seq2)
Definition:
tcpcore.h:2390
sdk
lib
3rdparty
stlport
test
unit
lexcmp_test.cpp
Generated on Fri Apr 25 2025 06:14:32 for ReactOS by
1.9.6