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

Add format parameter to url_from_file_path function and accept / in any Windows path #25

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Nov 8, 2023

The format parameter specifies the format of the given file path - POSIX or Windows. It can have any of the following values:

  • upa::file_path_format::detect - detect file path format from first character: / - POSIX, otherwise - Windows
  • upa::file_path_format::posix - POSIX file path format
  • upa::file_path_format::windows - Windows file path format
  • upa::file_path_format::native - the file path format corresponds to the OS on which the code was compiled

docs.microsoft.com -> learn.microsoft.com
* is_Windows_drive -> is_windows_drive

* is_normalized_Windows_drive -> is_normalized_windows_drive

* starts_with_Windows_drive => starts_with_windows_drive

* starts_with_Windows_drive_absolute_path ->
  starts_with_windows_drive_absolute_path
Also allow lower case "unc" in "\\?\unc\host\path".
This parameter specifies the format of the given file path.
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (db24212) 99.72% compared to head (6aa27e7) 99.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   99.72%   99.73%           
=======================================
  Files          15       15           
  Lines        2217     2223    +6     
=======================================
+ Hits         2211     2217    +6     
  Misses          6        6           
Files Coverage Δ
include/upa/url.h 99.74% <100.00%> (+<0.01%) ⬆️

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

@rmisev rmisev merged commit 6aa27e7 into main Nov 8, 2023
22 checks passed
@rmisev rmisev deleted the path-to-url branch November 8, 2023 19:33
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