Commit graph

70 commits

Author SHA1 Message Date
alisdair sullivan
ae2aae1ebf style and whitespace 2012-03-31 17:45:23 -07:00
alisdair sullivan
ad3e870615 more fixes for json_escape 2012-03-30 23:17:05 -07:00
alisdair sullivan
6f6a660177 fix escaping problems in format/x 2012-03-29 21:43:55 -07:00
alisdair sullivan
63535b27d7 check more extended codepoints 2012-03-29 06:25:49 -07:00
alisdair sullivan
5f6d7c1f01 upon further consideration, ignoring bad \uuXXXX escape sequences could be dangerous, remove test 2012-03-29 00:18:53 -07:00
alisdair sullivan
867199539c add (failing) tests for bad escape sequences 2012-03-29 00:13:08 -07:00
alisdair sullivan
9d2448669e whitespace 2012-03-28 23:46:18 -07:00
alisdair sullivan
dc6a026e94 add tests for bad utf sequences, fix failures 2012-03-28 23:31:07 -07:00
alisdair sullivan
7e243bafd1 remove tests for malformed 5 and 6 byte sequences 2012-03-28 21:23:35 -07:00
alisdair sullivan
9bdbf7969b noncharacters work with incompletes now 2012-03-28 19:50:57 -07:00
alisdair sullivan
cf6dbd6480 properly guard noncharacters 2012-03-28 19:34:49 -07:00
alisdair sullivan
7a1bcc4992 bad utf sequences were being replaced with u+fffd per byte, they are now correctly replaced with just a single u+fffd codepoint 2012-03-27 23:18:06 -07:00
alisdair sullivan
addb1e172d fix for failing tests on R14BXX 2012-03-27 16:56:12 -07:00
alisdair sullivan
42d6ef2c21 refactor of encoded codepoints with looser string restrictions 2012-03-27 14:44:02 -07:00
alisdair sullivan
672fe04c37 additional noncharacter handling for R14BXX 2012-03-27 13:41:23 -07:00
alisdair sullivan
f1c4a85df1 loosen restrictions on allowed codepoints in strings 2012-03-26 19:39:28 -07:00
alisdair sullivan
41002bd10f comment explaining weird string functions 2012-03-26 18:52:06 -07:00
alisdair sullivan
bc588ceb7b first step to better perf 2012-03-25 18:48:24 -07:00
alisdair sullivan
978e75887a corrected handling of malformed utf8 sequences 2012-03-21 05:38:08 -07:00
alisdair sullivan
e36858d1ba apply escape_forward_slash option to decoding as well as encoding 2012-03-21 05:36:39 -07:00
alisdair sullivan
e3c883457f allow c and c++ style comments anywhere whitespace is legal 2012-03-21 05:36:39 -07:00
alisdair sullivan
97a7d295f1 the option single_quotes in functions dealing with json inputs now allows json that uses single quotes to deliminate keys and strings to be processed, note that this changes the escaping rules slightly 2012-03-21 05:35:16 -07:00
alisdair sullivan
1d5b9e7410 the option single_quotes in functions dealing with json inputs now allows json that uses single quotes to deliminate keys and strings to be processed, note that this changes the escaping rules slightly 2012-03-21 05:26:19 -07:00
alisdair sullivan
5155c96ac7 make tests runnable from basic rebar.config for users who have meck on path already 2012-03-06 19:59:49 -08:00
alisdair sullivan
d654a0e882 lift init methods into decoder/encoder 2012-03-05 19:53:55 -08:00
alisdair sullivan
e15a0e9a81 fully integrate gen_json.erl 2012-01-31 20:56:08 -08:00
alisdair sullivan
6dfaa61bfa allow interchange of nullbyte in strings 2011-12-01 06:32:56 -08:00
alisdair sullivan
1cfd565458 removes obsolete comment in decoder 2011-12-01 06:24:34 -08:00
alisdair sullivan
55d0259c89 remove dead code 2011-11-29 19:37:37 -08:00
alisdair sullivan
14277e4972 reworked interface and internals, encoder broken but needs wholesale changes to match new interface 2011-11-23 20:54:10 -08:00
alisdair sullivan
738c6667f1 building strings internally as lists of codepoints and then converting to binaries is faster than building binaries directly or stripping strings from binaries with binary:copy 2011-11-02 01:11:58 -07:00
alisdair sullivan
0ea61233c5 strings returned as binaries 2011-10-28 06:31:40 -07:00
alisdair sullivan
30e6745f53 decoder returns values in favor of incomplete when possible, use opt 'explicit_end' to revert to prior behaviour 2011-10-25 20:52:39 -07:00
alisdair sullivan
200fb231a9 fresh api. virtually whole new thing, entirely new interface and heavily modified encoder/decoder 2011-10-21 18:16:16 -07:00
alisdair sullivan
a83a0a4ebc reworked build system to use rebar, tests still use external script, moved jsx_decoder.erl template to /priv from /src 2010-07-26 18:04:23 -07:00
alisdair sullivan
446095cbb2 minor bugfixes to jsx_eep0018 2010-06-26 19:16:56 -07:00
alisdair sullivan
a9ecb733e3 decoder now returns end_json event at earliest possible time, Next() returns nothing but {error, badjson} if fed bad input or incomplete after that point, even if forced 2010-06-25 02:46:54 -07:00
alisdair sullivan
0a96a059a1 added test for multi_terms 2010-06-24 15:55:08 -07:00
alisdair sullivan
46df6e5a38 incomplete work on multi term streams 2010-06-23 16:43:09 -07:00
alisdair sullivan
37f9d2a07a brought test suite up to date, fixed a dumb error that occured when parsing integers larger than 100 2010-06-21 23:06:55 -07:00
alisdair sullivan
5309030233 repaired jsx:fold and moved some defines to jsx_decoder.hrl 2010-06-20 18:11:06 -07:00
alisdair sullivan
cff4d17561 substantial refactoring of api and decoder internals 2010-06-20 17:00:08 -07:00
alisdair sullivan
4286892861 new interruptable api, examples broken for the hojillionth time 2010-06-11 21:57:42 -07:00
alisdair sullivan
e690d7723a first pass at new api 2010-06-11 18:14:24 -07:00
alisdair sullivan
813058e2fb changed end_of_json to end_json 2010-06-10 20:32:15 -07:00
alisdair sullivan
0d7a6f9720 fixed embarassing non-termination bug 2010-06-08 20:21:18 -07:00
alisdair sullivan
d25f96f798 merged in unified decoder branch 2010-06-07 16:21:22 -07:00
alisdair sullivan
eb55eb9599 all five utfx variants supported now compiled from a single templated module 2010-06-07 16:15:40 -07:00
alisdair sullivan
eadb7acbdd change in design philosophy, core decoder and interface now a single file 2010-05-31 21:02:58 -07:00
alisdair sullivan
97520b06ae changed comments_true macro to comments_enabled 2010-05-31 21:00:20 -07:00