686 Commits

Author SHA1 Message Date
yuzhaol
7567752710 Declare intrinsic function to avoid LNK2019 in x64 debug mode
Add #pragma intrinsic(_umul128) for MSVS 2005
2015-07-09 22:42:24 +01:00
yuzhaol
8e61b72678 Declare intrinsic function to avoid LNK2019 in x64 debug mode
Add #pragma intrinsic(_umul128) for MSVS 2005
2015-07-09 22:39:38 +01:00
Philipp A. Hartmann
dd901f498b add GenericDocument<>::Swap
See #368.
2015-07-04 01:57:24 +02:00
Mateusz Łoskot
8197805208 Add explicit specifier to GenericDocument ctor.
@pah recommended to mark this constructor as explicit to avoid accidentally creating a temporary GenericDocument from a Type enum value (because all arguments but the first one are optional).
2015-07-01 22:36:26 +02:00
Mateusz Loskot
a0177ca210 Add documentation for new GenericDocument ctor taking object type.
Update also documentation of the existing GenericDocument constructor.
2015-06-30 10:28:07 +02:00
Mateusz Loskot
413144a8b2 Add GenericDocument ctor overload to specify JSON type.
It unifies the interfaces with Value where kXXXType can be passed
into constructor.
It enables shortcut that helps to avoid extra SetXXX() call following
construction of a document.
2015-06-26 16:00:49 +02:00
Milo Yip
a326314a61 Fix #538 2015-06-18 15:40:39 +08:00
Milo Yip
81678272a2 Fix #349 emscripten alignment issue 2015-06-04 16:07:43 +08:00
miloyip
ce0184e73b Add and fix -Wimplicit-fallthrough for clang, revert #350 2015-06-03 23:53:14 +08:00
Kal Conley
013b71b92f Fix warnings when compiling with clang and -Wimplicit-fallthrough 2015-05-31 20:35:55 +02:00
Milo Yip
d4d03cab1c Use internal regex as default in schema validator 2015-05-29 19:04:17 +08:00
Milo Yip
b8d2f7e660 Merge regex into schema 2015-05-29 18:39:16 +08:00
Milo Yip
a8feeb4c3e Add invalid regex tests and fix a bug 2015-05-29 17:42:08 +08:00
Milo Yip
c0e7c8304b Fix a bug and add document in regex 2015-05-29 16:02:14 +08:00
Milo Yip
3eb19ceaf9 Add Search(), ^ and $ assertions to regex 2015-05-29 15:23:28 +08:00
miloyip
a5ac3b5dbc Remove an unused line of code 2015-05-28 10:44:52 +08:00
miloyip
960bc0eabd Fix gcc warning 2015-05-28 10:10:38 +08:00
miloyip
56b205264c Refactor to store minIndex in Frag of regex 2015-05-28 00:05:05 +08:00
miloyip
fa7dc1c439 Add numbered quantifier 2015-05-27 23:39:22 +08:00
miloyip
51bb7631f4 Refactor regex with DecodedStream with one look-ahead character 2015-05-27 14:25:00 +08:00
miloyip
0dffe87551 Add character class escapes 2015-05-27 09:56:06 +08:00
miloyip
92285bed44 Add escape characters and control characters 2015-05-27 09:37:55 +08:00
miloyip
1784afe5f7 Add character class to regex 2015-05-26 00:40:23 +08:00
miloyip
06853b89b0 Add any character (.) to regex 2015-05-25 22:51:03 +08:00
miloyip
3c9ceb32a5 Add doxygen notes for regex 2015-05-25 22:09:32 +08:00
miloyip
328b0d8afc Minor refactor regex 2015-05-25 19:49:07 +08:00
miloyip
994b0dfea2 Clean up regex 2015-05-25 19:42:23 +08:00
miloyip
a386934288 Add ?*+ to regex 2015-05-25 19:34:47 +08:00
miloyip
05c79891d1 Add parenthesis support in regex 2015-05-25 09:14:51 +08:00
miloyip
0bef29a5f6 Initial reggae implementation with only concatenation and alternation 2015-05-24 21:23:39 +08:00
miloyip
a2d09f0a03 Refactor GenericPointer::Erase() 2015-05-21 16:13:02 +08:00
miloyip
6e1d10ec6b Add GenericValue::EraseMember(string types) APIs 2015-05-21 16:12:33 +08:00
miloyip
1a570c342d Fix the undefined behaviour when negating the minimum value integers in Reader 2015-05-21 16:00:32 +08:00
miloyip
85c8b657c0 Achieve zero heap allocation for SchemaValidator.TestSuite 2015-05-17 22:22:53 +08:00
miloyip
e20645f0d1 Add optional allocator for Pointer default/copy constructor 2015-05-17 22:20:56 +08:00
miloyip
3919348602 Refactor hasher construction 2015-05-17 20:43:52 +08:00
miloyip
69c58b584f Use state allocator for all context states 2015-05-17 18:58:57 +08:00
miloyip
87d1f95551 Use state allocator for creating parallel validators 2015-05-17 18:06:43 +08:00
miloyip
7ef7ba13f0 Refactor: aggregate parallel validators 2015-05-17 13:07:12 +08:00
miloyip
5e220bbfbc Change schema literal strings to Value type, eliminates StrLen() 2015-05-17 11:02:53 +08:00
miloyip
a92c3b6995 Make schema working for UTF-16 and other encodings 2015-05-17 10:21:58 +08:00
miloyip
332c226f5e Remove Schema::Property::typeless member variable 2015-05-16 17:37:53 +08:00
Milo Yip
4335a62219 Merge remote-tracking branch 'origin/master' into schema 2015-05-16 16:28:29 +08:00
Milo Yip
9acea17d2f Fix nested ref 2015-05-16 16:15:00 +08:00
Milo Yip
5b6061c7e6 Fix meta schema validation 2015-05-16 15:51:36 +08:00
miloyip
11f666a793 Add more verbose info 2015-05-16 10:52:16 +08:00
miloyip
371b9286b1 Refactor move pointer into schema 2015-05-16 10:25:10 +08:00
miloyip
d452a548b8 Add verbose output for schema diagnosis 2015-05-16 10:13:36 +08:00
miloyip
84d74052c1 Fix memory bugs 2015-05-15 21:18:52 +08:00
Milo Yip
0fb2b803b8 Change $ref handling mechnism 2015-05-15 19:53:22 +08:00