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
Milo Yip
a73ed78fd6
Suppress effc++ warning in messagereader
2014-07-13 03:28:09 +08:00
Milo Yip
a5c1324da9
Add messagereader example
2014-07-13 01:17:38 +08:00
Milo Yip
75cee948d4
Fixes main() return should be int in new examples
2014-07-12 23:41:01 +08:00
Milo Yip
3c8a923439
Add simplereader, simplewriter examples.
...
Also modify premake to add all projects in example folder.
2014-07-12 23:07:41 +08:00
Philipp A. Hartmann
78c75de22c
tutorial.cpp: update for FindMember change
...
* use MemberIterator instead of plain pointer
* check against MemberEnd() instead of NULL
2014-07-03 15:04:04 +02:00
Milo Yip
5a186104f4
Fixes warnings
2014-07-03 00:59:35 +08:00
miloyip
389fe87cd8
Merge branch 'master' into issue23errorcode
...
Conflicts:
example/condense/condense.cpp
include/rapidjson/reader.h
test/unittest/readertest.cpp
2014-06-30 09:44:24 +08:00
Milo Yip
1d14748bc9
Added overloaded functions for default parseFlags
...
Can write d.Parse(...) instead of d.Parse<0>(...)
Hope to reduce strangeness and confusion for beginner.
2014-06-29 15:03:38 +08:00
Milo Yip
6f306755d5
Minor adjustment to simpledom example
...
Showing the type Value and preventing member lookup twice.
2014-06-29 14:18:33 +08:00
Milo Yip
8a959c3898
Fixes comment mistakes
2014-06-28 20:37:22 +08:00
Milo Yip
cd144c3cfd
Added a simple example and a diagram showing the process.
2014-06-28 19:44:11 +08:00
Milo Yip
3693d61f5a
Add parse error codes and API for converting error code to text.
...
Parse errors is represented as enum type `ParseErrorCode`.
Error texts are optional for user.
Added `GetParseError_En()` in `error/en.h`, user can localize this file
into other files. User may dynamically change the locale in runtime.
2014-06-27 01:53:56 +08:00
Milo Yip
609381fc2e
Fixed some clang -Weverything warnings.
2014-06-25 23:14:32 +08:00
Milo Yip
f930d9e2e5
Revert "Remove some clang -Weverything warnings."
...
This reverts commit e4ffa48a7563e892047c27f0a50fdeb6f71e6b8b.
2014-06-25 16:07:44 +08:00
Milo Yip
e4ffa48a75
Remove some clang -Weverything warnings.
2014-06-25 16:06:00 +08:00
miloyip@gmail.com
5136516293
Remove warnings in examples
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@95 c5894555-1306-4e8d-425f-1f6f381ee07c
2012-11-16 13:02:05 +00:00
miloyip@gmail.com
9b960b6b0a
Fixed Issue 7: GenericValue& operator[](const Ch* name) - bug if key not found
...
Makes GenericValue::FindMember() public.
Added array element and object member iteration APIs in examples.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@83 c5894555-1306-4e8d-425f-1f6f381ee07c
2012-11-14 07:07:06 +00:00
miloyip@gmail.com
bf8fcd19c1
Added prettyauto example, which can handle UTF-8/UTF-16LE/UTF-16BE/UTF-32LE/UTF-32BE
...
Fixed a bug for using Reader with AutoUTFInputStream
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@50 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-12-03 11:14:39 +00:00
miloyip@gmail.com
5eac448955
Added EncodedInputStream, AutoUTFInputStream, AutoUTF
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@40 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-29 18:39:03 +00:00
miloyip@gmail.com
08d25ad177
Added Flush() to concept stream. Add this new member function to all streams.
...
Writer and PrettyWriter automatically calls Flush() at the end of JSON text.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@27 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22 05:10:46 +00:00
miloyip@gmail.com
d26a6e8b4d
Added missing Flush() in examples. Flush() will be called in Writer later.
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@25 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-21 18:54:22 +00:00
miloyip@gmail.com
04515a639e
Implemented FileWriteStream with buffering
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@23 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-21 10:00:33 +00:00
miloyip@gmail.com
8f8e905306
Initial version (0.1)
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@2 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-18 17:01:23 +00:00