fresh api. virtually whole new thing, entirely new interface and heavily modified encoder/decoder

This commit is contained in:
alisdair sullivan 2011-10-21 18:16:16 -07:00
parent 9c5710b97c
commit 200fb231a9
11 changed files with 559 additions and 289 deletions

View file

@ -39,6 +39,8 @@ parse_opts([loose_unicode|Rest], Opts) ->
parse_opts(Rest, Opts#opts{loose_unicode=true});
parse_opts([escape_forward_slash|Rest], Opts) ->
parse_opts(Rest, Opts#opts{escape_forward_slash=true});
parse_opts([explicit_end|Rest], Opts) ->
parse_opts(Rest, Opts#opts{explicit_end=true});
parse_opts(_, _) ->
{error, badarg}.