233 Commits

Author SHA1 Message Date
Milo Yip
6e4d8db51d Fix readme issue in doxygen, customize css
Imitate GitHub markdown rendering
2014-07-07 01:01:49 +08:00
Milo Yip
d6497d86f8 Update dom.md
Fixes diagrams URL in DOM
2014-07-06 22:51:09 +08:00
Milo Yip
bcd935be87 Merge remote-tracking branch 'origin/master'
Conflicts:
	doc/stream.md
	doc/tutorial.md
2014-07-06 22:48:21 +08:00
Milo Yip
698496e3f3 Minor document adjustments 2014-07-06 22:43:52 +08:00
Milo Yip
4cadecd32d Wrote DOM
But some examples are to be filled in.
2014-07-06 22:43:21 +08:00
Milo Yip
7398f66f61 Merge pull request #49 from pah/doc/doxygen-markdown
Integrate Markdown pages into Doxygen documentation
2014-07-06 22:42:09 +08:00
Philipp A. Hartmann
a213d2d881 Doxygen: fixup main page
To avoid the {#mainpage} tag to be rendered on GitHub, explicitly add a
`\mainpage` section to `rapidjson.h`, referring to `readme.md`.
2014-07-06 16:39:23 +02:00
Philipp A. Hartmann
b197be2f30 stream.md: prepare Markdown for GitHub and Doxygen rendering 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
ba05cc1377 tutorial.md: prepare Markdown for GitHub and Doxygen rendering 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
2a57d97f63 features.md: prepare Markdown for GitHub and Doxygen rendering 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
b30c3c0538 readme.md: prepare Markdown for GitHub and Doxygen rendering 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
53b27ac8ba GenericReader: improve doxygen documentation 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
ec8f26e6e5 (Pretty)Writer: improve doxygen documentation 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
7972f22fcb Doxygen: document some UTF-8 typedefs 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
6ed0ac174f GenericDocument: improve Doxygen documentation 2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
c63c40fa85 GenericMemberIterator::Type -> GenericMemberIterator::Iterator
Rename nested typedef to avoid confusion with JSON Type enum.
2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
5174fe4f65 rapidjson.h: add some file-level doxygen documentation
Although not yet complete, the rapidjson.h header contains most of
the customisation macro definitions.  These should be documented via
Doxygen as well.  This requires adding file-level documentation.

Some parts are excluded via `@cond` to avoid cluttering the documentation
with internals too much.

Secondly, a brief description is added to the 'rapidjson' namespace to
include the namespace-level elements (enums, typedefs, functions) to
the generated documentation.
2014-07-06 15:35:43 +02:00
Philipp A. Hartmann
252e282dc6 Doxyfile: prepare for Markdown rendering 2014-07-06 15:35:38 +02:00
Philipp A. Hartmann
a73f83183c ignore generated Doxygen documentation 2014-07-05 16:41:23 +02:00
Milo Yip
c12286a072 Merge remote-tracking branch 'origin/document' 2014-07-04 23:59:13 +08:00
Milo Yip
3f3f847036 Add skeleton of documents 2014-07-04 23:57:33 +08:00
Milo Yip
96882f4977 Prohibit copy constructor in StackStream. 2014-07-04 20:19:15 +08:00
Milo Yip
d9c02b5b79 Fixed a few cppcheck warnings.
C-style cast
Add function const to MemoryPoolAllocator::Capacity() and Size()
2014-07-04 19:53:14 +08:00
Milo Yip
e2cd486e6e Fixes -Wswitch-default warnings 2014-07-04 17:25:33 +08:00
Milo Yip
469333af8f Fixes filename cases in source code 2014-07-04 17:03:58 +08:00
Milo Yip
ace56097fd Fixes compilation error. 2014-07-04 16:56:19 +08:00
Milo Yip
cdbe0d5d55 Add stream.md 2014-07-04 16:39:30 +08:00
Milo Yip
0bff4ffd0c Adds unit tests about streams. 2014-07-04 16:39:09 +08:00
Milo Yip
b01093b16c Fixes a compilation error in Reader when using encoded stream.
Added unit test for parsing EncodedStream to Document.
2014-07-04 14:32:44 +08:00
Milo Yip
a787e8a7f5 Merge branch 'master' of https://github.com/miloyip/rapidjson 2014-07-04 10:37:25 +08:00
Milo Yip
27dee1111d Merge remote-tracking branch 'origin/document' 2014-07-04 10:36:57 +08:00
Milo Yip
99ea434eef Typo in readme 2014-07-04 10:36:15 +08:00
Milo Yip
3e4e68b099 Rearrange diagrams and fix typos in tutorial 2014-07-04 10:35:29 +08:00
Milo Yip
7bd3b17fbd Merge pull request #48 from miloyip/Swap
Safer implementation of Swap()
2014-07-04 09:09:12 +08:00
Milo Yip
9ed11d29a2 Safer implementation of Swap()
Also added documentation, unit tests for swapping Document/Value,
Document/Document.
2014-07-04 00:59:16 +08:00
Milo Yip
a96b699396 Merge pull request #46 from pah/cleanup/misc
Miscellaneous cleanups
2014-07-03 23:50:53 +08:00
Milo Yip
23318f2557 Complete tutorial draft 2014-07-03 23:46:30 +08:00
Philipp A. Hartmann
3254a784bb add missing 'typename' 2014-07-03 17:13:17 +02:00
Philipp A. Hartmann
c8673ef3de GenericReader::ParseNumber: consistently use s.Tell()
The error messages in ParseNumber used `is.Tell` to report the
position of the number parsing error.  Depending on the copy
optimization of the current stream, this can lead to different
behaviour (beginning of number vs. position of error).
2014-07-03 17:07:14 +02:00
Philipp A. Hartmann
249529f039 avoid truncation warning on MSVC 2014-07-03 17:07:07 +02:00
Philipp A. Hartmann
afa8279d8a GenericValue: drop duplicate/unneeded code
* Delegate constant string construction to SetStringRaw
 * Delegate "const Ch*" overloads to GenericValue variants
   of operator[], FindMember and RemoveMember
 * Remove repeated template arguments in nested struct Array

(cherry-picked from ca9b0332d)
2014-07-03 17:06:36 +02:00
Philipp A. Hartmann
d178fd4e94 Parse*: explicitly spell out kParseDefaultFlags
Instead of hard-coding the value 0 for the parseFlags in the
various parsing overloads, explicitly use kParseDefaultFlags
to provide more self-documenting code.
2014-07-03 17:06:35 +02:00
Philipp A. Hartmann
6b7f346437 ParseErrorCode: fix typo (NumberTooBig) 2014-07-03 17:06:35 +02:00
Philipp A. Hartmann
a22f325ae4 perftest: fix typo 2014-07-03 17:06:35 +02:00
Philipp A. Hartmann
f7204e78d0 .gitignore: exclude tracked directories in bin/ 2014-07-03 17:06:35 +02:00
Milo Yip
80a5b9093c In Value.CopyFrom unit test, run both allocators.
@pah
2014-07-03 22:57:09 +08:00
Milo Yip
d0146c4476 Merge pull request #45 from miloyip/Swap
Added GenericValue::Swap()
2014-07-03 22:45:02 +08:00
Milo Yip
1aa84342ba Added GenericValue::Swap() 2014-07-03 22:38:34 +08:00
Milo Yip
009c4005b2 Fixes 'not' keyword that is not supported by Visual Studio by default 2014-07-03 22:37:42 +08:00
Milo Yip
28294fa754 Merge pull request #44 from pah/feature/memberiterator
Add explicit MemberIterator, return MemberEnd() from FindMember()
2014-07-03 22:23:58 +08:00