Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename all CamelCase functions to snake_case in the url_percent_encode.h #16

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Oct 24, 2023

Rename:

  • isCharInSet -> is_char_in_set
  • isIPv4Char -> is_ipv4_char
  • isHexChar -> is_hex_char
  • HexCharToValue -> hex_char_to_num
  • DecodeEscaped -> decode_hex_to_byte
  • AppendEscapedChar -> append_percent_encoded_byte
  • AppendUTF8EscapedChar -> append_utf8_percent_encoded_char
  • AppendStringOfType -> append_utf8_percent_encoded

Remove AppendUTF8EscapedValue function and move its content to append_utf8_percent_encoded_char function. Update comments.

* isCharInSet -> is_char_in_set

* isIPv4Char -> is_ipv4_char

* isHexChar -> is_hex_char
* HexCharToValue -> hex_char_to_num

* DecodeEscaped -> decode_hex_to_byte
* AppendEscapedChar -> append_percent_encoded_byte

* AppendUTF8EscapedChar -> append_utf8_percent_encoded_char

* Remove AppendUTF8EscapedValue function and move its content to
  append_utf8_percent_encoded_char function

* AppendStringOfType -> append_utf8_percent_encoded
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0b7d795) 99.72% compared to head (28bc95e) 99.72%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
- Coverage   99.72%   99.72%   -0.01%     
==========================================
  Files          15       15              
  Lines        2217     2215       -2     
==========================================
- Hits         2211     2209       -2     
  Misses          6        6              
Files Coverage Δ
include/upa/url.h 99.74% <100.00%> (ø)
include/upa/url_host.h 100.00% <100.00%> (ø)
include/upa/url_ip.h 100.00% <100.00%> (ø)
include/upa/url_percent_encode.h 100.00% <100.00%> (ø)
include/upa/url_search_params.h 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rmisev rmisev merged commit 28bc95e into main Oct 24, 2023
21 checks passed
@rmisev rmisev deleted the rename branch October 24, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant