Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
d1e6eae2
Commit
d1e6eae2
authored
Jan 22, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
6863f7b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
simdtest.cpp
test/unittest/simdtest.cpp
+0
-27
No files found.
test/unittest/simdtest.cpp
View file @
d1e6eae2
...
...
@@ -66,30 +66,3 @@ TEST(SIMD, SIMD_SUFFIX(SkipWhitespace)) {
TestSkipWhitespace
<
StringStream
>
();
TestSkipWhitespace
<
InsituStringStream
>
();
}
template
<
typename
Encoding
>
struct
ParseStringHandler
:
BaseReaderHandler
<
Encoding
,
ParseStringHandler
<
Encoding
>
>
{
ParseStringHandler
()
:
str_
(
0
),
length_
(
0
),
copy_
()
{}
~
ParseStringHandler
()
{
EXPECT_TRUE
(
str_
!=
0
);
if
(
copy_
)
free
(
const_cast
<
typename
Encoding
::
Ch
*>
(
str_
));
}
ParseStringHandler
(
const
ParseStringHandler
&
);
ParseStringHandler
&
operator
=
(
const
ParseStringHandler
&
);
bool
Default
()
{
ADD_FAILURE
();
return
false
;
}
bool
String
(
const
typename
Encoding
::
Ch
*
str
,
size_t
length
,
bool
copy
)
{
EXPECT_EQ
(
0
,
str_
);
if
(
copy
)
{
str_
=
static_cast
<
typename
Encoding
::
Ch
*>
(
malloc
((
length
+
1
)
*
sizeof
(
typename
Encoding
::
Ch
)));
memcpy
(
const_cast
<
typename
Encoding
::
Ch
*>
(
str_
),
str
,
(
length
+
1
)
*
sizeof
(
typename
Encoding
::
Ch
));
}
else
str_
=
str
;
length_
=
length
;
copy_
=
copy
;
return
true
;
}
const
typename
Encoding
::
Ch
*
str_
;
size_t
length_
;
bool
copy_
;
};
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