Change from miloyip/rapidjson to Tencent/rapidjson
This commit is contained in:
parent
2a53253e72
commit
4a2f2729f1
@ -14,7 +14,7 @@ env:
|
|||||||
- CCACHE_MAXSIZE=100M
|
- CCACHE_MAXSIZE=100M
|
||||||
- ARCH_FLAGS_x86='-m32' # #266: don't use SSE on 32-bit
|
- ARCH_FLAGS_x86='-m32' # #266: don't use SSE on 32-bit
|
||||||
- ARCH_FLAGS_x86_64='-msse4.2' # use SSE4.2 on 64-bit
|
- ARCH_FLAGS_x86_64='-msse4.2' # use SSE4.2 on 64-bit
|
||||||
- GITHUB_REPO='miloyip/rapidjson'
|
- GITHUB_REPO='Tencent/rapidjson'
|
||||||
- secure: "HrsaCb+N66EG1HR+LWH1u51SjaJyRwJEDzqJGYMB7LJ/bfqb9mWKF1fLvZGk46W5t7TVaXRDD5KHFx9DPWvKn4gRUVkwTHEy262ah5ORh8M6n/6VVVajeV/AYt2C0sswdkDBDO4Xq+xy5gdw3G8s1A4Inbm73pUh+6vx+7ltBbk="
|
- secure: "HrsaCb+N66EG1HR+LWH1u51SjaJyRwJEDzqJGYMB7LJ/bfqb9mWKF1fLvZGk46W5t7TVaXRDD5KHFx9DPWvKn4gRUVkwTHEy262ah5ORh8M6n/6VVVajeV/AYt2C0sswdkDBDO4Xq+xy5gdw3G8s1A4Inbm73pUh+6vx+7ltBbk="
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
12
CHANGELOG.md
12
CHANGELOG.md
@ -109,7 +109,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
## [1.0.0] - 2015-04-22
|
## [1.0.0] - 2015-04-22
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
* 100% [Coverall](https://coveralls.io/r/miloyip/rapidjson?branch=master) coverage.
|
* 100% [Coverall](https://coveralls.io/r/Tencent/rapidjson?branch=master) coverage.
|
||||||
* Version macros (#311)
|
* Version macros (#311)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@ -151,8 +151,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## 0.1 - 2011-11-18
|
## 0.1 - 2011-11-18
|
||||||
|
|
||||||
[Unreleased]: https://github.com/miloyip/rapidjson/compare/v1.1.0...HEAD
|
[Unreleased]: https://github.com/Tencent/rapidjson/compare/v1.1.0...HEAD
|
||||||
[1.1.0]: https://github.com/miloyip/rapidjson/compare/v1.0.2...v1.1.0
|
[1.1.0]: https://github.com/Tencent/rapidjson/compare/v1.0.2...v1.1.0
|
||||||
[1.0.2]: https://github.com/miloyip/rapidjson/compare/v1.0.1...v1.0.2
|
[1.0.2]: https://github.com/Tencent/rapidjson/compare/v1.0.1...v1.0.2
|
||||||
[1.0.1]: https://github.com/miloyip/rapidjson/compare/v1.0.0...v1.0.1
|
[1.0.1]: https://github.com/Tencent/rapidjson/compare/v1.0.0...v1.0.1
|
||||||
[1.0.0]: https://github.com/miloyip/rapidjson/compare/v1.0-beta...v1.0.0
|
[1.0.0]: https://github.com/Tencent/rapidjson/compare/v1.0-beta...v1.0.0
|
||||||
|
@ -3,5 +3,5 @@ includedir=@INCLUDE_INSTALL_DIR@
|
|||||||
Name: @PROJECT_NAME@
|
Name: @PROJECT_NAME@
|
||||||
Description: A fast JSON parser/generator for C++ with both SAX/DOM style API
|
Description: A fast JSON parser/generator for C++ with both SAX/DOM style API
|
||||||
Version: @LIB_VERSION_STRING@
|
Version: @LIB_VERSION_STRING@
|
||||||
URL: https://github.com/miloyip/rapidjson
|
URL: https://github.com/Tencent/rapidjson
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
4. Is RapidJSON free?
|
4. Is RapidJSON free?
|
||||||
|
|
||||||
Yes, it is free under MIT license. It can be used in commercial applications. Please check the details in [license.txt](https://github.com/miloyip/rapidjson/blob/master/license.txt).
|
Yes, it is free under MIT license. It can be used in commercial applications. Please check the details in [license.txt](https://github.com/Tencent/rapidjson/blob/master/license.txt).
|
||||||
|
|
||||||
5. Is RapidJSON small? What are its dependencies?
|
5. Is RapidJSON small? What are its dependencies?
|
||||||
|
|
||||||
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
10. How RapidJSON is tested?
|
10. How RapidJSON is tested?
|
||||||
|
|
||||||
RapidJSON contains a unit test suite for automatic testing. [Travis](https://travis-ci.org/miloyip/rapidjson/)(for Linux) and [AppVeyor](https://ci.appveyor.com/project/miloyip/rapidjson/)(for Windows) will compile and run the unit test suite for all modifications. The test process also uses Valgrind (in Linux) to detect memory leaks.
|
RapidJSON contains a unit test suite for automatic testing. [Travis](https://travis-ci.org/Tencent/rapidjson/)(for Linux) and [AppVeyor](https://ci.appveyor.com/project/Tencent/rapidjson/)(for Windows) will compile and run the unit test suite for all modifications. The test process also uses Valgrind (in Linux) to detect memory leaks.
|
||||||
|
|
||||||
11. Is RapidJSON well documented?
|
11. Is RapidJSON well documented?
|
||||||
|
|
||||||
@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
3. Does RapidJSON support relaxed syntax?
|
3. Does RapidJSON support relaxed syntax?
|
||||||
|
|
||||||
Currently no. RapidJSON only support the strict standardized format. Support on related syntax is under discussion in this [issue](https://github.com/miloyip/rapidjson/issues/36).
|
Currently no. RapidJSON only support the strict standardized format. Support on related syntax is under discussion in this [issue](https://github.com/Tencent/rapidjson/issues/36).
|
||||||
|
|
||||||
## DOM and SAX
|
## DOM and SAX
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
4. RapidJSON 是免费的么?
|
4. RapidJSON 是免费的么?
|
||||||
|
|
||||||
是的,它在 MIT 特許條款下免费。它可用于商业软件。详情请参看 [license.txt](https://github.com/miloyip/rapidjson/blob/master/license.txt)。
|
是的,它在 MIT 特許條款下免费。它可用于商业软件。详情请参看 [license.txt](https://github.com/Tencent/rapidjson/blob/master/license.txt)。
|
||||||
|
|
||||||
5. RapidJSON 很小么?它有何依赖?
|
5. RapidJSON 很小么?它有何依赖?
|
||||||
|
|
||||||
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
10. RapidJSON 是如何被测试的?
|
10. RapidJSON 是如何被测试的?
|
||||||
|
|
||||||
RapidJSON 包含一组单元测试去执行自动测试。[Travis](https://travis-ci.org/miloyip/rapidjson/)(供 Linux 平台)及 [AppVeyor](https://ci.appveyor.com/project/miloyip/rapidjson/)(供 Windows 平台)会对所有修改进行编译及执行单元测试。在 Linux 下还会使用 Valgrind 去检测内存泄漏。
|
RapidJSON 包含一组单元测试去执行自动测试。[Travis](https://travis-ci.org/Tencent/rapidjson/)(供 Linux 平台)及 [AppVeyor](https://ci.appveyor.com/project/Tencent/rapidjson/)(供 Windows 平台)会对所有修改进行编译及执行单元测试。在 Linux 下还会使用 Valgrind 去检测内存泄漏。
|
||||||
|
|
||||||
11. RapidJSON 是否有完整的文档?
|
11. RapidJSON 是否有完整的文档?
|
||||||
|
|
||||||
@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
3. RapidJSON 是否支持宽松的语法?
|
3. RapidJSON 是否支持宽松的语法?
|
||||||
|
|
||||||
现时不支持。RapidJSON 只支持严格的标准格式。宽松语法现时在这 [issue](https://github.com/miloyip/rapidjson/issues/36) 中进行讨论。
|
现时不支持。RapidJSON 只支持严格的标准格式。宽松语法现时在这 [issue](https://github.com/Tencent/rapidjson/issues/36) 中进行讨论。
|
||||||
|
|
||||||
## DOM 与 SAX
|
## DOM 与 SAX
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
* Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`).
|
* Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`).
|
||||||
* Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`).
|
* Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`).
|
||||||
* `NaN`, `Inf`, `Infinity`, `-Inf` and `-Infinity` as `double` values (`kParseNanAndInfFlag`)
|
* `NaN`, `Inf`, `Infinity`, `-Inf` and `-Infinity` as `double` values (`kParseNanAndInfFlag`)
|
||||||
* [NPM compliant](http://github.com/miloyip/rapidjson/blob/master/doc/npm.md).
|
* [NPM compliant](http://github.com/Tencent/rapidjson/blob/master/doc/npm.md).
|
||||||
|
|
||||||
## Unicode
|
## Unicode
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
* 单行(`// ...`)及多行(`/* ... */`) 注释 (`kParseCommentsFlag`)。
|
* 单行(`// ...`)及多行(`/* ... */`) 注释 (`kParseCommentsFlag`)。
|
||||||
* 在对象和数组结束前含逗号 (`kParseTrailingCommasFlag`)。
|
* 在对象和数组结束前含逗号 (`kParseTrailingCommasFlag`)。
|
||||||
* `NaN`、`Inf`、`Infinity`、`-Inf` 及 `-Infinity` 作为 `double` 值 (`kParseNanAndInfFlag`)
|
* `NaN`、`Inf`、`Infinity`、`-Inf` 及 `-Infinity` 作为 `double` 值 (`kParseNanAndInfFlag`)
|
||||||
* [NPM 兼容](https://github.com/miloyip/rapidjson/blob/master/doc/npm.md).
|
* [NPM 兼容](https://github.com/Tencent/rapidjson/blob/master/doc/npm.md).
|
||||||
|
|
||||||
## Unicode
|
## Unicode
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ In [Intel® 64 and IA-32 Architectures Optimization Reference Manual
|
|||||||
|
|
||||||
This is not feasible as RapidJSON should not enforce such requirement.
|
This is not feasible as RapidJSON should not enforce such requirement.
|
||||||
|
|
||||||
To fix this issue, currently the routine process bytes up to the next aligned address. After tha, use aligned read to perform SIMD processing. Also see [#85](https://github.com/miloyip/rapidjson/issues/85).
|
To fix this issue, currently the routine process bytes up to the next aligned address. After tha, use aligned read to perform SIMD processing. Also see [#85](https://github.com/Tencent/rapidjson/issues/85).
|
||||||
|
|
||||||
## Local Stream Copy {#LocalStreamCopy}
|
## Local Stream Copy {#LocalStreamCopy}
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ void SkipWhitespace(InputStream& s) {
|
|||||||
|
|
||||||
对于 RapidJSON 来说,这显然是不可行的,因为 RapidJSON 不应当强迫用户进行内存对齐。
|
对于 RapidJSON 来说,这显然是不可行的,因为 RapidJSON 不应当强迫用户进行内存对齐。
|
||||||
|
|
||||||
为了修复这个问题,当前的代码会先按字节处理直到下一个对齐的地址。在这之后,使用对齐读取来进行 SIMD 处理。见 [#85](https://github.com/miloyip/rapidjson/issues/85)。
|
为了修复这个问题,当前的代码会先按字节处理直到下一个对齐的地址。在这之后,使用对齐读取来进行 SIMD 处理。见 [#85](https://github.com/Tencent/rapidjson/issues/85)。
|
||||||
|
|
||||||
## 局部流拷贝 {#LocalStreamCopy}
|
## 局部流拷贝 {#LocalStreamCopy}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ $extrastylesheet
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||||
<div id="topbanner"><a href="https://github.com/miloyip/rapidjson" title="RapidJSON GitHub"><i class="githublogo"></i></a></div>
|
<div id="topbanner"><a href="https://github.com/Tencent/rapidjson" title="RapidJSON GitHub"><i class="githublogo"></i></a></div>
|
||||||
$searchbox
|
$searchbox
|
||||||
<!--END TITLEAREA-->
|
<!--END TITLEAREA-->
|
||||||
<!-- end header part -->
|
<!-- end header part -->
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
...
|
...
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
...
|
...
|
||||||
"rapidjson": "git@github.com:miloyip/rapidjson.git"
|
"rapidjson": "git@github.com:Tencent/rapidjson.git"
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
"gypfile": true
|
"gypfile": true
|
||||||
|
@ -15,12 +15,12 @@ Additionally, you may refer to the following third-party benchmarks.
|
|||||||
* [json_spirit](https://github.com/cierelabs/json_spirit)
|
* [json_spirit](https://github.com/cierelabs/json_spirit)
|
||||||
* [jsoncpp](http://jsoncpp.sourceforge.net/)
|
* [jsoncpp](http://jsoncpp.sourceforge.net/)
|
||||||
* [libjson](http://sourceforge.net/projects/libjson/)
|
* [libjson](http://sourceforge.net/projects/libjson/)
|
||||||
* [rapidjson](https://github.com/miloyip/rapidjson/)
|
* [rapidjson](https://github.com/Tencent/rapidjson/)
|
||||||
* [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html)
|
* [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html)
|
||||||
|
|
||||||
* [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin (Jan 2013)
|
* [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin (Jan 2013)
|
||||||
* [sajson](https://github.com/chadaustin/sajson)
|
* [sajson](https://github.com/chadaustin/sajson)
|
||||||
* [rapidjson](https://github.com/miloyip/rapidjson/)
|
* [rapidjson](https://github.com/Tencent/rapidjson/)
|
||||||
* [vjson](https://code.google.com/p/vjson/)
|
* [vjson](https://code.google.com/p/vjson/)
|
||||||
* [YAJL](http://lloyd.github.com/yajl/)
|
* [YAJL](http://lloyd.github.com/yajl/)
|
||||||
* [Jansson](http://www.digip.org/jansson/)
|
* [Jansson](http://www.digip.org/jansson/)
|
||||||
|
@ -15,12 +15,12 @@ RapidJSON 0.1 版本的性能测试文章位于 [这里](https://code.google.com
|
|||||||
* [json_spirit](https://github.com/cierelabs/json_spirit)
|
* [json_spirit](https://github.com/cierelabs/json_spirit)
|
||||||
* [jsoncpp](http://jsoncpp.sourceforge.net/)
|
* [jsoncpp](http://jsoncpp.sourceforge.net/)
|
||||||
* [libjson](http://sourceforge.net/projects/libjson/)
|
* [libjson](http://sourceforge.net/projects/libjson/)
|
||||||
* [rapidjson](https://github.com/miloyip/rapidjson/)
|
* [rapidjson](https://github.com/Tencent/rapidjson/)
|
||||||
* [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html)
|
* [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html)
|
||||||
|
|
||||||
* [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin (Jan 2013)
|
* [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin (Jan 2013)
|
||||||
* [sajson](https://github.com/chadaustin/sajson)
|
* [sajson](https://github.com/chadaustin/sajson)
|
||||||
* [rapidjson](https://github.com/miloyip/rapidjson/)
|
* [rapidjson](https://github.com/Tencent/rapidjson/)
|
||||||
* [vjson](https://code.google.com/p/vjson/)
|
* [vjson](https://code.google.com/p/vjson/)
|
||||||
* [YAJL](http://lloyd.github.com/yajl/)
|
* [YAJL](http://lloyd.github.com/yajl/)
|
||||||
* [Jansson](http://www.digip.org/jansson/)
|
* [Jansson](http://www.digip.org/jansson/)
|
||||||
|
BIN
library.json
BIN
library.json
Binary file not shown.
BIN
package.json
BIN
package.json
Binary file not shown.
@ -5,10 +5,10 @@ nuget {
|
|||||||
id = rapidjson;
|
id = rapidjson;
|
||||||
version : ${MYVERSION};
|
version : ${MYVERSION};
|
||||||
title: "rapidjson";
|
title: "rapidjson";
|
||||||
authors: {"https://github.com/miloyip/rapidjson/releases/tag/v1.1.0"};
|
authors: {"https://github.com/Tencent/rapidjson/releases/tag/v1.1.0"};
|
||||||
owners: {"@lsantos (github)"};
|
owners: {"@lsantos (github)"};
|
||||||
licenseUrl: "https://github.com/miloyip/rapidjson/blob/master/license.txt";
|
licenseUrl: "https://github.com/Tencent/rapidjson/blob/master/license.txt";
|
||||||
projectUrl: "https://github.com/miloyip/rapidjson/";
|
projectUrl: "https://github.com/Tencent/rapidjson/";
|
||||||
iconUrl: "https://cdn1.iconfinder.com/data/icons/fatcow/32x32/json.png";
|
iconUrl: "https://cdn1.iconfinder.com/data/icons/fatcow/32x32/json.png";
|
||||||
requireLicenseAcceptance:false;
|
requireLicenseAcceptance:false;
|
||||||
summary: @"A fast JSON parser/generator for C++ with both SAX/DOM style API";
|
summary: @"A fast JSON parser/generator for C++ with both SAX/DOM style API";
|
||||||
|
44
readme.md
44
readme.md
@ -8,11 +8,11 @@ Tencent is pleased to support the open source community by making RapidJSON avai
|
|||||||
|
|
||||||
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
||||||
|
|
||||||
* [RapidJSON GitHub](https://github.com/miloyip/rapidjson/)
|
* [RapidJSON GitHub](https://github.com/Tencent/rapidjson/)
|
||||||
* RapidJSON Documentation
|
* RapidJSON Documentation
|
||||||
* [English](http://rapidjson.org/)
|
* [English](http://rapidjson.org/)
|
||||||
* [简体中文](http://rapidjson.org/zh-cn/)
|
* [简体中文](http://rapidjson.org/zh-cn/)
|
||||||
* [GitBook](https://www.gitbook.com/book/miloyip/rapidjson/) with downloadable PDF/EPUB/MOBI, without API reference.
|
* [GitBook](https://www.gitbook.com/book/Tencent/rapidjson/) with downloadable PDF/EPUB/MOBI, without API reference.
|
||||||
|
|
||||||
## Build status
|
## Build status
|
||||||
|
|
||||||
@ -20,12 +20,12 @@ Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights
|
|||||||
| :---------------: | :-----------------: | :-------------------: |
|
| :---------------: | :-----------------: | :-------------------: |
|
||||||
| ![lin-badge] | ![win-badge] | ![cov-badge] |
|
| ![lin-badge] | ![win-badge] | ![cov-badge] |
|
||||||
|
|
||||||
[lin-badge]: https://travis-ci.org/miloyip/rapidjson.svg?branch=master "Travis build status"
|
[lin-badge]: https://travis-ci.org/Tencent/rapidjson.svg?branch=master "Travis build status"
|
||||||
[lin-link]: https://travis-ci.org/miloyip/rapidjson "Travis build status"
|
[lin-link]: https://travis-ci.org/Tencent/rapidjson "Travis build status"
|
||||||
[win-badge]: https://ci.appveyor.com/api/projects/status/github/miloyip/rapidjson?branch=master&svg=true "AppVeyor build status"
|
[win-badge]: https://ci.appveyor.com/api/projects/status/github/Tencent/rapidjson?branch=master&svg=true "AppVeyor build status"
|
||||||
[win-link]: https://ci.appveyor.com/project/miloyip/rapidjson/branch/master "AppVeyor build status"
|
[win-link]: https://ci.appveyor.com/project/Tencent/rapidjson/branch/master "AppVeyor build status"
|
||||||
[cov-badge]: https://coveralls.io/repos/miloyip/rapidjson/badge.svg?branch=master "Coveralls coverage"
|
[cov-badge]: https://coveralls.io/repos/Tencent/rapidjson/badge.svg?branch=master "Coveralls coverage"
|
||||||
[cov-link]: https://coveralls.io/r/miloyip/rapidjson?branch=master "Coveralls coverage"
|
[cov-link]: https://coveralls.io/r/Tencent/rapidjson?branch=master "Coveralls coverage"
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
@ -136,25 +136,25 @@ The following diagram shows the process.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
More [examples](https://github.com/miloyip/rapidjson/tree/master/example) are available:
|
More [examples](https://github.com/Tencent/rapidjson/tree/master/example) are available:
|
||||||
|
|
||||||
* DOM API
|
* DOM API
|
||||||
* [tutorial](https://github.com/miloyip/rapidjson/blob/master/example/tutorial/tutorial.cpp): Basic usage of DOM API.
|
* [tutorial](https://github.com/Tencent/rapidjson/blob/master/example/tutorial/tutorial.cpp): Basic usage of DOM API.
|
||||||
|
|
||||||
* SAX API
|
* SAX API
|
||||||
* [simplereader](https://github.com/miloyip/rapidjson/blob/master/example/simplereader/simplereader.cpp): Dumps all SAX events while parsing a JSON by `Reader`.
|
* [simplereader](https://github.com/Tencent/rapidjson/blob/master/example/simplereader/simplereader.cpp): Dumps all SAX events while parsing a JSON by `Reader`.
|
||||||
* [condense](https://github.com/miloyip/rapidjson/blob/master/example/condense/condense.cpp): A command line tool to rewrite a JSON, with all whitespaces removed.
|
* [condense](https://github.com/Tencent/rapidjson/blob/master/example/condense/condense.cpp): A command line tool to rewrite a JSON, with all whitespaces removed.
|
||||||
* [pretty](https://github.com/miloyip/rapidjson/blob/master/example/pretty/pretty.cpp): A command line tool to rewrite a JSON with indents and newlines by `PrettyWriter`.
|
* [pretty](https://github.com/Tencent/rapidjson/blob/master/example/pretty/pretty.cpp): A command line tool to rewrite a JSON with indents and newlines by `PrettyWriter`.
|
||||||
* [capitalize](https://github.com/miloyip/rapidjson/blob/master/example/capitalize/capitalize.cpp): A command line tool to capitalize strings in JSON.
|
* [capitalize](https://github.com/Tencent/rapidjson/blob/master/example/capitalize/capitalize.cpp): A command line tool to capitalize strings in JSON.
|
||||||
* [messagereader](https://github.com/miloyip/rapidjson/blob/master/example/messagereader/messagereader.cpp): Parse a JSON message with SAX API.
|
* [messagereader](https://github.com/Tencent/rapidjson/blob/master/example/messagereader/messagereader.cpp): Parse a JSON message with SAX API.
|
||||||
* [serialize](https://github.com/miloyip/rapidjson/blob/master/example/serialize/serialize.cpp): Serialize a C++ object into JSON with SAX API.
|
* [serialize](https://github.com/Tencent/rapidjson/blob/master/example/serialize/serialize.cpp): Serialize a C++ object into JSON with SAX API.
|
||||||
* [jsonx](https://github.com/miloyip/rapidjson/blob/master/example/jsonx/jsonx.cpp): Implements a `JsonxWriter` which stringify SAX events into [JSONx](https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html) (a kind of XML) format. The example is a command line tool which converts input JSON into JSONx format.
|
* [jsonx](https://github.com/Tencent/rapidjson/blob/master/example/jsonx/jsonx.cpp): Implements a `JsonxWriter` which stringify SAX events into [JSONx](https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html) (a kind of XML) format. The example is a command line tool which converts input JSON into JSONx format.
|
||||||
|
|
||||||
* Schema
|
* Schema
|
||||||
* [schemavalidator](https://github.com/miloyip/rapidjson/blob/master/example/schemavalidator/schemavalidator.cpp) : A command line tool to validate a JSON with a JSON schema.
|
* [schemavalidator](https://github.com/Tencent/rapidjson/blob/master/example/schemavalidator/schemavalidator.cpp) : A command line tool to validate a JSON with a JSON schema.
|
||||||
|
|
||||||
* Advanced
|
* Advanced
|
||||||
* [prettyauto](https://github.com/miloyip/rapidjson/blob/master/example/prettyauto/prettyauto.cpp): A modified version of [pretty](https://github.com/miloyip/rapidjson/blob/master/example/pretty/pretty.cpp) to automatically handle JSON with any UTF encodings.
|
* [prettyauto](https://github.com/Tencent/rapidjson/blob/master/example/prettyauto/prettyauto.cpp): A modified version of [pretty](https://github.com/Tencent/rapidjson/blob/master/example/pretty/pretty.cpp) to automatically handle JSON with any UTF encodings.
|
||||||
* [parsebyparts](https://github.com/miloyip/rapidjson/blob/master/example/parsebyparts/parsebyparts.cpp): Implements an `AsyncDocumentParser` which can parse JSON in parts, using C++11 thread.
|
* [parsebyparts](https://github.com/Tencent/rapidjson/blob/master/example/parsebyparts/parsebyparts.cpp): Implements an `AsyncDocumentParser` which can parse JSON in parts, using C++11 thread.
|
||||||
* [filterkey](https://github.com/miloyip/rapidjson/blob/master/example/filterkey/filterkey.cpp): A command line tool to remove all values with user-specified key.
|
* [filterkey](https://github.com/Tencent/rapidjson/blob/master/example/filterkey/filterkey.cpp): A command line tool to remove all values with user-specified key.
|
||||||
* [filterkeydom](https://github.com/miloyip/rapidjson/blob/master/example/filterkeydom/filterkeydom.cpp): Same tool as above, but it demonstrates how to use a generator to populate a `Document`.
|
* [filterkeydom](https://github.com/Tencent/rapidjson/blob/master/example/filterkeydom/filterkeydom.cpp): Same tool as above, but it demonstrates how to use a generator to populate a `Document`.
|
||||||
|
@ -8,11 +8,11 @@ Tencent is pleased to support the open source community by making RapidJSON avai
|
|||||||
|
|
||||||
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
||||||
|
|
||||||
* [RapidJSON GitHub](https://github.com/miloyip/rapidjson/)
|
* [RapidJSON GitHub](https://github.com/Tencent/rapidjson/)
|
||||||
* RapidJSON 文档
|
* RapidJSON 文档
|
||||||
* [English](http://rapidjson.org/)
|
* [English](http://rapidjson.org/)
|
||||||
* [简体中文](http://rapidjson.org/zh-cn/)
|
* [简体中文](http://rapidjson.org/zh-cn/)
|
||||||
* [GitBook](https://www.gitbook.com/book/miloyip/rapidjson/) 可下载 PDF/EPUB/MOBI,但不含 API 参考手册。
|
* [GitBook](https://www.gitbook.com/book/Tencent/rapidjson/) 可下载 PDF/EPUB/MOBI,但不含 API 参考手册。
|
||||||
|
|
||||||
## Build 状态
|
## Build 状态
|
||||||
|
|
||||||
@ -20,12 +20,12 @@ Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights
|
|||||||
| :---------------: | :-----------------: | :-------------------: |
|
| :---------------: | :-----------------: | :-------------------: |
|
||||||
| ![lin-badge] | ![win-badge] | ![cov-badge] |
|
| ![lin-badge] | ![win-badge] | ![cov-badge] |
|
||||||
|
|
||||||
[lin-badge]: https://travis-ci.org/miloyip/rapidjson.svg?branch=master "Travis build status"
|
[lin-badge]: https://travis-ci.org/Tencent/rapidjson.svg?branch=master "Travis build status"
|
||||||
[lin-link]: https://travis-ci.org/miloyip/rapidjson "Travis build status"
|
[lin-link]: https://travis-ci.org/Tencent/rapidjson "Travis build status"
|
||||||
[win-badge]: https://ci.appveyor.com/api/projects/status/github/miloyip/rapidjson?branch=master&svg=true "AppVeyor build status"
|
[win-badge]: https://ci.appveyor.com/api/projects/status/github/Tencent/rapidjson?branch=master&svg=true "AppVeyor build status"
|
||||||
[win-link]: https://ci.appveyor.com/project/miloyip/rapidjson/branch/master "AppVeyor build status"
|
[win-link]: https://ci.appveyor.com/project/Tencent/rapidjson/branch/master "AppVeyor build status"
|
||||||
[cov-badge]: https://coveralls.io/repos/miloyip/rapidjson/badge.svg?branch=master "Coveralls coverage"
|
[cov-badge]: https://coveralls.io/repos/Tencent/rapidjson/badge.svg?branch=master "Coveralls coverage"
|
||||||
[cov-link]: https://coveralls.io/r/miloyip/rapidjson?branch=master "Coveralls coverage"
|
[cov-link]: https://coveralls.io/r/Tencent/rapidjson?branch=master "Coveralls coverage"
|
||||||
|
|
||||||
## 简介
|
## 简介
|
||||||
|
|
||||||
@ -128,25 +128,25 @@ int main() {
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
还有许多 [例子](https://github.com/miloyip/rapidjson/tree/master/example) 可供参考:
|
还有许多 [例子](https://github.com/Tencent/rapidjson/tree/master/example) 可供参考:
|
||||||
|
|
||||||
* DOM API
|
* DOM API
|
||||||
* [tutorial](https://github.com/miloyip/rapidjson/blob/master/example/tutorial/tutorial.cpp): DOM API 的基本使用方法。
|
* [tutorial](https://github.com/Tencent/rapidjson/blob/master/example/tutorial/tutorial.cpp): DOM API 的基本使用方法。
|
||||||
|
|
||||||
* SAX API
|
* SAX API
|
||||||
* [simplereader](https://github.com/miloyip/rapidjson/blob/master/example/simplereader/simplereader.cpp): 使用 `Reader` 解析 JSON 时,打印所有 SAX 事件。
|
* [simplereader](https://github.com/Tencent/rapidjson/blob/master/example/simplereader/simplereader.cpp): 使用 `Reader` 解析 JSON 时,打印所有 SAX 事件。
|
||||||
* [condense](https://github.com/miloyip/rapidjson/blob/master/example/condense/condense.cpp): 移除 JSON 中所有空白符的命令行工具。
|
* [condense](https://github.com/Tencent/rapidjson/blob/master/example/condense/condense.cpp): 移除 JSON 中所有空白符的命令行工具。
|
||||||
* [pretty](https://github.com/miloyip/rapidjson/blob/master/example/pretty/pretty.cpp): 为 JSON 加入缩进与换行的命令行工具,当中使用了 `PrettyWriter`。
|
* [pretty](https://github.com/Tencent/rapidjson/blob/master/example/pretty/pretty.cpp): 为 JSON 加入缩进与换行的命令行工具,当中使用了 `PrettyWriter`。
|
||||||
* [capitalize](https://github.com/miloyip/rapidjson/blob/master/example/capitalize/capitalize.cpp): 把 JSON 中所有字符串改为大写的命令行工具。
|
* [capitalize](https://github.com/Tencent/rapidjson/blob/master/example/capitalize/capitalize.cpp): 把 JSON 中所有字符串改为大写的命令行工具。
|
||||||
* [messagereader](https://github.com/miloyip/rapidjson/blob/master/example/messagereader/messagereader.cpp): 使用 SAX API 去解析一个 JSON 报文。
|
* [messagereader](https://github.com/Tencent/rapidjson/blob/master/example/messagereader/messagereader.cpp): 使用 SAX API 去解析一个 JSON 报文。
|
||||||
* [serialize](https://github.com/miloyip/rapidjson/blob/master/example/serialize/serialize.cpp): 使用 SAX API 去序列化 C++ 对象,生成 JSON。
|
* [serialize](https://github.com/Tencent/rapidjson/blob/master/example/serialize/serialize.cpp): 使用 SAX API 去序列化 C++ 对象,生成 JSON。
|
||||||
* [jsonx](https://github.com/miloyip/rapidjson/blob/master/example/jsonx/jsonx.cpp): 实现了一个 `JsonxWriter`,它能把 SAX 事件写成 [JSONx](https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html)(一种 XML)格式。这个例子是把 JSON 输入转换成 JSONx 格式的命令行工具。
|
* [jsonx](https://github.com/Tencent/rapidjson/blob/master/example/jsonx/jsonx.cpp): 实现了一个 `JsonxWriter`,它能把 SAX 事件写成 [JSONx](https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html)(一种 XML)格式。这个例子是把 JSON 输入转换成 JSONx 格式的命令行工具。
|
||||||
|
|
||||||
* Schema API
|
* Schema API
|
||||||
* [schemavalidator](https://github.com/miloyip/rapidjson/blob/master/example/schemavalidator/schemavalidator.cpp): 使用 JSON Schema 去校验 JSON 的命令行工具。
|
* [schemavalidator](https://github.com/Tencent/rapidjson/blob/master/example/schemavalidator/schemavalidator.cpp): 使用 JSON Schema 去校验 JSON 的命令行工具。
|
||||||
|
|
||||||
* 进阶
|
* 进阶
|
||||||
* [prettyauto](https://github.com/miloyip/rapidjson/blob/master/example/prettyauto/prettyauto.cpp): [pretty](https://github.com/miloyip/rapidjson/blob/master/example/pretty/pretty.cpp) 的修改版本,可自动处理任何 UTF 编码的 JSON。
|
* [prettyauto](https://github.com/Tencent/rapidjson/blob/master/example/prettyauto/prettyauto.cpp): [pretty](https://github.com/Tencent/rapidjson/blob/master/example/pretty/pretty.cpp) 的修改版本,可自动处理任何 UTF 编码的 JSON。
|
||||||
* [parsebyparts](https://github.com/miloyip/rapidjson/blob/master/example/parsebyparts/parsebyparts.cpp): 这例子中的 `AsyncDocumentParser` 类使用 C++ 线程来逐段解析 JSON。
|
* [parsebyparts](https://github.com/Tencent/rapidjson/blob/master/example/parsebyparts/parsebyparts.cpp): 这例子中的 `AsyncDocumentParser` 类使用 C++ 线程来逐段解析 JSON。
|
||||||
* [filterkey](https://github.com/miloyip/rapidjson/blob/master/example/filterkey/filterkey.cpp): 移取使用者指定的键值的命令行工具。
|
* [filterkey](https://github.com/Tencent/rapidjson/blob/master/example/filterkey/filterkey.cpp): 移取使用者指定的键值的命令行工具。
|
||||||
* [filterkeydom](https://github.com/miloyip/rapidjson/blob/master/example/filterkey/filterkey.cpp): 如上的工具,但展示如何使用生成器(generator)去填充一个 `Document`。
|
* [filterkeydom](https://github.com/Tencent/rapidjson/blob/master/example/filterkey/filterkey.cpp): 如上的工具,但展示如何使用生成器(generator)去填充一个 `Document`。
|
@ -1488,7 +1488,7 @@ TEST(Pointer, Ambiguity) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/miloyip/rapidjson/issues/483
|
// https://github.com/Tencent/rapidjson/issues/483
|
||||||
namespace myjson {
|
namespace myjson {
|
||||||
|
|
||||||
class MyAllocator
|
class MyAllocator
|
||||||
|
@ -233,7 +233,7 @@ static void TestParseDouble() {
|
|||||||
TEST_DOUBLE(fullPrecision, "1e-10000", 0.0); // must underflow
|
TEST_DOUBLE(fullPrecision, "1e-10000", 0.0); // must underflow
|
||||||
TEST_DOUBLE(fullPrecision, "18446744073709551616", 18446744073709551616.0); // 2^64 (max of uint64_t + 1, force to use double)
|
TEST_DOUBLE(fullPrecision, "18446744073709551616", 18446744073709551616.0); // 2^64 (max of uint64_t + 1, force to use double)
|
||||||
TEST_DOUBLE(fullPrecision, "-9223372036854775809", -9223372036854775809.0); // -2^63 - 1(min of int64_t + 1, force to use double)
|
TEST_DOUBLE(fullPrecision, "-9223372036854775809", -9223372036854775809.0); // -2^63 - 1(min of int64_t + 1, force to use double)
|
||||||
TEST_DOUBLE(fullPrecision, "0.9868011474609375", 0.9868011474609375); // https://github.com/miloyip/rapidjson/issues/120
|
TEST_DOUBLE(fullPrecision, "0.9868011474609375", 0.9868011474609375); // https://github.com/Tencent/rapidjson/issues/120
|
||||||
TEST_DOUBLE(fullPrecision, "123e34", 123e34); // Fast Path Cases In Disguise
|
TEST_DOUBLE(fullPrecision, "123e34", 123e34); // Fast Path Cases In Disguise
|
||||||
TEST_DOUBLE(fullPrecision, "45913141877270640000.0", 45913141877270640000.0);
|
TEST_DOUBLE(fullPrecision, "45913141877270640000.0", 45913141877270640000.0);
|
||||||
TEST_DOUBLE(fullPrecision, "2.2250738585072011e-308", 2.2250738585072011e-308); // http://www.exploringbinary.com/php-hangs-on-numeric-value-2-2250738585072011e-308/
|
TEST_DOUBLE(fullPrecision, "2.2250738585072011e-308", 2.2250738585072011e-308); // http://www.exploringbinary.com/php-hangs-on-numeric-value-2-2250738585072011e-308/
|
||||||
|
@ -8,7 +8,7 @@ DOXYGEN_VER=doxygen-1.8.13
|
|||||||
DOXYGEN_TAR=${DOXYGEN_VER}.linux.bin.tar.gz
|
DOXYGEN_TAR=${DOXYGEN_VER}.linux.bin.tar.gz
|
||||||
DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/${DOXYGEN_TAR}"
|
DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/${DOXYGEN_TAR}"
|
||||||
|
|
||||||
: ${GITHUB_REPO:="miloyip/rapidjson"}
|
: ${GITHUB_REPO:="Tencent/rapidjson"}
|
||||||
GITHUB_HOST="github.com"
|
GITHUB_HOST="github.com"
|
||||||
GITHUB_CLONE="git://${GITHUB_HOST}/${GITHUB_REPO}"
|
GITHUB_CLONE="git://${GITHUB_HOST}/${GITHUB_REPO}"
|
||||||
GITHUB_URL="https://${GITHUB_HOST}/${GITHUB_PUSH-${GITHUB_REPO}}"
|
GITHUB_URL="https://${GITHUB_HOST}/${GITHUB_PUSH-${GITHUB_REPO}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user