encoder updated to use same api as decoder, format and verify updated to be aware of new api

This commit is contained in:
alisdair sullivan 2011-08-10 00:33:14 -07:00
parent 3485ca5413
commit 0c3cf2b87b
4 changed files with 144 additions and 136 deletions

View file

@ -43,6 +43,8 @@ parse_opts([loose_unicode|Rest], Opts) ->
parse_opts(Rest, Opts#opts{loose_unicode=true});
parse_opts([iterate|Rest], Opts) ->
parse_opts(Rest, Opts#opts{iterate=true});
parse_opts([escape_forward_slash|Rest], Opts) ->
parse_opts(Rest, Opts#opts{escape_forward_slash=true});
parse_opts([{encoding, _}|Rest], Opts) ->
parse_opts(Rest, Opts);
parse_opts(_, _) ->