aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Boldyrev <miboldyrev@gmail.com>2019-08-22 19:55:00 +0300
committerMikhail Boldyrev <miboldyrev@gmail.com>2019-08-23 07:44:29 +0300
commit8973b279cf5d8302dbe4bd6b2be22499d1abd49a (patch)
tree51bd55e187b629e16dedc6b6b1612a96b9e1a302
parentd87b698d0fcc10a5f632ecbc80a9cb2a8fa094a5 (diff)
downloadrapidjson-8973b279cf5d8302dbe4bd6b2be22499d1abd49a.tar.gz
fixed Uint case in docs
-rw-r--r--doc/internals.md2
-rw-r--r--doc/internals.zh-cn.md2
-rw-r--r--doc/sax.md2
-rw-r--r--doc/sax.zh-cn.md2
-rw-r--r--doc/tutorial.md2
-rw-r--r--doc/tutorial.zh-cn.md2
-rw-r--r--example/tutorial/tutorial.cpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/doc/internals.md b/doc/internals.md
index 706f98c..81fe9c1 100644
--- a/doc/internals.md
+++ b/doc/internals.md
@@ -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 kUIntFlag kUInt64Flag ...` |4 |4 |
+| `unsigned flags_` | `kNumberType kNumberFlag kUintFlag kUint64Flag ...` |4 |4 |
| Number (Int64) | |32-bit|64-bit|
|---------------------|-------------------------------------|:----:|:----:|
diff --git a/doc/internals.zh-cn.md b/doc/internals.zh-cn.md
index ca3d297..71f8af0 100644
--- a/doc/internals.zh-cn.md
+++ b/doc/internals.zh-cn.md
@@ -79,7 +79,7 @@ SAX 和 DOM API 都依赖于3个额外的概念:`Allocator`、`Encoding` 和 `
| `unsigned u` | 32位无符号整数 |4 |4 |
| (零填充) | 0 |4 |4 |
| (未使用) | |4 |8 |
-| `unsigned flags_` | `kNumberType kNumberFlag kUIntFlag kUInt64Flag ...` |4 |4 |
+| `unsigned flags_` | `kNumberType kNumberFlag kUintFlag kUint64Flag ...` |4 |4 |
| Number (Int64) | | 32位 | 64位 |
|---------------------|-------------------------------------|:----:|:----:|
diff --git a/doc/sax.md b/doc/sax.md
index 874361f..d42d043 100644
--- a/doc/sax.md
+++ b/doc/sax.md
@@ -37,7 +37,7 @@ Bool(false)
Key("n", 1, true)
Null()
Key("i")
-UInt(123)
+Uint(123)
Key("pi")
Double(3.1416)
Key("a")
diff --git a/doc/sax.zh-cn.md b/doc/sax.zh-cn.md
index 740c339..56df69f 100644
--- a/doc/sax.zh-cn.md
+++ b/doc/sax.zh-cn.md
@@ -37,7 +37,7 @@ Bool(false)
Key("n", 1, true)
Null()
Key("i")
-UInt(123)
+Uint(123)
Key("pi")
Double(3.1416)
Key("a")
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 3fa63c9..4bde2fa 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -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()/IsUInt64() also return true.
+// In this case, IsUint()/IsInt64()/IsUint64() also return true.
assert(document["i"].IsInt());
printf("i = %d\n", document["i"].GetInt());
// Alternative (int)document["i"]
diff --git a/doc/tutorial.zh-cn.md b/doc/tutorial.zh-cn.md
index 3bacfb0..f7603a9 100644
--- a/doc/tutorial.zh-cn.md
+++ b/doc/tutorial.zh-cn.md
@@ -82,7 +82,7 @@ JSON Number 类型表示所有数值。然而,C++ 需要使用更专门的类
~~~~~~~~~~cpp
assert(document["i"].IsNumber());
-// 在此情况下,IsUint()/IsInt64()/IsUInt64() 也会返回 true
+// 在此情况下,IsUint()/IsInt64()/IsUint64() 也会返回 true
assert(document["i"].IsInt());
printf("i = %d\n", document["i"].GetInt());
// 另一种用法: (int)document["i"]
diff --git a/example/tutorial/tutorial.cpp b/example/tutorial/tutorial.cpp
index c8bfcc1..d6021c6 100644
--- a/example/tutorial/tutorial.cpp
+++ b/example/tutorial/tutorial.cpp
@@ -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()/IsUInt64() also return true.
+ assert(document["i"].IsInt()); // In this case, IsUint()/IsInt64()/IsUint64() also return true.
printf("i = %d\n", document["i"].GetInt()); // Alternative (int)document["i"]
assert(document["pi"].IsNumber());