Skip to content

Commit

Permalink
otpbp_uri_string: update
Browse files Browse the repository at this point in the history
- refactoring
- add allowed_characters/0
- add percent_decode/1
- add quote/1,2
- add resolve/2,3
- add unquote/1
  • Loading branch information
Ledest committed Oct 24, 2023
1 parent fbc5a4c commit 250887e
Show file tree
Hide file tree
Showing 3 changed files with 1,216 additions and 1,947 deletions.
7 changes: 7 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ Funs = [{application, get_supervisor, 1},
{unicode_util, titlecase, 1},
{unicode_util, uppercase, 1},
{unicode_util, whitespace, 0},
{uri_string, allowed_characters, 0},
{uri_string, compose_query, 1},
{uri_string, compose_query, 2},
{uri_string, dissect_query, 1},
Expand All @@ -361,8 +362,14 @@ Funs = [{application, get_supervisor, 1},
{uri_string, normalize, 1},
{uri_string, normalize, 2},
{uri_string, parse, 1},
{uri_string, percent_decode, 1},
{uri_string, quote, 1},
{uri_string, quote, 2},
{uri_string, recompose, 1},
{uri_string, resolve, 2},
{uri_string, resolve, 3},
{uri_string, transcode, 2},
{uri_string, unquote, 1},
{user, interfaces, 1},
{zlib, adler32, 2},
{zlib, adler32, 3},
Expand Down
8 changes: 6 additions & 2 deletions src/otpbp_pt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,13 @@
{{unicode_util, [casefold, cp, gc, get_case, is_whitespace, lookup, lowercase, nfc, nfd,
nfkc, nfkd, titlecase,uppercase], 1},
otpbp_unicode_util},
{{uri_string, [compose_query, normalize], [1, 2]}, otpbp_uri_string},
{{uri_string, [dissect_query, is_host, is_path, parse, recompose], 1}, otpbp_uri_string},
{{uri_string, allowed_characters, 0}, otpbp_uri_string},
{{uri_string, [is_host, is_path], 1}, otpbp_uri_string},
{{uri_string, [dissect_query, parse, percent_decode, recompose, unquote], 1},
otpbp_uri_string},
{{uri_string, [compose_query, normalize, quote], [1, 2]}, otpbp_uri_string},
{{uri_string, transcode, 2}, otpbp_uri_string},
{{uri_string, resolve, [2, 3]}, otpbp_uri_string},
{{user, interfaces, 1}, otpbp_user},
{{zlib, [adler32, crc32], [2, 3]}, otpbp_zlib},
{{zlib, [adler32_combine, crc32_combine], 4}, otpbp_zlib},
Expand Down
Loading

0 comments on commit 250887e

Please sign in to comment.