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
2648a732
Unverified
Commit
2648a732
authored
Aug 23, 2019
by
Milo Yip
Committed by
GitHub
Aug 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1557 from MBoldyrev/doc/fix-uint-case
Documentation: fixed Uint case
parents
d87b698d
8973b279
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
internals.md
doc/internals.md
+1
-1
internals.zh-cn.md
doc/internals.zh-cn.md
+1
-1
sax.md
doc/sax.md
+1
-1
sax.zh-cn.md
doc/sax.zh-cn.md
+1
-1
tutorial.md
doc/tutorial.md
+1
-1
tutorial.zh-cn.md
doc/tutorial.zh-cn.md
+1
-1
tutorial.cpp
example/tutorial/tutorial.cpp
+1
-1
No files found.
doc/internals.md
View file @
2648a732
...
...
@@ -79,7 +79,7 @@ The following tables show the data layout of each type. The 32-bit/64-bit column
|
`unsigned u`
| 32-bit unsigned integer |4 |4 |
| (zero padding) | 0 |4 |4 |
| (unused) | |4 |8 |
|
`unsigned flags_`
|
`kNumberType kNumberFlag kU
IntFlag kUI
nt64Flag ...`
|4 |4 |
|
`unsigned flags_`
|
`kNumberType kNumberFlag kU
intFlag kUi
nt64Flag ...`
|4 |4 |
| Number (Int64) | |32-bit|64-bit|
|---------------------|-------------------------------------|:----:|:----:|
...
...
doc/internals.zh-cn.md
View file @
2648a732
...
...
@@ -79,7 +79,7 @@ SAX 和 DOM API 都依赖于3个额外的概念:`Allocator`、`Encoding` 和 `
|
`unsigned u`
| 32位无符号整数 |4 |4 |
| (零填充) | 0 |4 |4 |
| (未使用) | |4 |8 |
|
`unsigned flags_`
|
`kNumberType kNumberFlag kU
IntFlag kUI
nt64Flag ...`
|4 |4 |
|
`unsigned flags_`
|
`kNumberType kNumberFlag kU
intFlag kUi
nt64Flag ...`
|4 |4 |
| Number (Int64) | | 32位 | 64位 |
|---------------------|-------------------------------------|:----:|:----:|
...
...
doc/sax.md
View file @
2648a732
...
...
@@ -37,7 +37,7 @@ Bool(false)
Key("n", 1, true)
Null()
Key("i")
U
I
nt(123)
U
i
nt(123)
Key("pi")
Double(3.1416)
Key("a")
...
...
doc/sax.zh-cn.md
View file @
2648a732
...
...
@@ -37,7 +37,7 @@ Bool(false)
Key("n", 1, true)
Null()
Key("i")
U
I
nt(123)
U
i
nt(123)
Key("pi")
Double(3.1416)
Key("a")
...
...
doc/tutorial.md
View file @
2648a732
...
...
@@ -82,7 +82,7 @@ JSON number type represents all numeric values. However, C++ needs more specific
~~~
~~~~~~~cpp
assert(document["i"].IsNumber());
// In this case, IsUint()/IsInt64()/IsU
I
nt64() also return true.
// In this case, IsUint()/IsInt64()/IsU
i
nt64() also return true.
assert(document["i"].IsInt());
printf("i = %d\n", document["i"].GetInt());
// Alternative (int)document["i"]
...
...
doc/tutorial.zh-cn.md
View file @
2648a732
...
...
@@ -82,7 +82,7 @@ JSON Number 类型表示所有数值。然而,C++ 需要使用更专门的类
~~~
~~~~~~~cpp
assert(document["i"].IsNumber());
// 在此情况下,IsUint()/IsInt64()/IsU
I
nt64() 也会返回 true
// 在此情况下,IsUint()/IsInt64()/IsU
i
nt64() 也会返回 true
assert(document["i"].IsInt());
printf("i = %d\n", document["i"].GetInt());
// 另一种用法: (int)document["i"]
...
...
example/tutorial/tutorial.cpp
View file @
2648a732
...
...
@@ -57,7 +57,7 @@ int main(int, char*[]) {
printf
(
"n = %s
\n
"
,
document
[
"n"
].
IsNull
()
?
"null"
:
"?"
);
assert
(
document
[
"i"
].
IsNumber
());
// Number is a JSON type, but C++ needs more specific type.
assert
(
document
[
"i"
].
IsInt
());
// In this case, IsUint()/IsInt64()/IsU
I
nt64() also return true.
assert
(
document
[
"i"
].
IsInt
());
// In this case, IsUint()/IsInt64()/IsU
i
nt64() also return true.
printf
(
"i = %d
\n
"
,
document
[
"i"
].
GetInt
());
// Alternative (int)document["i"]
assert
(
document
[
"pi"
].
IsNumber
());
...
...
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