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
4ababca8
Commit
4ababca8
authored
Feb 17, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos pointed out by @pah
parent
6671bd50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
document.h
include/rapidjson/document.h
+12
-12
No files found.
include/rapidjson/document.h
View file @
4ababca8
...
...
@@ -478,34 +478,34 @@ struct TypeHelper<ValueType, std::basic_string<typename ValueType::Ch> > {
template
<
typename
ValueType
>
struct
TypeHelper
<
ValueType
,
typename
ValueType
::
Array
>
{
typedef
typename
ValueType
::
Array
Arra
t
Type
;
typedef
typename
ValueType
::
Array
Arra
y
Type
;
static
bool
Is
(
const
ValueType
&
v
)
{
return
v
.
IsArray
();
}
static
Arra
t
Type
Get
(
ValueType
&
v
)
{
return
v
.
GetArray
();
}
static
ValueType
&
Set
(
ValueType
&
v
,
Arra
t
Type
data
)
{
return
v
.
SetArray
(
data
);
}
static
ValueType
&
Set
(
ValueType
&
v
,
Arra
t
Type
data
,
typename
ValueType
::
AllocatorType
&
)
{
return
v
.
SetArray
(
data
);
}
static
Arra
y
Type
Get
(
ValueType
&
v
)
{
return
v
.
GetArray
();
}
static
ValueType
&
Set
(
ValueType
&
v
,
Arra
y
Type
data
)
{
return
v
.
SetArray
(
data
);
}
static
ValueType
&
Set
(
ValueType
&
v
,
Arra
y
Type
data
,
typename
ValueType
::
AllocatorType
&
)
{
return
v
.
SetArray
(
data
);
}
};
template
<
typename
ValueType
>
struct
TypeHelper
<
ValueType
,
typename
ValueType
::
ConstArray
>
{
typedef
typename
ValueType
::
ConstArray
Arra
t
Type
;
typedef
typename
ValueType
::
ConstArray
Arra
y
Type
;
static
bool
Is
(
const
ValueType
&
v
)
{
return
v
.
IsArray
();
}
static
Arra
t
Type
Get
(
const
ValueType
&
v
)
{
return
v
.
GetArray
();
}
static
Arra
y
Type
Get
(
const
ValueType
&
v
)
{
return
v
.
GetArray
();
}
};
template
<
typename
ValueType
>
struct
TypeHelper
<
ValueType
,
typename
ValueType
::
Object
>
{
typedef
typename
ValueType
::
Object
Arra
tType
;
typedef
typename
ValueType
::
Object
Objec
tType
;
static
bool
Is
(
const
ValueType
&
v
)
{
return
v
.
IsObject
();
}
static
Arra
tType
Get
(
ValueType
&
v
)
{
return
v
.
GetObject
();
}
static
ValueType
&
Set
(
ValueType
&
v
,
Arra
tType
data
)
{
return
v
.
SetObject
(
data
);
}
static
ValueType
&
Set
(
ValueType
&
v
,
Arra
tType
data
,
typename
ValueType
::
AllocatorType
&
)
{
return
v
.
SetObject
(
data
);
}
static
Objec
tType
Get
(
ValueType
&
v
)
{
return
v
.
GetObject
();
}
static
ValueType
&
Set
(
ValueType
&
v
,
Objec
tType
data
)
{
return
v
.
SetObject
(
data
);
}
static
ValueType
&
Set
(
ValueType
&
v
,
Objec
tType
data
,
typename
ValueType
::
AllocatorType
&
)
{
return
v
.
SetObject
(
data
);
}
};
template
<
typename
ValueType
>
struct
TypeHelper
<
ValueType
,
typename
ValueType
::
ConstObject
>
{
typedef
typename
ValueType
::
ConstObject
Arra
tType
;
typedef
typename
ValueType
::
ConstObject
Objec
tType
;
static
bool
Is
(
const
ValueType
&
v
)
{
return
v
.
IsObject
();
}
static
Arra
tType
Get
(
const
ValueType
&
v
)
{
return
v
.
GetObject
();
}
static
Objec
tType
Get
(
const
ValueType
&
v
)
{
return
v
.
GetObject
();
}
};
}
// namespace internal
...
...
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