Commit graph

75 commits

Author SHA1 Message Date
alisdair sullivan
2d7b690a91 add incomplete_handler and tests 2013-03-04 23:13:23 -08:00
alisdair sullivan
3162891832 change error_handler function signature to /3 from /6 2013-03-04 20:53:03 -08:00
alisdair sullivan
6ec70f8a46 add error_handler option and tests 2013-03-04 17:00:34 -08:00
alisdair sullivan
40fd913238 remove escaping of single quotes in strings 2013-03-03 15:27:39 -08:00
alisdair sullivan
a57435aad3 add additional string tests to jsx_utils 2013-02-24 20:20:25 -08:00
alisdair sullivan
7b31bef0f6 more comprehensive string checking 2013-02-24 01:32:17 -08:00
alisdair sullivan
230be8ebc2 import better tests 2013-02-23 22:36:35 -08:00
alisdair sullivan
74a688c827 reformat clean_string tests 2013-02-23 22:21:35 -08:00
alisdair sullivan
de76cf48a7 streamline string parsing implementation in encoders 2013-02-20 21:29:12 -08:00
alisdair sullivan
ceb7ce6586 shiny and new string cleaning for encoder and parser 2013-02-19 22:51:54 -08:00
alisdair sullivan
fbd90e4df7 tighten input/output of maybe_escape 2013-02-19 15:09:28 -08:00
alisdair sullivan
ff170d5f4e add maybe_escape/2 function for future use 2013-02-19 01:00:35 -08:00
alisdair sullivan
ff6a83598b replace all incidences of opts with config 2013-02-12 11:54:42 -08:00
alisdair sullivan
51cafcfb64 reduce test space by eliminating redundancies in extended codepoint parsing 2013-02-06 22:27:52 -08:00
alisdair sullivan
dfbda5a9d3 fix eunit test ordering in jsx_utils 2013-02-05 20:29:38 -08:00
alisdair sullivan
77548df033 add a few more tests for opt parsing 2013-02-05 20:25:41 -08:00
alisdair sullivan
f45cb39786 add test to jsx_utils for multiple defined pre_encoders 2013-02-05 20:12:29 -08:00
alisdair sullivan
c36bc7babb fix incorrect tail call in jsx_utils test generator 2013-02-05 19:59:09 -08:00
alisdair sullivan
1bf196b9e3 move all encoder escape tests to jsx_utils 2013-02-05 16:52:28 -08:00
alisdair sullivan
c99cbd9d12 move all tests relating to cleaning of binary strings to jsx_utils 2013-02-05 16:40:15 -08:00
alisdair sullivan
052a92d325 bad utf8 tests for clean_string/2 2013-02-05 12:24:56 -08:00
alisdair sullivan
b711bc9ef9 factor out clean_string to jsx_utils 2013-02-05 00:03:58 -08:00
alisdair sullivan
5efec8af8e reject invalid opts flags more strictly 2013-02-04 23:08:44 -08:00
alisdair sullivan
6ff94d8e5f strip trailing whitespace 2012-11-21 23:04:14 -08:00
alisdair sullivan
7e242b7e1e throw exception on bad options, rather than returning error tuple 2012-04-06 08:12:55 -07:00
alisdair sullivan
76723ce736 semantic change to way pre_encode works 2012-04-06 08:09:52 -07:00
alisdair sullivan
ae13b934c6 add {pre_encoder, F} variant of {pre_encoders, [F, G,...]} 2012-04-04 20:13:27 -07:00
alisdair sullivan
89292c940d pre_encoders for preprocessing input to encoder 2012-04-04 20:04:17 -07:00
alisdair sullivan
3bc2c68ea3 fix the tenses and forms of option flags 2012-03-31 21:58:18 -07:00
alisdair sullivan
ff42a04cdf remove old escaping code path 2012-03-31 20:31:28 -07:00
alisdair sullivan
7c810cb05d inline json escaping into encoder 2012-03-31 17:44:20 -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
f277edabb5 opts tests 2012-03-29 06:03:14 -07:00
alisdair sullivan
c8ff83a394 add relax option, a synonym for [loose_unicode, single_quotes, comments, ignore_bad_escapes] 2012-03-29 00:24:31 -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
19e710da55 add dirty_strings option to bypass json escaping strings during encoding 2012-03-29 00:01:50 -07:00
alisdair sullivan
6544975379 add more comprehensive checking to json_escape 2012-03-28 23:46:06 -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
3421b6546e rewrite of json_escape for efficiency 2012-03-26 19:28:53 -07:00
alisdair sullivan
5bc8bfdf45 encoder now only performs a single pass on strings and can optionally json encode them 2012-03-24 19:42:00 -07:00
alisdair sullivan
821a8ac06e integrate dmitry kolesnikov's changes to json_encode 2012-03-23 22:45:46 -07:00
alisdair sullivan
29d5c28196 Merge https://github.com/fogfish/jsx into develop 2012-03-23 18:19:00 -07:00
Dmitry Kolesnikov
5d12d6262f FIX: to_json performance + jsx benchmark 2012-03-22 21:13:20 +02:00
alisdair sullivan
0c04e485a3 fixes wrongheaded and stupid escaping of strings 2012-03-21 05:36:39 -07:00
alisdair sullivan
1870a74d76 apply loose_unicode option to decoder 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
aef1f71690 add 'no_jsonp_escapes' flag/option to not escape u+2028 and u+2029 2012-03-21 05:36:38 -07:00
alisdair sullivan
8dafdb32b3 escape strings and keys in the encoder 2012-03-21 05:36:38 -07:00