Commit Graph

21 Commits

Author SHA1 Message Date
cd9762a94a Add simple json::object accessors 2012-04-19 16:44:35 +10:00
cae41d87fb Add json::node equality operators and specialise 2012-04-19 16:41:54 +10:00
036f0fab51 Use C++ style comments for sections 2012-04-19 16:41:10 +10:00
fe77bf9d7d Add and use type_error for type conversion failure 2012-04-13 11:23:13 +10:00
86b5abde08 Add json::null::as_null implementation 2012-04-13 11:15:08 +10:00
c0476c553e Use unique_ptr for all compound node children 2012-04-12 16:09:49 +10:00
45d8cfffbf Rename "to_<type>" functions to "as_<type>"
'to' implies a copy, 'as' implies reinterpret.
2012-04-12 16:08:06 +10:00
e6ad6c2db3 Use check{_hard,_soft} in preference to assert 2012-04-12 16:06:28 +10:00
040e565a18 Split json::error into parse and schema errors 2012-04-12 14:36:05 +10:00
3a37fcde35 Add convenience wrapper json::write function 2012-04-12 14:19:01 +10:00
d42fdfc771 Add indentation to json output 2012-04-12 14:09:33 +10:00
a13c1b9183 Unneeded namespace qualification for json::parse 2012-04-12 14:08:41 +10:00
134ab02ba6 Change ragel index variables to avoid signed warns 2012-04-11 15:49:11 +10:00
b302b510c3 Return unique_ptr from json routines 2012-01-04 17:05:40 +11:00
f02501eb5e Move io functions into the util namespace 2011-10-01 01:58:10 +10:00
c3ad96f88e Add more convenient array and object accessors 2011-09-23 13:45:09 +10:00
4c96950130 Change ragel used types to avoid size warnings 2011-08-08 16:22:25 +10:00
7cba9b8496 Json now parses from slurped strings, not mmap
mmap was a debatable choice in the first place, and is annoying under Windows,
so we may as well remove it.
2011-07-06 19:29:37 +10:00
e42b1f6a10 Pass object::insert string by const reference 2011-06-29 21:23:23 +10:00
20f81a7630 Correct package name in copyright headers
Package is no longer waif, after its seperation from the waif
library/application. Hopefully there aren't any more dependencies...
2011-06-21 20:26:32 +10:00
745e06d1af initial import from waif 2011-05-23 17:18:52 +10:00