73 Commits

Author SHA1 Message Date
Milo Yip
a62777487d Normalize line endings but not JSON files 2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b Revert "Normalize all the line endings"
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12 Normalize all the line endings 2016-03-04 09:46:11 +08:00
Sergey Kosarevsky
5642a81f24 Added JsonxWriter::RawNumber() 2016-02-29 20:21:28 +01:00
Sergey Kosarevsky
a9c79db580 Added CapitalizeFilter::RawNumber() 2016-02-29 18:48:15 +01:00
Sergey Kosarevsky
9748595960 Added MyHandler::RawNumber() 2016-02-29 18:25:14 +01:00
octal
d53d71b874 example: parsebyparts now compiles with g++-4.9 2016-02-27 19:59:29 +01:00
Milo Yip
c62a19cfbd Remove CMakeLists license info 2016-02-28 01:22:15 +08:00
Milo Yip
5f13820899 Another try 2016-02-27 23:41:38 +08:00
Milo Yip
52512b7c12 Try to set libc++ in cmake 2016-02-27 22:56:23 +08:00
Milo Yip
f1387ef879 Rollback stdlib flag 2016-02-22 10:02:01 +08:00
Milo Yip
dbe8d115b1 Rename variable in parsebyparts 2016-02-22 09:34:23 +08:00
Milo Yip
24d0ebd8fb Fix compilation problem of parsebyparts 2016-02-22 09:33:41 +08:00
Milo Yip
70cad1901a Add parse-by-parts example
Fix #527
2016-02-21 17:23:23 +08:00
Milo Yip
5af344b9d9 Add comment for -D__STDC_FORMAT_MACROS 2016-02-09 01:27:22 +08:00
Milo Yip
b5d939b71b Fix a gcc warning 2016-02-09 01:09:43 +08:00
Milo Yip
c53a836a3c Try fixing 64-bit printf macro 2016-02-09 00:53:49 +08:00
Milo Yip
9f1dcef6b1 Add jsonx example 2016-02-09 00:09:39 +08:00
Milo Yip
28e6a40fc6 Change indentation to space 2016-01-31 13:44:49 +08:00
Milo Yip
89106a13c6 Add schema validator example 2016-01-29 15:24:23 +08:00
Milo Yip
a7490404ba Try to fix a clang missing assignment warning 2016-01-23 15:38:01 +08:00
Milo Yip
a6eb15d274 Fix warnings in clang for C++11 2016-01-23 14:37:15 +08:00
Milo Yip
9ce381b801 Try to fix clang and gcc warnings problems again 2015-12-18 19:15:51 +08:00
Milo Yip
74c8dcfd57 Fix clang -Weverything 2015-12-18 18:34:04 +08:00
Ziyang LI
4569752903 added missing fields of CMakeList.txt
this fixed cmake error for me
2015-08-10 18:11:25 +08:00
miloyip
67be9ed2cb Remove depreciated FileStream 2015-04-14 11:08:47 +08:00
Milo Yip
25e408dbe5 Typo 2015-04-03 12:58:23 +08:00
Milo Yip
f5b021d7cb Merge pull request #279 from pah/fix/pedantic
Fixes for GCC with -pedantic
2015-04-02 09:44:25 +08:00
Philipp A. Hartmann
3b8158086d messagereader.cpp: drop trailing comma 2015-04-01 22:39:01 +02:00
Philipp A. Hartmann
953cda14f7 tutorial.cpp: fix insitu parsing (closes #273)
The insitu parsing example in the tutorial is using a local char
buffer inside a nested scope.  After leaving the scope, the
resulting Document object still references this (now invalid)
memory locations.

Some compilers reuse this space on the stack for other local
variables later in the function, corrupting the original document.

Drop the local scope to extend the lifetime of the buffer.
2015-03-31 20:55:00 +02:00
Andrii Senkovych
122170b362 Fix definitions for VS compiler 2015-02-23 20:21:07 +02:00
Andrii Senkovych
3ae2a29986 Backport compiler options from premake configuration. Refs #240. 2015-02-19 18:25:40 +02:00
Milo Yip
09118fa230 Merge pull request #192 from jollyroger/cmake
CMake support
2015-02-11 12:04:19 +08:00
Drew Noakes
9d4f0296ff Example uses std::string Writer overload if RAPIDJSON_HAS_STDSTRING set. 2015-02-02 09:35:41 +00:00
Drew Noakes
8b1bd5b485 Typo 2015-02-02 09:28:35 +00:00
Anton Indrawan
5a96c1f93e Compile all examples with the Dinkum C++ of QNX 6.6
QCC -Wall -Wextra -Vgcc_ntoarmv7le -I../include <example>
2014-11-23 21:03:57 +01:00
Andriy Senkovych
8f3f0ea167 Add separate targets for examples and tests 2014-11-11 17:50:32 +02:00
Andriy Senkovych
d69991fa11 Set separate directory to place binaries 2014-11-11 17:26:59 +02:00
Andriy Senkovych
8ae1c971ea Add initial CMake support
* Support for both in-source and out-of-source builds
 * Set library version to 0.12 to map Debian package
 * Add separate options to build tests, examples and documentation
 * Add pkgconfig lookup support (if installed with `make install`)
 * Add CMake lookup support (if isntalled with `make install`)
 * Add Google Test Source lookup
 * Add CTest support for running tests (use `make test` or `ctest -V`)
2014-11-11 17:26:59 +02:00
Milo Yip
5ccc663479 Merge pull request #172 from lichray/patch-1
Demonstrate CRTP in SAX example
2014-10-24 10:21:36 +08:00
Zhihao Yuan
c6a985c503 Demonstrate CRTP in SAX example
Closes: https://github.com/miloyip/rapidjson/issues/142
2014-10-23 21:55:25 -04:00
Zhihao Yuan
7303d92990 Disambiguate GenericValue's [0] and ["string"] 2014-10-23 21:50:39 -04:00
Kosta
f0d9ab4ec9 finally fixing Reader::ParseString()
It was a copy-n-paste error for the last argument of `Key()` and `String()`...
2014-09-04 18:00:05 +02:00
Kosta
00ac1024ee more changes 2014-09-04 17:37:13 +02:00
Kosta
e70494bc00 fix for Reader::ParseString() implementation plus some minor code cleanups and additions 2014-09-04 17:29:52 +02:00
Kosta
c8da4d86fc add Key()->String() forwarding to the capitalize example 2014-09-04 15:35:01 +02:00
Kosta
0f4071046f fix simplereader.cpp and the Key()->String() forwarding in BaseReaderHandler 2014-09-04 15:30:44 +02:00
Milo Yip
0dbcc1cf2e Add license and change indents from tab to space. 2014-08-11 22:26:45 +08:00
Milo Yip
24a9cced45 Suppress VC2013 warning in capitalize 2014-07-13 12:04:37 +08:00
Milo Yip
c203f682e9 Add capitalize example 2014-07-13 03:51:18 +08:00