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 *Url* symbols to *Path*. #869

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Rename *Url* symbols to *Path*. #869

merged 1 commit into from
Apr 2, 2024

Conversation

mgautierfr
Copy link
Collaborator

Dirents' "url" are not really url. They are u8 arrays which serve as the main "key".
Specification says that this u8 array store a utf-8 encoded string and we use this key as a path.

Public API already use path semantic so rename all internal symbols from url to path.

Fix #868

Dirents' "url" are not really url. They are u8 arrays which serve
as the main "key".
Specification says that this u8 array store a utf-8 encoded string and
we use this key as a path.

Public API already use path semantic so rename all internal symbols
from url to path.

Fix #868
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 46.15385% with 28 lines in your changes are missing coverage. Please review.

Project coverage is 58.01%. Comparing base (96afb38) to head (54a3e6c).

Files Patch % Lines
src/fileimpl.cpp 27.27% 2 Missing and 14 partials ⚠️
src/dirent.cpp 37.50% 0 Missing and 5 partials ⚠️
src/fileheader.cpp 0.00% 1 Missing and 3 partials ⚠️
src/archive.cpp 0.00% 0 Missing and 1 partial ⚠️
src/dirent_accessor.cpp 75.00% 0 Missing and 1 partial ⚠️
src/writer/creator.cpp 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #869   +/-   ##
=======================================
  Coverage   58.00%   58.01%           
=======================================
  Files         101      101           
  Lines        4622     4623    +1     
  Branches     1925     1925           
=======================================
+ Hits         2681     2682    +1     
  Misses        667      667           
  Partials     1274     1274           

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

Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't you also have to replace all cURLy braces with PArenTHeses? :)

@kelson42 kelson42 added the task label Mar 29, 2024
@mgautierfr
Copy link
Collaborator Author

mgautierfr commented Apr 2, 2024

Didn't you also have to replace all cURLy braces with PArenTHeses? :)

I've tried. But gcc didn't want. Hope next version of cpp will allow this.

@mgautierfr mgautierfr merged commit 48da5b8 into main Apr 2, 2024
29 of 30 checks passed
@mgautierfr mgautierfr deleted the url_to_path branch April 2, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename UrlPtrList to PathPtrList
3 participants