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
2246ef3e
Commit
2246ef3e
authored
Jun 15, 2016
by
Andy Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/tutorial-zh-cn: Fix a typo in tutorial
parent
6f5e83db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorial.zh-cn.md
doc/tutorial.zh-cn.md
+1
-1
No files found.
doc/tutorial.zh-cn.md
View file @
2246ef3e
...
@@ -379,7 +379,7 @@ const char * cstr = getenv("USER");
...
@@ -379,7 +379,7 @@ const char * cstr = getenv("USER");
size_t cstr_len = ...; // 如果有长度
size_t cstr_len = ...; // 如果有长度
Value s;
Value s;
// s.SetString(cstr); // 这不能通过编译
// s.SetString(cstr); // 这不能通过编译
s.SetString(StringRef(cstr)); // 可以,假设它的生命周期
案
全,并且是以空字符结尾的
s.SetString(StringRef(cstr)); // 可以,假设它的生命周期
安
全,并且是以空字符结尾的
s = StringRef(cstr); // 上行的缩写
s = StringRef(cstr); // 上行的缩写
s.SetString(StringRef(cstr, cstr_len));// 更快,可处理空字符
s.SetString(StringRef(cstr, cstr_len));// 更快,可处理空字符
s = StringRef(cstr, cstr_len); // 上行的缩写
s = StringRef(cstr, cstr_len); // 上行的缩写
...
...
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